How to replace a failed HDD using sas2ircu

How to replace a failed HDD using sas2ircu

1. Run as root:

# zpool offline data2 <BAD WWN>

2. Remove the failed disk, then insert the replacement. Wait at least 20 seconds for the drive to initialize.

3. Run as root:

# devfsadm -Cv

This rescans and removes old dangling device links from the kernel

4. To get the new drive's serial: (replace “2” and slot “9” with the proper enclosure and slot

# sas2ircu 0 DISPLAY | sed -e '/Enclosure #.*2/,/Drive Type/!d' | awk '/Slot.*9/ {for(i=1; i<=7; i++) {getline; print}}' | grep "Serial No"

5. Then, with the serial, run this command to get the WWN: (replace <SERIAL> with drive serial)

# iostat -En | awk '/<SERIAL>/ {print line} {line = $0}' | awk '/c.*/ {print $1}'

6. Replace the failed disk with the new one:

# zpool replace <BAD WWN> <NEW WWN>

7. Run a zpool status to check if the replacement is resilvering:

# zpool status

    • Related Articles

    • Failed HDD Replacement Instructions

      From Nexenta Management Console (NMC) check the status of your pools $ zpool status Find the faulted HDD and record the worldwide number (WWN) of the HDD, and the name of the pool it resides in. You will use the WWN to identify this HDD later An ...
    • Replace Failed Drive using MegaCLi

      Set the drive offline, if it is not already offline due to an error MegaCli -PDOffline -PhysDrv [E:S] -aN Mark the drive as missing MegaCli -PDMarkMissing -PhysDrv [E:S] -aN Prepare drive for removal MegaCli -PDPrpRmv -PhysDrv [E:S] -aN ...
    • Drive carrier LEDs

      This document provides explanations for drive carrier LED behavior. Drive carriers will typically have two LEDs for activity and drive faults. Activity LED Color: Green or blue, depending on the backplane Flashing: Drive activity is present Off: ...
    • Heartbeat HDD Replacement Instructions

      1. Replace the drive with the following instructions located here. Be sure to note the WWN of the failed HDD, as as well as the replacement HDD. 2. Open the cluster configuration file with your favorite editor (we will use vim in this example)  # vim ...
    • HDD models and serials

      Q: I have a failed hard drive, but I do not know the model and serial. How do I obtain this information? A: If the the component is still visible to your operating system and hard drive controller, you can utilize a number of graphical and command ...