User Tools

Site Tools


computers:server:ubuntu10.04lts_hydra

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:server:ubuntu10.04lts_hydra [2011/12/06 22:55] – [Raid] davidcomputers:server:ubuntu10.04lts_hydra [2013/09/30 20:29] (current) – [Update] david
Line 39: Line 39:
   - Turn our hard drives into a raid array:  <code>   - Turn our hard drives into a raid array:  <code>
 sudo zpool create media -m /storage raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf sudo zpool create media -m /storage raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf
 +</code>
 +
 +==== Import ====
 +
 +The update repository appears to be broken, so I might need to re-install the OS on hydra.  According to a post I found, all I need to do is "import" the pool.
 +
 +  * [[http://forums.freebsd.org/showthread.php?t=16807]] <- a couple posts down
 +  * With all drives installed and spun up: <code>
 +zpool import
 +</code>
 +  * Just import your pool now! <code>
 +zpool import <poolname>
 +</code>
 +
 +<code>
 +With all of the drives in the system, just run zpool import.
 +That will scan all the drives for ZFS metadata, and will show any pools that can be imported.
 +Then you just import the one you want via zpool import <poolname>
 </code> </code>
  
Line 47: Line 65:
 "You should add your drives using the /dev/disk/by-id directory.  That way the drive will be picked up consistently regardless of the device node in /dev/. " "You should add your drives using the /dev/disk/by-id directory.  That way the drive will be picked up consistently regardless of the device node in /dev/. "
  
-What happens if you replace the drive though?  Doesn't that change the ID?  guess you can remove the offending drive and then add the new drive id.+==== Drive Failure ==== 
 + 
 +  * **2013.09.30** - Looks like we might have had a drive failure.  know in the past, one of the drives was flaky and would not show up because of a cable issue (swapped cables, and it worked). 
 +  * Drive identification: (just pasting in the drives in the raid alive<code> 
 +# status as of today 2013.09.30 
 +#sudo zpool status -v media 
 + 
 +  pool: media 
 + state: DEGRADED 
 +status: One or more devices could not be opened.  Sufficient replicas exist for 
 + the pool to continue functioning in a degraded state. 
 +action: Attach the missing device and online it using 'zpool online'
 +   see: http://www.sun.com/msg/ZFS-8000-2Q 
 + scrub: none requested 
 +config: 
 + 
 + NAME        STATE     READ WRITE CKSUM 
 + media       DEGRADED             0 
 +   raidz1-0  DEGRADED             0 
 +     sdb     ONLINE               0 
 +     sdc     ONLINE               0 
 +     sdd     ONLINE               0 
 +     sde     ONLINE               0 
 +     sdf     UNAVAIL      0          cannot open 
 + 
 +errors: No known data errors 
  
 +#ls /dev/disk/by-id/ -la
 +lrwxrwxrwx 1 root root   9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD24VFW -> ../../sde
 +lrwxrwxrwx 1 root root   9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2J987 -> ../../sdc
 +lrwxrwxrwx 1 root root   9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2K8XW -> ../../sdb
 +lrwxrwxrwx 1 root root   9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2K90G -> ../../sdd
 +</code>
 ====== Software ====== ====== Software ======
  
computers/server/ubuntu10.04lts_hydra.1323212158.txt.gz · Last modified: by david