Tried replacing a drive and I keep getting extra offline devices

Beyonder

Cadet
Joined
Mar 10, 2020
Messages
5
I setup my freenas system 5 years with no real issues until 3 days ago.

Tried replacing a drive and I keep getting extra offline devices with my pool in degraded state.
Screen Shot 2020-03-10 at 9.43.00 AM.png



The setup is laughable but worked.
ASrock 970 Extreme4
AMD sempron
16GB
16 HD in 8 vdevs Mirrored, boot from USB thumb drive-mirrored
Dell perc h200 controller flashed to LSI
intel network card
freenas 13.3-U1
 

Battlebot32

Cadet
Joined
Oct 19, 2016
Messages
5
I ran into this exact issue 2 weeks ago. Turned out to be a failing Power Supply that I was using that was 10 years old. Every time I plugged in a new drive it would draw too much power from the failing PSU and would turn off one of the other drives. I replaced the PSU with a new one and that fixed the issue.
 

Beyonder

Cadet
Joined
Mar 10, 2020
Messages
5
I have an extra power supply and will swap it out. How did you remove the offline drives and in my case the unavailable drive?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
zfs online followed by zfs scrub

Edit: that's zpool instead of zfs for both commands!
 
Last edited:

Battlebot32

Cadet
Joined
Oct 19, 2016
Messages
5
Follow the instructions above for the offline drives and the unavailable drive should show back up normally after the PSU has been replaced.
 

Beyonder

Cadet
Joined
Mar 10, 2020
Messages
5
Follow the instructions above for the offline drives and the unavailable drive should show back up normally after the PSU has been replaced.

I know enough to be dangerous and hope I do it correctly but would feel much safer if someone could walk me through it. In shell I type the
Code:
zfs online
but how do I determine the drive or pool?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
zpool status will tell you that. And I mistyped my last post. It is of course zpool online and zpool scrub. Sorry.
 

Beyonder

Cadet
Joined
Mar 10, 2020
Messages
5
not a problrm with the typo
did zpool status and got the below.

what should I type for zpool online

Code:
root@freenas:~ # zpool status
  pool: bigdisk
 state: DEGRADED
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://illumos.org/msg/ZFS-8000-8A
  scan: resilvered 1.17T in 0 days 04:58:28 with 7 errors on Mon Mar  9 19:01:40 2020
config:

        NAME                                              STATE     READ WRITE CKSUM
        bigdisk                                           DEGRADED     0     0   7
          mirror-0                                        ONLINE       0     0   0
            gptid/f30bb762-4c96-11e7-b8f8-bc5ff4d79176    ONLINE       0     0   0
            gptid/f684180c-4c96-11e7-b8f8-bc5ff4d79176    ONLINE       0     0   0
          mirror-1                                        ONLINE       0     0   0
            gptid/f948e850-4c96-11e7-b8f8-bc5ff4d79176    ONLINE       0     0   0
            gptid/fbfea3df-4c96-11e7-b8f8-bc5ff4d79176    ONLINE       0     0   0
          mirror-2                                        ONLINE       0     0   0
            gptid/49aede5a-5239-11e7-8c3d-bc5ff4d79176    ONLINE       0     0   0
            gptid/ef6740cd-5256-11e7-8c3d-bc5ff4d79176    ONLINE       0     0   0
          mirror-3                                        ONLINE       0     0   0
            gptid/a458941c-b0ed-11e9-acc5-bc5ff4d79176    ONLINE       0     0   0
            gptid/4a57e2a9-60c7-11ea-aa54-bc5ff4d79176    ONLINE       0     0   0
          mirror-4                                        ONLINE       0     0   0
            gptid/cedf1952-5433-11e7-b7ad-bc5ff4d79176    ONLINE       0     0   0
            gptid/864b4128-546a-11e7-b75a-bc5ff4d79176    ONLINE       0     0   0
          mirror-5                                        ONLINE       0     0   0
            gptid/87874f7d-546f-11e7-b75a-bc5ff4d79176    ONLINE       0     0   0
            gptid/2117844d-54a7-11e7-b75a-bc5ff4d79176    ONLINE       0     0   0
          mirror-6                                        ONLINE       0     0   0
            gptid/56137504-56a2-11e7-bba8-bc5ff4d79176    ONLINE       0     0   0
            gptid/d6e78e8e-56cb-11e7-bba8-bc5ff4d79176    ONLINE       0     0   0
          mirror-7                                        DEGRADED     0     0  14
            replacing-0                                   DEGRADED    14     0   0
              9441626568439762399                         OFFLINE      0     0   0  was /dev/gptid/94c4e440-5233-11e7-8c3d-bc5ff4d79176
              10357227814778871455                        OFFLINE      0     0   0  was /dev/gptid/8c989590-615b-11ea-8154-bc5ff4d79176
              301272103528604368                          UNAVAIL      0     0   0  was /dev/gptid/9e1b8cd8-621a-11ea-967f-bc5ff4d79176
              gptid/23199696-621e-11ea-967f-bc5ff4d79176  ONLINE       0     0  14
            gptid/96aafd82-5233-11e7-8c3d-bc5ff4d79176    ONLINE       0     0  14

errors: 7 data errors, use '-v' for a list

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:05:21 with 0 errors on Sun Mar  8 03:50:21 2020
config:

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

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You changed the power supply? Looks like all your mirror disks are online, so a zpool status -v bigdisk. This should tell you which files are gone for good. You need to delete these and use zpool clear bigdisk to reset the errors. I don't know if that removes the bogus device entries, too. Better wait for another ZFS savvy person to confirm, though.

Patrick
 

Beyonder

Cadet
Joined
Mar 10, 2020
Messages
5
Yes I changed the power supply. Many thanks I'll wait for confirmation from others before trying to correct the issue
 
Top