SOLVED FreeNAS 9.10 Raid-Z2, One or more devices could not be opened, Guidance please

berrick

Explorer
Joined
Mar 19, 2013
Messages
78
One disk in this raid appears to have failed, such that it doesn't show in disk list and therefore a replacement cant be added using the GUI as far as I understand it.

This is the message that is seen

Code:
zpool status
  pool: Vol1
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: scrub repaired 0 in 4h7m with 0 errors on Sun Oct 24 04:07:03 2021
config:

        NAME                                            STATE     READ WRITE CKSUM
        Vol1                                            DEGRADED     0     0     0
          raidz2-0                                      DEGRADED     0     0     0
            gptid/bfea71a5-6567-11e7-ae3e-00259075526b  ONLINE       0     0     0
            15870832235124319869                        UNAVAIL      0     0     0  was /dev/gptid/1d0c6486-b294-11e7-9fa1-00259075526b
            gptid/15dd5559-46eb-11e7-8366-00259075526b  ONLINE       0     0     0
            gptid/cde34052-b80d-11e7-9fa1-00259075526b  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Wed Nov 17 03:46:44 2021
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors


From what I have read I need to use the following process to add the new drive

  • Power off NAS
  • Replace failed disk
  • create gpt called ada3
  • sudo gpart add -i 1 -b 128 -t freebsd-swap -s 2G ada3
  • sudo gpart add -i 2 -t freebsd-zfs ada3
  • sudo zpool replace Vol1 15870832235124319869 ada3p2
Once this is carried out FreeNAS should start to resilver the zpool?

I have never had to replace a drive under these circumstances and would appreciate if those with more experience could confirm if the above process I listed above is correct and will result in the failed drive being replaced without loss of data?

freenas.jpg
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You should be able to do all that with the GUI and a new blank disk... the middleware does the partitioning for you.

Select the unavailable disk and use the replace button (if memory serves me well... many years since 9.10 for me).
 

berrick

Explorer
Joined
Mar 19, 2013
Messages
78
Many thanks for the reply.

However, As I said, I don't believe this can be achieved via the GUI as the failed disk is not listed anymore. See below

Freenas2.jpg
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Your last screenshot showed that it was there as "UNAVAIL" in the list... this one seems to indicate it's not (which matches better with your original statement).

Can you confirm that with another zpool status -v ?
 

berrick

Explorer
Joined
Mar 19, 2013
Messages
78
Output requested below. It doesn't show anything different.

Code:
 zpool status -v
  pool: Vol1
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: scrub repaired 0 in 4h7m with 0 errors on Sun Oct 24 04:07:03 2021
config:

        NAME                                            STATE     READ WRITE CKSUM
        Vol1                                            DEGRADED     0     0     0
          raidz2-0                                      DEGRADED     0     0     0
            gptid/bfea71a5-6567-11e7-ae3e-00259075526b  ONLINE       0     0     0
            15870832235124319869                        UNAVAIL      0     0     0  was /dev/gptid/1d0c6486-b294-11e7-9f                                        a1-00259075526b
            gptid/15dd5559-46eb-11e7-8366-00259075526b  ONLINE       0     0     0
            gptid/cde34052-b80d-11e7-9fa1-00259075526b  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Wed Nov 17 03:46:44 2021
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors
 

berrick

Explorer
Joined
Mar 19, 2013
Messages
78
Think I have a way to do this in the GUI.

Will give it a try once I have a replacement disk and report back
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Think I have a way to do this in the GUI.
I think you must have found that it's in the pool status list, not the disks list...
 

berrick

Explorer
Joined
Mar 19, 2013
Messages
78
Initially I follow the manual (So I thought) and it says make the disk offline. However this cant be done because the disk is no longer present in the disk list (Storage from top menu -> View disks).

Search the forums etc loadsa peeps just say read the manual which is not helpful in this case. How can you make a disk offline if its not in the list!!

Whilst reading some loosely related, older posts, someone suggested the disk may already be offline therefore is why it not showing in disk list. Hence my saying "Think I have a way to do this in the GUI".

As this was not my NAS box I was a little nervous about continuing having not been down this path before and why I started this thread.

So, in this case the following worked

  • Disk was hot swappable so didnt need to shutdown to replace failed disk with new disk
  • Click Storage from top menu. Select the degraded volume, Vol1 in this case. This will then display 3 more buttons at the bottom of the page
    • Detach volume, Scrub volume and volume status
  • Click volume status which displays the following
  • select the unavailable disk and more buttons appear at bottom of page
    • Edit disk, Offline and replace
  • Click replace and it should start to resilver

VolNAS.jpg


You live and learn :)
 
Top