Hi!
Let me first say that Proxmox Backup Server works quite wonderfully already (and not because i use is so well but rather you created it so well Since i intend to set up new set of PVE + PBS i would like to ask confirmation about using zfs for pbs datastore (PBS 2.4 and kernel 6.2). I have 9 phyisical hdd disks like this one for datastore (operating system root is on mdadm raid i.e. separetly)
# smartctl -a /dev/sdd
=== START OF INFORMATION SECTION ===
Model Family: Seagate Enterprise Capacity 3.5 HDD
Device Model: ST6000NM0024-1HT17Z
Serial Number: Z4D4N9YN
LU WWN Device Id: 5 000c50 092f253ba
Firmware Version: SN05
User Capacity: 6,001,175,126,016 bytes [6.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Mar 30 11:35:59 2023 EEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
for zpool and intend to have raid2z created like (i think ashift 12 i.e. block size 4096 bytes is appropriate)
# zpool create -o ashift=12 zp_pbs raidz2 /dev/disk/by-id/ata-ST6000NM0024-1HT17Z_Z4D4N9YN ...
What i wonder is what else could be useful to so to say configure for zfs
1. i have plenty of room already so i intent not to turn on zfs compression (and pbs does its own compression already)
2. should i rather have specific dataset made for pbs datastore? (st i will have dataset 'zp_pbs' configured with mountpoint=none and dataset say 'zp_pbs/datastore_1st' mounted under /srv/pbs/datastore_1st'
3. should i use acltype=posixacl, xattr=sa?
4. should i use relatime?
5. maybe you could advice me something about this zfs config department i dont know to ask
I don't have a need to so to say over-configure zfs, i rather say simple about it but also configure what is useful. I looked into https://openzfs.github.io/openzfs-docs/Getting Started/Debian/Debian Bullseye Root on ZFS.html and from there i mostly got idea what may be maybe relavant (although i intend not to have root-on-zfs system)
zpool create \
-o ashift=12 \
-o autotrim=on \
-O acltype=posixacl -O xattr=sa -O dnodesize=auto \
-O compression=lz4 \
-O normalization=formD \
-O relatime=on \
-O canmount=off -O mountpoint=/ -R /mnt \
rpool ${DISK}-part4
I would be thankful if you could make suggestions about these options.
Best regards,
Imre
Let me first say that Proxmox Backup Server works quite wonderfully already (and not because i use is so well but rather you created it so well Since i intend to set up new set of PVE + PBS i would like to ask confirmation about using zfs for pbs datastore (PBS 2.4 and kernel 6.2). I have 9 phyisical hdd disks like this one for datastore (operating system root is on mdadm raid i.e. separetly)
# smartctl -a /dev/sdd
=== START OF INFORMATION SECTION ===
Model Family: Seagate Enterprise Capacity 3.5 HDD
Device Model: ST6000NM0024-1HT17Z
Serial Number: Z4D4N9YN
LU WWN Device Id: 5 000c50 092f253ba
Firmware Version: SN05
User Capacity: 6,001,175,126,016 bytes [6.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Mar 30 11:35:59 2023 EEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
for zpool and intend to have raid2z created like (i think ashift 12 i.e. block size 4096 bytes is appropriate)
# zpool create -o ashift=12 zp_pbs raidz2 /dev/disk/by-id/ata-ST6000NM0024-1HT17Z_Z4D4N9YN ...
What i wonder is what else could be useful to so to say configure for zfs
1. i have plenty of room already so i intent not to turn on zfs compression (and pbs does its own compression already)
2. should i rather have specific dataset made for pbs datastore? (st i will have dataset 'zp_pbs' configured with mountpoint=none and dataset say 'zp_pbs/datastore_1st' mounted under /srv/pbs/datastore_1st'
3. should i use acltype=posixacl, xattr=sa?
4. should i use relatime?
5. maybe you could advice me something about this zfs config department i dont know to ask
I don't have a need to so to say over-configure zfs, i rather say simple about it but also configure what is useful. I looked into https://openzfs.github.io/openzfs-docs/Getting Started/Debian/Debian Bullseye Root on ZFS.html and from there i mostly got idea what may be maybe relavant (although i intend not to have root-on-zfs system)
zpool create \
-o ashift=12 \
-o autotrim=on \
-O acltype=posixacl -O xattr=sa -O dnodesize=auto \
-O compression=lz4 \
-O normalization=formD \
-O relatime=on \
-O canmount=off -O mountpoint=/ -R /mnt \
rpool ${DISK}-part4
I would be thankful if you could make suggestions about these options.
Best regards,
Imre