Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zfsvdevs [2017/04/15 05:27] matti.kzfsvdevs [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
 +<code>
 config: config:
  
Line 100: Line 100:
      ada2p3  ONLINE               0      ada2p3  ONLINE               0
      ada3p3  ONLINE               0      ada3p3  ONLINE               0
 +</code>
 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
 +<code>
 # zpool status # zpool status
  
Line 118: Line 118:
      ada2p3  ONLINE               0      ada2p3  ONLINE               0
      ada3p3  ONLINE               0      ada3p3  ONLINE               0
 +</code>
 # zpool online zroot 15788859347225537330 # zpool online zroot 15788859347225537330
  
Line 126: Line 126:
  
 # zpool offline zroot 15788859347225537330 # zpool offline zroot 15788859347225537330
 +<code>
 # ls /dev/ada* # ls /dev/ada*
 /dev/ada0      /dev/ada1p3    /dev/ada2p3    /dev/ada3p3 /dev/ada0      /dev/ada1p3    /dev/ada2p3    /dev/ada3p3
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 /boot/gptzfsboot -i 1 ada0 # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
- +</code>
 # 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
 +<code>
 # 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
 +</code>
  
zfsvdevs.txt · Last modified: 2017/04/15 05:29 by matti.k
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki