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 ...
    • Failed Boot Mirror HDD Replacement Instructions

      ​​From NMV: Settings > Disks Click blink on the far right for the faulted LUN Ignore the warning, it will not cause issues In this example, we will use c3t1d0 This will do a DD read blink on the drive. From NMC: # setup volume syspool offline-lun # ...