This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zfsvdevs [2017/04/15 05:27] – matti.k | zfsvdevs [2017/04/15 05:29] (current) – matti.k | ||
---|---|---|---|
Line 90: | Line 90: | ||
So going back to my original zpool status output | So going back to my original zpool status output | ||
+ | < | ||
config: | config: | ||
Line 100: | Line 100: | ||
ada2p3 | ada2p3 | ||
ada3p3 | ada3p3 | ||
+ | </ | ||
If the faulty disk is still running then do this first | If the faulty disk is still running then do this first | ||
Line 106: | Line 106: | ||
Shutdown the system and replace the faulty disk drive, power on the system | Shutdown the system and replace the faulty disk drive, power on the system | ||
+ | < | ||
# zpool status | # zpool status | ||
Line 118: | Line 118: | ||
ada2p3 | ada2p3 | ||
ada3p3 | ada3p3 | ||
+ | </ | ||
# zpool online zroot 15788859347225537330 | # zpool online zroot 15788859347225537330 | ||
Line 126: | Line 126: | ||
# zpool offline zroot 15788859347225537330 | # zpool offline zroot 15788859347225537330 | ||
+ | < | ||
# ls /dev/ada* | # ls /dev/ada* | ||
/ | / | ||
Line 170: | Line 170: | ||
# gpart add -a 4k -l zfs0 -t freebsd-zfs ada0 | # gpart add -a 4k -l zfs0 -t freebsd-zfs ada0 | ||
# gpart bootcode -b /boot/pmbr -p / | # gpart bootcode -b /boot/pmbr -p / | ||
- | + | </ | |
# zpool online zroot 15788859347225537330 | # zpool online zroot 15788859347225537330 | ||
Line 178: | Line 178: | ||
Note: if you stuff up the 'gpart add' partitioning then can delete as follows | Note: if you stuff up the 'gpart add' partitioning then can delete as follows | ||
+ | < | ||
# gpart delete -i 3 ada0 | # gpart delete -i 3 ada0 | ||
# gpart delete -i 2 ada0 | # gpart delete -i 2 ada0 | ||
# gpart delete -i 1 ada0 | # gpart delete -i 1 ada0 | ||
+ | </ | ||