Convert 14TB WD140EDFZ from 512e to 4Kn live in zfs pool with luks

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

e97

Active Member
Jun 3, 2015
325
198
43
I have 10 x WDC WD140EDFZ-11A0VA0 in raidz2 with ashift=12 (4096)

smartctl -a /dev/sdX shows Sector Sizes: 512 bytes logical, 4096 bytes physical

Download
Code:
wdckit-2.16.0.zip
from [2] HDD Firmware Downloads. PC-3000 Support Downloads. Data recovery and HDD repair tools

Offline the disk from the zpool
Code:
sudo zpool offline POOLNAME luks-X
My luks drives are mapped by /dev/disk/by-id so they are consistent across boots.
Its possible to figure out which dm-X maps to /dev/sdX from [5] How to map /dev/sdX and /dev/mapper/mpathY device from the /dev/dm-Z device – The Geek Diary

Close luks
Code:
sudo cryptsetup luksClose luks-X
Change the sector size to 4096
Code:
wdckit format /dev/sdX -b 4096 --fastformat
After:
Code:
Sector Size:      4096 bytes logical/physical
** REBOOT or HOT-PLUG disk is required or you may experience disk errors **

Open luks
Code:
sudo cryptsetup luksOpen /dev/disk/by-id/XXXXXXX luks-X
Online disk back to pool
Code:
sudo zpool online POOLNAME luks-X
Surprisingly there was no resilvering.

Force scrub for sanity check
Code:
sudo zpool scrub POOLNAME
Waiting for the scrub to complete before converting the rest of the drives in the pool.

Next step is converting the drives to Ultrastar DC HC530 and gaining a bit of performance from 5400 RPM -> 7200 RPM.

Allegedly they are the same drive [6]
Western Digital model WD140EDFZ is a white-label "IU HA 500" which in turn is actually an alternative label for the Ultrastar DC HC530. It is the identical drive.


References
[1] How to convert the Western Digital "Ultrastar® DC HC530 14TB HDD" from 512e to 4Kn sector size? (In Windows 10)
[2] HDD Firmware Downloads. PC-3000 Support Downloads. Data recovery and HDD repair tools
[3] How to format WDBWLG0040HBK from 512e to 4kn
[4] 5 Steps to Safely Replace a Drive in a Linux ZFS Array
[5] How to map /dev/sdX and /dev/mapper/mpathY device from the /dev/dm-Z device – The Geek Diary
[6] https://forums.servethehome.com/ind...too-good-to-be-true-pricing.29333/post-358464
 
Last edited: