Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
first zpool replace on ubuntu
# needs to be parted'd before replacing.
$ sudo parted /dev/disk/by-id/ata-HGST_HDN724030ALE640_PK2234P9K09E0Y
GNU Parted 3.2
Using /dev/sdh
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel GPT
(parted) quit
# then we need to make the ashift=9 because this is an older zfs pool
$ sudo zpool replace -o ashift=9 liu 18069869553946727791 /dev/disk/by-id/ata-HGST_HDN724030ALE640_PK2234P9K09E0Y
# then we're good
$ sudo zpool status liu
pool: liu
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Nov 19 00:49:25 2018
3.45G scanned out of 19.2T at 30.5M/s, 183h0m to go
440M resilvered, 0.02% done
config:
NAME STATE READ WRITE CKSUM
liu DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ata-HGST_HDN724030ALE640_PK2234P9HRX4LY ONLINE 0 0 0
ata-HGST_HDN724030ALE640_PK2234P9J93UNY ONLINE 0 0 0
ata-HGST_HDN724030ALE640_PK2238P3G4VRHJ ONLINE 0 0 0
ata-HGST_HDN724030ALE640_PK2234P9HRR3SY ONLINE 0 0 0
ata-HGST_HDN724030ALE640_PK2234P9JT58GY ONLINE 0 0 0
replacing-5 FAULTED 0 0 0
ata-ST3000DM001-1CH166_W1F1M039 FAULTED 75 228 0 too many errors
ata-HGST_HDN724030ALE640_PK2234P9K09E0Y ONLINE 0 0 0 (resilvering)
ata-ST3000DM001-1ER166_Z500TQG0 ONLINE 7 0 0
ata-ST3000DM001-1ER166_Z5014TGS ONLINE 0 0 0
errors: No known data errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment