PROBLEM Disk UNAVAIL in zpool status

Discussion in 'Storage' started by fenglin911a, Jul 25, 2013.

  1. Offline

    fenglin911a

    Member Since:
    Jul 24, 2013
    Messages:
    5
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fenglin911a, Jul 25, 2013

    Hello, I am new for freenas.

    FreeNAS Build FreeNAS-8.0.1-RELEASE-amd64 (8081)
    Drives are in a Z2+0 array (RAID 60) Drives are in two 8 drive z2 arrays which are striped together

    The problem is one of the disks was failed and we couldn't start the server, so we removed the disk and the server can boot normally. but it shows the alert : The volume XX (ZFS) status is DEGRADED
    Then we bought a new drive and I just insert it to the server.

    Now from the gui-zpool status, this disk here show UNAVAIL

    raidz2 ONLINE
    da0p2 ONLINE
    da1p2 ONLINE
    da2p2 ONLINE
    da3p2 ONLINE
    da4p2 ONLINE
    da5p2 ONLINE
    da6p2 ONLINE
    da7p2 ONLINE
    raidz2 DEGRADED
    4970748511577484581 UNAVAIL
    da8p2 ONLINE
    da9p2 ONLINE
    da10p2 ONLINE
    da11p2 ONLINE
    da12p2 ONLINE
    da13p2 ONLINE
    da14p2 ONLINE


    and from view disks here show unknown.



    9 Unknown {uuid}d72afb6a-fb67-11e0-a755-0025905333f0 Member of mega raidz21 Auto Always On Disabled Disabled true

    How should I do to see the new disk and replace it?

  2. Offline

    cyberjock Forum Guard Dog/Admin

    Member Since:
    Mar 25, 2012
    Messages:
    12,561
    Message Count:
    12,561
    Likes Received:
    628
    Trophy Points:
    113
    cyberjock, Jul 25, 2013

    Follow the section of the manual for disk replacement. See section 6.3.11 of the FreeNAS manual.
  3. Offline

    fenglin911a

    Member Since:
    Jul 24, 2013
    Messages:
    5
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fenglin911a, Jul 25, 2013

    Thanks for your reply I read the manual yesterday.

    Now I don't see the disk offline and it only shows UNAVAIL, and from here I don't see any offline option for this disk.

    2. If the hardware is not AHCI capable, shutdown the system in order to physically replace the disk. When finished, return to the GUI and locate the OFFLINE disk.
    3. Once the disk is showing as OFFLINE, click the disk again and then click its “Replace” button. Select the replacement disk from the drop-down menu and click the “Replace Disk” button. If the disk is a member of an encrypted ZFS pool, you will be prompted to input the passphrase for the pool. Once you click the “Replace Disk” button, the ZFS pool will start to resilver. You can use the zpool status command in Shell to monitor the status of the resilvering.
    4. If the replaced disk continues to be listed after resilvering is complete, click its entry and use the Detach button to remove the disk from the list.
    In the example shown in Figure 6.3r, failed disk ada0 is being replaced by disk ada3 in the encrypted volume named volume1. A warning message reminds you that you need to create a new recovery key after the disk is replaced.


    I guess this is the right steps? can I zpool the UNAVAIL disk?

    The following are the basic steps for replacing a disk:
    ■ Offline the disk, if necessary, with the zpool offline command.
    ■ Remove the disk to be replaced.
    ■ Insert the replacement disk.
    ■ Run the zpool replace command. For example: zpool replace pool_name old_device new_device (New device should be given as /dev/name).
    ■ Bring the disk online with the zpool online command.
  4. Offline

    fenglin911a

    Member Since:
    Jul 24, 2013
    Messages:
    5
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fenglin911a, Jul 25, 2013

    Also this 4970748511577484581 UNAVAIL drive was da8p2, but now the next drive took it place. how could I resolve this?

    Thanks
  5. Offline

    cyberjock Forum Guard Dog/Admin

    Member Since:
    Mar 25, 2012
    Messages:
    12,561
    Message Count:
    12,561
    Likes Received:
    628
    Trophy Points:
    113
    cyberjock, Jul 25, 2013

    Correct, the daXX number increases sequentially for your drives. If da6 fails and you reboot the drive that was da7 will now be da6, da8 will be da7, and so on.

    The failed disk should have a "replace" button next to it. Click the replace button and choose your new disk. Resilvering should then begin. After that's done(which could take some hours) you'll have to "detach" the failed disk to remove it from the zpool permanently.
  6. Offline

    fenglin911a

    Member Since:
    Jul 24, 2013
    Messages:
    5
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fenglin911a, Jul 25, 2013


    Thanks so much!

    As I mentioned above I just insert the new disk to the DA8 spot (I removed the failed disk), now from the GUI if I click the replace I can't see the drive, and from the zpool status, it's showing like this.

    Do I have to do restart the server in order to see the disk?

    Attached Files:

    • 3.jpg
      3.jpg
      File size:
      21.6 KB
      Views:
      8
    • 1.jpg
      1.jpg
      File size:
      17.4 KB
      Views:
      8
    • 2.jpg
      2.jpg
      File size:
      56.7 KB
      Views:
      10
  7. Offline

    cyberjock Forum Guard Dog/Admin

    Member Since:
    Mar 25, 2012
    Messages:
    12,561
    Message Count:
    12,561
    Likes Received:
    628
    Trophy Points:
    113
    cyberjock, Jul 25, 2013

    It looks like you do need to reboot.
  8. Offline

    fenglin911a

    Member Since:
    Jul 24, 2013
    Messages:
    5
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fenglin911a, Jul 25, 2013


    Thanks a lot I will try reboot the server later!
  9. Offline

    cyberjock Forum Guard Dog/Admin

    Member Since:
    Mar 25, 2012
    Messages:
    12,561
    Message Count:
    12,561
    Likes Received:
    628
    Trophy Points:
    113
    cyberjock, Jul 25, 2013

    When you do I'd go into your BIOS and make sure your SATA controller is set to AHCI mode. If you are using a HBA/RAID controller you should have AHCI set in there as well.

Share This Page