Equipment/Landin: Difference between revisions

From London Hackspace Wiki

m
zfs disk replacement instructions
m (zfs disk replacement instructions)
Line 98: Line 98:
If a 1 or 2 disks die in the ZFS zpool, you'll want to replace them. You'll see something like a disk or two with the status UNAVAIL and the zpool state being DEGRADED.
If a 1 or 2 disks die in the ZFS zpool, you'll want to replace them. You'll see something like a disk or two with the status UNAVAIL and the zpool state being DEGRADED.
We don't want to shut off the computer, so what to do?
We don't want to shut off the computer, so what to do?
* Make note of the disk ID(s) and search for those drives by doing "sudo sas2ircu 0 display | less" and skip to the affected serial number (starts with the letter P in our Hitachi examples)
* Make note of the disk ID(s) and search for those drives by doing  
* Make a note of the enclosure number and the slot number on the controller.
  sudo sas2ircu 0 display | less
* Make the affected disk(s) blinkk in their slots if you have enclosures that blink properly, such as
* While scrolling up and down using less, you can find the affected dying drive serial number (starts with the letter P in our Hitachi examples)
   sas2ircu 0 locate 2:1 on #REPLACE WITH THE RIGHT SLOT AND ENCLOSURE ID, DON'T JUST REPLACE THE DRIVES IN EXAMPLE SLOTS
* Make a note of the enclosure number and the slot number on the controller in the command above.  
  sas2ircu 0 locate 2:2 on
* Make the affected disk(s) blink in their slots if you have enclosures that blink properly, such as
then you'll see the blinking slot(s) and can remove those affected disks, replace the drives in the disk trays, and then reinsert.
   sas2ircu 0 locate 2:1 on #REPLACE WITH THE RIGHT SLOT AND ENCLOSURE ID, DON'T JUST CUT AND PASTE THIS COMMAND AND REPLACE THE WRONG DRIVE. (This is blinking drive 1 in assembly 2)
* then you'll see the blinking slot(s) and can remove those affected disks.
* Replace the drives in the disk trays (you may need a Torx T10 driver or a careful flathead screwdriver to replace drives in the tray, and then reinsert.
* Turn the blinking light off.
   sas2ircu 0 locate 2:1 off
   sas2ircu 0 locate 2:1 off
  sas2ircu 0 locate 2:2 off
* Find the new drive by either seeing the latest drive added in dmesg and then poking around /dev/disk/by-id for the right serial number. Example disk replacement (remember, use zpool status to find the old disk to replace)
 
# Test swapping one disk that's missing/dead for another disk:
# (you can find out the serial number of the drive that you just swapped by looking in dmesg and then poking around
# in /dev/disk/by-id/ to find the new drive
 
Example disk replacement (remember, use zpool status to find the old disk to replace)
   sudo zpool replace -f peter ata-HITACHI_HUA721010KLA330_PAJ9N3EF ata-HITACHI_HUA721010KLA330_PBJ7DNWE
   sudo zpool replace -f peter ata-HITACHI_HUA721010KLA330_PAJ9N3EF ata-HITACHI_HUA721010KLA330_PBJ7DNWE