Shortly after setting up my zpool, one Seagate drive started showing bad sectors ... so it is being returned for a replacement.
The procedure for replacing the drive, seems to be:
- zpool offline <pool> <bad drive>
- zpool replace <pool> <bad drive> <new drive>
- wait for resilver
Unfortunately, zpool offline does not have the expected result of changing the state to 'OFFLINE' -- the drive still shows up as 'FAULTED'.
Code
I have tried all the variations of 'zpool offline' I could think of:
- zpool offline data ata-ST12000NM0007-2A1101_ZJV2LDGN
- zpool offline data /dev/disk/by-id/ata-ST12000NM0007-2A1101_ZJV2LDGN
- zpool offline data 3630560290011746901 (GUID)
- zpool offline -f data 3630560290011746901 (GUID)
There are no errors reported from the 'zpool offline' commands, but also no change in the state of the drive.
Will this cause me trouble when the time comes to 'zpool replace' this drive with a new drive or should I just chill?
Thanks for any insights or shared experiences!