I recently replaced a drive with some bad sectors (although zpool status was happy with everything) using the command line because the GUI appeared to be messed up (but I found out later it was a problem with the chrome browser):
zpool replace MyPool diskX diskY
and zpool status continued to show everything was OK and diskX (and perhaps also diskY?? -- I don't recall clearly now) ONLINE the whole time.
I am now replacing another drive from the GUI following the instructions, which tell me to first OFFLINE the drive to be replaced, then REPLACE it by the new drive -- and now zpool status shows diskX as OFFLINE (obviously) and the pool as DEGRADED. It's a RAIDZ2 pool so it can still survive another drive failure, but was the pool not "safer" using the command line to replace a drive?
Should I have used the REPLACE option without first offlining the drive to be replaced? Are the instructions correct?
Edit (addition):
And what if I were trying to expand a pool by replacing each drive in turn by a larger one? Would I really want to leave it in a DEGRADED state at each stage of the upgrade?
Are the instructions assuming that the drive being replaced has actually failed already, and not appropriate in cases where a drive is being replaced for other reasons?
zpool replace MyPool diskX diskY
and zpool status continued to show everything was OK and diskX (and perhaps also diskY?? -- I don't recall clearly now) ONLINE the whole time.
I am now replacing another drive from the GUI following the instructions, which tell me to first OFFLINE the drive to be replaced, then REPLACE it by the new drive -- and now zpool status shows diskX as OFFLINE (obviously) and the pool as DEGRADED. It's a RAIDZ2 pool so it can still survive another drive failure, but was the pool not "safer" using the command line to replace a drive?
Should I have used the REPLACE option without first offlining the drive to be replaced? Are the instructions correct?
Edit (addition):
And what if I were trying to expand a pool by replacing each drive in turn by a larger one? Would I really want to leave it in a DEGRADED state at each stage of the upgrade?
Are the instructions assuming that the drive being replaced has actually failed already, and not appropriate in cases where a drive is being replaced for other reasons?
Last edited: