Find a "unknown : DEVICE ONLINE" pool dashboard

noo_billy

Cadet
Joined
Sep 6, 2020
Messages
5
Problem: ada 2 : Online > unknown : DEVICE ONLINE on pool dashboard(Picture 1, Picture 2), it cannot be edited anymore.
However, the pool is fine. (Picture 3)
Rebooted 3 times, all disks can be detected on BIOs.

Picture 1 :
Screenshot_1.png


Picture 2:
Screenshot_2.png


Picture 3:
Screenshot_3.png


My setup :
Motherboard : Asus Z97-deluxe/usb 3.1(10 SATA ports)
CPU : Intel i7-4790k
GPU : Zotac 1660 Super
RAM : ADATA XPG V2 DDR3 1600 CL9-9-9-24 8GB x 4(X.M.P Disabled)
PSU: Sharkoon Silentstorm Cool Zero 750w Gold
OS: FreeNAS-11.3-U5
Disk :
ada 0(SSD) : Crucail CT500MX500SSD 500GB(Windows 10 Installed)
ada 1(SSD) : ADATA ADATA SU650 240GB(FreeNAS-11.3-U5 Installed)
ada 2-9(HDD) : Western Digital WDC WD120EFAX-68UNTN0 12TB(Raidz2)


"zpool status" on console
Code:
root@Billy-Freenas[~]# zpool status
  pool: freenas
 state: ONLINE
  scan: resilvered 26.5G in 0 days 00:05:21 with 0 errors on Mon Jan  4 17:03:18 2021
config:

        NAME                                            STATE     READ WRITE CKSUM
        freenas                                         ONLINE       0     0 0
          raidz2-0                                      ONLINE       0     0 0
            gptid/8194145c-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            gptid/81a4bb52-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            gptid/81a92514-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            gptid/81a7456f-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            gptid/81aacba1-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            gptid/81d92659-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0
            ada2p2                                      ONLINE       0     0 0
            gptid/81dc976b-f032-11ea-9ab8-08626683691a  ONLINE       0     0 0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:00:15 with 0 errors on Sat Jan  2 03:45:15 2021
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
It appears that you added ada2 via CLI or otherwise some issue occurred preventing it from displaying correctly in the status.

Consider either wiping that disk and re-adding it via GUI or re-add it with CLI, but make sure the partitions are correct and assign the partition by gptid when doing the replace.
 

noo_billy

Cadet
Joined
Sep 6, 2020
Messages
5
It appears that you added ada2 via CLI or otherwise some issue occurred preventing it from displaying correctly in the status.

Consider either wiping that disk and re-adding it via GUI or re-add it with CLI, but make sure the partitions are correct and assign the partition by gptid when doing the replace.
Do you mean that offline ada2 and then use the replace function to rebuild ada2?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Do you mean that offline ada2 and then use the replace function to rebuild ada2?
Offline it, Wipe it and then replace it with the same disk (either in GUI or CLI).
 

noo_billy

Cadet
Joined
Sep 6, 2020
Messages
5
Offline it, Wipe it and then replace it with the same disk (either in GUI or CLI).
Thanks for your reply.
I will try to conduct your advice after I scrub my pool once.
Since I afraid that the HDD from ada2 is broken, is it good to do a badblocks test after I wipe it?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
is it good to do a badblocks test after I wipe it?
I would start with checking smartctl -a /dev/ada2

If you haven't already scheduled smart short and long tests, now's a good time to think about that for all disks. You can run an ad-hoc test with smartctl -t long /dev/ada2 if you haven't run one before and then wait several hours before checking back with the -a for the results.

This will probably be enough, but you can certainly run badblocks if you want to be fully confident in the disk (forum recommended for all new disks anyway).
 

noo_billy

Cadet
Joined
Sep 6, 2020
Messages
5
You can run an ad-hoc test with smartctl -t long /dev/ada2
I did
Code:
smartctl  -t short /dev/ada2
today. It is "PASSED".
I will do a
Code:
smartctl -t long /dev/ada2
after the pool is scrubbed.
Thanks for the advice:smile:
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
You should try to do everything from the GUI, if possible, and only use the command line for things that can't be done in the GUI. Many things in FreeNAS and TrueNAS, when done from the GUI, do additional steps that you are not aware of.

For example, when you replace a pool disk from the GUI, the middle-ware creates two partitions (one for swap, one for ZFS) and uses the gptid of the partition to join that partition to the pool instead of using the entire disk. Someone posted the steps for doing this from the command line once because it was not possible to add a mirror to a single disk pool from the GUI.

ZFS: Adding a drive to create a mirror
 
Top