ZFS pool folder

promoxer

Member
Apr 21, 2023
182
13
18
Code:
root@pve:/# zpool status
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 00:00:33 with 0 errors on Sun Jul  9 00:24:34 2023
config:
        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          sda3      ONLINE       0     0     0
errors: No known data errors
  pool: vpool
 state: ONLINE
  scan: resilvered 249G in 00:03:28 with 0 errors on Sat Jul 22 14:50:09 2023
config:
        NAME                      STATE     READ WRITE CKSUM
        vpool                     ONLINE       0     0     0
          mirror-0                ONLINE       0     0     0
            nvme-Samsung_SSD_1    ONLINE       0     0     0
            nvme-Samsung_SSD_2    ONLINE       0     0     0
errors: No known data errors
root@pve:/vpool# zfs list
NAME                  USED  AVAIL     REFER  MOUNTPOINT
rpool                12.9G  94.7G      104K  /rpool
rpool/ROOT           12.9G  94.7G       96K  /rpool/ROOT
rpool/ROOT/pve-1     12.9G  94.7G     12.9G  /
rpool/data             96K  94.7G       96K  /rpool/data
vpool                 402G  1.36T       96K  /vpool
vpool/vm-100-disk-0   144K  1.36T      144K  -
vpool/vm-100-disk-1    68K  1.36T       68K  -
vpool/vm-100-disk-2  45.8G  1.36T     45.8G  -
vpool/vm-101-disk-0  23.0G  1.36T     23.0G  -
vpool/vm-101-disk-1  10.3G  1.37T     7.42G  -
vpool/vm-101-disk-2   309G  1.51T      157G  -
vpool/vm-102-disk-0    56K  1.36T       56K  -
vpool/vm-102-disk-1  13.0G  1.36T     13.0G  -
root@pve:/#
1. The above is the output of my zpool status
2. rpool is automatically located at /var/lib/vz, which command did this?
3. Where can I find the same folder of vpool?
4. If files are written directly into this folder, are they protected against bitrot by ZFS?
5. What about files written to the /vpool folder, are the protected against bitrot?
 
Last edited:
2. rpool is automatically located at /var/lib/vz, which command did this?
From the commands you provided I can only see that rpool ist mounted at /rpool and rpool/ROOT is mounted on /. So unless you specifically mounted something else there /var/lib/vz would be part of rpool/ROOT, which is automatically mounted by ZFS. To get more info about what is mounted where, you could post the output of findmnt.

3. Where can I find the same folder of vpool?
From the provided output, that should be mounted at /vpool.

4. If files are written directly into this folder, are they protected against bitrot by ZFS?
Yes, if the files are written to a ZFS, ZFS will take care of that. In your case the rpool itself does not contain any redundancy, though (so no mirror or raid(z)) so that won't help you much. If you don't have copies configured, then ZFS can only detect bitrot in this scenario. It can't recover your data. The vpool is using a mirror so that should protect you from one disk failure or data corruption on one disk. If the data is damaged on both disks, or both disks fail, you won't be able to recover it either.

5. What about files written to the /vpool folder, are the protected against bitrot?
See above.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!