At the beginning of the year I converted my server from running directly on TrueNAS to Proxmox with a TrueNAS vm. At that time I was able to get all the physical disks passed through to the VM and reconfigure the RAID within the TrueNAS VM, this information will become relevant in what follows. I passed the disks directly to the vm following the recommended practices Passthrough Physical Disk to Virtual Machine (VM) changing the command to match my disk ID and adjusting it for each mount point
While I have had decent performance with the SMB share from TrueNAS, I have not been able to get "normal" scrub times on the RAIDZ2 within TrueNAS, I know that slow/unsuccessful scrubs can mean slow or possibly unsuccessful resilvers should a disk go down. I should mention all of my disks are less than a year old so they shouldnt fail anytime soon but you never know.
I have been trying to track down if there are any settings that I should have added or changed within Proxmox to allow for best performance that could be affecting the scrubs. Here are a few things that I am wondering may be the cause of the slow scrubs(4-5 days)
The disks that were initially used before converting the TrueNAS server to a Proxmox VM are showing differently in the Hardware list for the VM than the disks I added directly to Proxmox later. In the proxmox host disk list, the drives that were existing in the original TrueNAS configuration are listed as
Where as the disks added once TrueNAS had been moved to Proxmox as a VM are listed as follows
I know that TrueNAS is often picky about serial numbers being added, and I have done so for all the disks, see my disk configuration from the VM config file
I also am unsure what i should be using for cache on these disks and Async IO
I am totally open to any other configuration recommendations or changes to things I need to change, as I am new to the Proxmox community.
Server Info:
CPU(s) 12 x Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (1 Socket)
Kernel Version Linux 5.15.102-1-pve #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z)
PVE Manager Version pve-manager/7.4-3/9002ab8a
48GB RAM
Code:
qm set 592 -scsi2 /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F41BLC
While I have had decent performance with the SMB share from TrueNAS, I have not been able to get "normal" scrub times on the RAIDZ2 within TrueNAS, I know that slow/unsuccessful scrubs can mean slow or possibly unsuccessful resilvers should a disk go down. I should mention all of my disks are less than a year old so they shouldnt fail anytime soon but you never know.
I have been trying to track down if there are any settings that I should have added or changed within Proxmox to allow for best performance that could be affecting the scrubs. Here are a few things that I am wondering may be the cause of the slow scrubs(4-5 days)
The disks that were initially used before converting the TrueNAS server to a Proxmox VM are showing differently in the Hardware list for the VM than the disks I added directly to Proxmox later. In the proxmox host disk list, the drives that were existing in the original TrueNAS configuration are listed as
Code:
/dev/sdb
|_/dev/sdb1 Linux RAID Member 2.15GB GPT=yes Mounted=No
|_/dev/sdb2 ZFS 8TB GPT=yes Mounted=No
Code:
/dev/sdf zfs_member 8TB GPT=no Mounted=No
I know that TrueNAS is often picky about serial numbers being added, and I have done so for all the disks, see my disk configuration from the VM config file
Code:
sata0: /dev/disk/by-id/ata-ST8000NM0055-1RM112_ZA1AEE6R,backup=0,serial=ZA1AEE6R,size=7814026584K
sata2: /dev/disk/by-id/ata-ST8000NM0055-1RM112_ZA1AEE3R,backup=0,serial=ZA1AEE3R,size=7814026584K
sata3: /dev/disk/by-id/ata-WDC_WD82PURZ-85TEUY0_VDKDGSSK,backup=0,serial=VDKDGSSK,size=7814026584K
sata4: /dev/disk/by-id/ata-ST8000NM0055-1RM112_ZA1AEFAB,backup=0,serial=ZA1AEFAB,size=7814026584K
sata5: /dev/disk/by-id/ata-WDC_WD82PURZ-85TEUY0_VDKNZHJK,backup=0,serial=VDKNZHJK,size=7814026584K
scsi0: local-lvm:vm-100-disk-0,iothread=1,size=128G,ssd=1,discard=on
scsi10: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1A1AFF,backup=0,serial=ZA1A1AFF,size=7814026584K
scsi11: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1F90DV,backup=0,serial=ZA1F90DV,size=7814026584K
scsi12: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1FD9W3,backup=0,serial=ZA1FD9W3,size=7814026584K
scsi13: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1A2JFJ,backup=0,serial=ZA1A2JFJ,size=7814026584K
scsi2: /dev/disk/by-id/ata-WDC_WD82PURZ-85TEUY0_VDHVK1TK,backup=0,serial=VDHVK1TK,size=7814026584K
scsi3: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1HCM81,backup=0,serial=ZA1HCM81,size=7814026584K
scsi4: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1JPAM7,backup=0,serial=ZA1JPAM7,size=7814026584K
scsi5: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1FZQRS,backup=0,serial=ZA1FZQRS,size=7814026584K
scsi6: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1958YY,backup=0,serial=ZA1958YY,size=7814026584K
scsi8: /dev/disk/by-id/ata-OWC_Mercury_Electra_6G_SSD_OW1606171001F3204,backup=0,serial=OW1606171001F3204,size=234431064K,ssd=1
scsi9: /dev/disk/by-id/ata-ST8000NM0045-1RL112_ZA1FDK7T,backup=0,serial=ZA1FDK7T,size=7814026584K
I also am unsure what i should be using for cache on these disks and Async IO
I am totally open to any other configuration recommendations or changes to things I need to change, as I am new to the Proxmox community.
Server Info:
CPU(s) 12 x Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (1 Socket)
Kernel Version Linux 5.15.102-1-pve #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z)
PVE Manager Version pve-manager/7.4-3/9002ab8a
48GB RAM