Need some help with a FreeNAS problem

Discussion in 'FreeBSD and FreeNAS' started by Fritz, Mar 1, 2017.

  1. Fritz

    Fritz Well-Known Member

    Joined:
    Apr 6, 2015
    Messages:
    1,836
    Likes Received:
    362
    Just logged in and found this -
    FreeNAS.PNG

    I assume da5 has failed. Now how do I go about replacing it? First time I've run into a failed drive in FreeNAS. Is #2 saying the drive is offline? If it is, can I just replace it and rebuild? It's a RAIDz2 array.

    TIA :)

    Should have noted that the status of the array is showing as healthy hence my confusion.
     
    #1
  2. Rand__

    Rand__ Well-Known Member

    Joined:
    Mar 6, 2014
    Messages:
    3,406
    Likes Received:
    481
    If the pool (zpool status <name>) is online then the device has not failed yet but has smart errors.
    Time to get a replacement drive.
    In the meantime read up on how to replace the drive properly :)
     
    #2
    Cole likes this.
  3. Fritz

    Fritz Well-Known Member

    Joined:
    Apr 6, 2015
    Messages:
    1,836
    Likes Received:
    362
    Yep, I figured out how to off line the drive and now I'm working on making it's replacement available (See my post under Win Server / HyperV). :)
     
    #3
  4. T_Minus

    T_Minus Moderator

    Joined:
    Feb 15, 2015
    Messages:
    6,710
    Likes Received:
    1,433
    Is the drive itself OFF LINE?
     
    #4
  5. Fritz

    Fritz Well-Known Member

    Joined:
    Apr 6, 2015
    Messages:
    1,836
    Likes Received:
    362
    It wasn't until I off lined it. I replaced it and it's resilvering now. Put the old drive in another box and it isn't detected at all so it definitely failed. This was an old old recertified Seagate 1TB drive. I have no idea when I bought it but I've had it at least a decade. The only regret I have is that I can't access the drive to check the power on hours. R.I.P.
     
    #5
  6. Terry Kennedy

    Terry Kennedy Well-Known Member

    Joined:
    Jun 25, 2015
    Messages:
    998
    Likes Received:
    461
    No, it is saying that when it ran its periodic internal ("offline") SMART tests, it found 4 sectors it couldn't read, even with error recovery. They may or may not be in allocated space in your pool. You should follow whatever procedure FreeNAS specifies to swap a failed drive.
     
    #6
  7. whitey

    whitey Moderator

    Joined:
    Jun 30, 2014
    Messages:
    2,735
    Likes Received:
    848
    Sounds like @Fritz has solved this issue but here is the lowdown/skinny on replacing failed drives.

    Click on top level pool, click 'Volume Status' button near bottom left pane. Next use offline button to ake failed/failing dev offline, then slot new disk and wait a min or two, then click replace button, select new slotted device and done deal :-D
     
    #7
  8. Fritz

    Fritz Well-Known Member

    Joined:
    Apr 6, 2015
    Messages:
    1,836
    Likes Received:
    362
    Yes sir, that's what I did. The hard part was finding the offline button. :)
     
    #8
  9. PigLover

    PigLover Moderator

    Joined:
    Jan 26, 2011
    Messages:
    2,764
    Likes Received:
    1,108
    Way easier to SSH to a root shell, do a 'zpool status <pool name>', copy the drive ID of the failed drive and type 'zfs replace <pool name> <dead drive id> <new drive>'.

    Where <new drive> is /dev/<drive id>'

    Sent from my SM-G925V using Tapatalk
     
    #9
  10. Rand__

    Rand__ Well-Known Member

    Joined:
    Mar 6, 2014
    Messages:
    3,406
    Likes Received:
    481
    Freenas provides shell access from the gui so no need for SSH;) Just copying is a little less comfy there
     
    #10
  11. PigLover

    PigLover Moderator

    Joined:
    Jan 26, 2011
    Messages:
    2,764
    Likes Received:
    1,108
    Something about doing a web-login to a gui so I can pull a shell just bothers me - especially when you can just SSH from your workstation in one step (assuming you have your keys properly set up in advance).

    In fact if I am on Linux or a Mac I don't really even have to SSH in at all...I can just remote the commands "ssh me@freenas sudo zpool status ...".
     
    #11
  12. herby

    herby Active Member

    Joined:
    Aug 18, 2013
    Messages:
    158
    Likes Received:
    35
    I think you can replace disks via: Storage -> Volumes -> View Volumes -> [whatever zpool had a disk fail] -> Volume Status -> [the failed disk] -> Replace
     
    #12
  13. Fritz

    Fritz Well-Known Member

    Joined:
    Apr 6, 2015
    Messages:
    1,836
    Likes Received:
    362
    For me, the command line is a necessary evil to be used only as a last resort. Yea, I'm cli challenged. Typos cause me great stress and I'm prone to making them. :(
     
    #13
    Xicaque likes this.
Similar Threads: Need help
Forum Title Date
FreeBSD and FreeNAS Need FreeNAS sharing help Jul 4, 2019
FreeBSD and FreeNAS Need some help with FreeNAS Sharing Mar 3, 2018
FreeBSD and FreeNAS 1st time FreeNAS user needs help with "Failed to wipe da0: dd: /dev/da0: Invalid argument" Oct 26, 2017
FreeBSD and FreeNAS Need some FreeNAS Owncloud plugin help Oct 20, 2015
FreeBSD and FreeNAS To ZIL or not to ZIL; that is indeed the question. (FreeNAS n00b needs help) Mar 11, 2013

Share This Page