November 15, 2025Nov 15 Hi There,I had a couple drives fail, and I've been struggling to get my replacement drives working. I'm wondering if someone can tell me where ZFS stores data about drives. specifically, drive size, hopefully it has sector sizes as well somewhere? zdb or something can help me identify the exact characteristics I need to replace the drives.Maybe less important, but if relevant.my zpool is setup as a zraid2, 3 vdevs, and 6 drives per vdev ashift 12. There are 3 different drive models, unfortunately it's a about 50:50 mix of 512/512 and 512/4096 sector formatting. Which is why I went with ashift 12, which from my understanding accommodates that.The failed drives were 512 logical/4096 physical sector formatting.The new drives are the same model as the old ones and the same sector formatting.Originally I setup the pool by using the unraid GUI with encrypted zfs and was hoping the ZFS gui would be able to handle the replacements. Unfortunately it doesn't seem to handle it properly.The replacement drives, now formatted, were automatically partitioned by unraid with starting sector somewhere over 30,000. All other drives that are currently part of a zpool have starting sectors of 64. I wiped the drives used sfdisk to partition them using a dump of an existing drive and used cryptsetup to manually encrypt the drive with matching settings. Unfortunately I must have mixed something up because zfs import still claims the drives are too small... Maybe I need to do something different with cryptsetup. At this point I'm just hoping I can look at the ZFS information to tell me what I need at a minimum for disk size.Thanks!
November 16, 2025Nov 16 Author Probably not all that helpful anymore. I was able to replace the disks using full drives unencrypted. Maybe ZFS wouldn't retain the older drive details?In any case, I'll probably end up getting some "new" drives to all have the same model number and hopefully all the same sector formatting and end up rebuilding my pool. Hopefully that helps avoid similar issues in the future.
November 17, 2025Nov 17 Community Expert I missed your original post, but repacking the drives should work independently of the sector size, if you still have the diags showing the issue, please post them.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.