You are not logged in.

#1 2016-02-05 15:13:11

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] ZFS won't mount pool because it thinks drives are missing

Edit: After talking with the guys in #ZFSonLinux for like an hour or so we came to the conclusion that my pool was FUBAR since I had used zfs add at some point so ZFS thought there was a missing device even though there wasn't. I had to destroy the pool and start from scratch.


I have 4 mirrored pairs in my ZFS pool and I have been slowly replacing the 3 TB WD Green drives with 4 TB HGST drives. The thing is that I've been doing it through the FreeNAS GUI all the previous times, now I switched my NAS over to Linux and decided to do it myself manually. I didn't want to do a "safe" replace since the 8 drives are attached to an Intel HBA and the replacement drive would have been on a SATA2 link. So I offlined the 3 TB drive from the pool and removed it, then attempted to try to figure out how to add the other drive back in but I couldn't figure it out. Hours later everything still worked fine with just the half of the last VDEV and I rebooted my NAS because NFS was giving me problems, when it booted back up it was missing the last mirrored VDEV and won't mount the pool at all! I noticed that it said it was missing devices so I re-inserted my 3 TB drive and now for some reason it shows that the 4 TB drive is corrupt. So I would like to replace the corrupted 4 TB HGST ( ata-HGST_HDN724040ALE640_PK1334PCJBG98S) with the unused 4 TB (ata-HGST_HDN724040ALE640_PK2381PBJEPTHT) and then once the corrupted 4 TB ( ata-HGST_HDN724040ALE640_PK1334PCJBG98S) can be removed, I'd like to use that to replace the 3 TB (ata-WDC_WD30EZRX-00SPEB0_WD-WCC4E0483236)

Here's the current output:

root@nas:~# zpool import -d /dev/disk/by-id
   pool: pool
     id: 1467639957024392309
  state: UNAVAIL
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
        devices and try again.
   see: http://zfsonlinux.org/msg/ZFS-8000-6X
 config:

        pool                                          UNAVAIL  missing device
          mirror-0                                    ONLINE
            ata-WDC_WD10JFCX-68N6GN0_WD-WXN1E74LS79A  ONLINE
            ata-WDC_WD10JFCX-68N6GN0_WD-WXN1E743TFVA  ONLINE
          mirror-1                                    ONLINE
            ata-HGST_HDN724040ALE640_PK2338P4H08E2C   ONLINE
            ata-HGST_HDN724040ALE640_PK2334PCJL6H5B   ONLINE
          mirror-2                                    ONLINE
            ata-HGST_HDN724040ALE640_PK1334PCK32T6S   ONLINE
            ata-HGST_HDN724040ALE640_PK2331PBJ2ZRXT   ONLINE
          mirror-3                                    ONLINE
            ata-HGST_HDN724040ALE640_PK1334PCJBG98S   UNAVAIL  corrupted data
            ata-WDC_WD30EZRX-00SPEB0_WD-WCC4E0483236  ONLINE
        logs
          ata-INTEL_SSDSC2BA100G3_BTTV543501W8100FGN  ONLINE

        Additional devices are known to be part of this pool, though their
        exact configuration cannot be determined.

Here's all the disks in my NAS

Mirrored Pool

ata-HGST_HDN724040ALE640_PK1334PCJBG98S
ata-HGST_HDN724040ALE640_PK1334PCK32T6S
ata-HGST_HDN724040ALE640_PK2331PBJ2ZRXT
ata-HGST_HDN724040ALE640_PK2334PCJL6H5B
ata-HGST_HDN724040ALE640_PK2338P4H08E2C
ata-WDC_WD10JFCX-68N6GN0_WD-WXN1E743TFVA
ata-WDC_WD10JFCX-68N6GN0_WD-WXN1E74LS79A
ata-WDC_WD30EZRX-00SPEB0_WD-WCC4E0483236


New Drive
ata-HGST_HDN724040ALE640_PK2381PBJEPTHT

SLOG
ata-INTEL_SSDSC2BA100G3_BTTV543501W8100FGN

OS Drive
ata-Samsung_SSD_850_EVO_120GB_S21TNXAG810778J

Last edited by brando56894 (2016-02-08 20:05:39)

Offline

Board footer

Powered by FluxBB