Importing a pool with missing devices

All your general support questions for OpenZFS on OS X.

Importing a pool with missing devices

Postby svh79 » Mon Feb 15, 2016 12:12 am

Good morning,

I currently experience issues with importing my pool:

Code: Select all
$ sudo zpool import -m Vault

   pool: Vault
     id: 8521804164838306612
  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:

   Vault                                           UNAVAIL  missing device
     mirror-0                                      ONLINE
       media-5BB876E9-2A0A-DD4F-9D29-E61F9968B954  ONLINE
       media-C16E2852-FB79-8940-95BC-27444E5ECB96  ONLINE

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


The missing devices warning is correct: there were two single disks added to the pool and physically unplugged due to hardware failure. Unplugging them also caused OS X to auto-reboot, which is probably another issue.

The mirror-0 still looks intact to me. Is there any way to get access to the data on the drives?

Best regards,
Sven
svh79
 
Posts: 4
Joined: Mon Feb 15, 2016 12:03 am

Re: Importing a pool with missing devices

Postby haer22 » Mon Feb 15, 2016 10:16 am

Did you have a log device associated with that pool? I thin that is the missing piece.

You can force an import by:
zpool import -f Vault

You may loose the stuff that was on the log device if you had a sudden robot (i.e. a panic).
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: Importing a pool with missing devices

Postby svh79 » Mon Feb 15, 2016 10:24 am

No, there was no log device.

Code: Select all
$ sudo zpool import -f Vault
cannot import 'Vault': one or more devices is currently unavailable


Is there an alternate possibility like creating a new pool using one of the mirrored drives without data loss?
svh79
 
Posts: 4
Joined: Mon Feb 15, 2016 12:03 am

Re: Importing a pool with missing devices

Postby svh79 » Mon Feb 15, 2016 1:46 pm

Using the cache file, I get this output:

Code: Select all
$ sudo zpool import -c /etc/zfs/zpool.cache -f
Password:
   pool: Vault
     id: 8521804164838306612
  state: UNAVAIL
 status: One or more devices contains corrupted data.
 action: The pool cannot be imported due to damaged devices or data.
   see: http://zfsonlinux.org/msg/ZFS-8000-5E
 config:

   Vault                                           UNAVAIL  insufficient replicas
     mirror-0                                      ONLINE
       media-5BB876E9-2A0A-DD4F-9D29-E61F9968B954  ONLINE
       media-C16E2852-FB79-8940-95BC-27444E5ECB96  ONLINE
     disk5                                         UNAVAIL  corrupted data
     disk6                                         UNAVAIL  corrupted data


I have already attached two identical discs of those that failed and they are also available as disk5 and disk6, but they are formatted with HFS+:

Code: Select all
$ diskutil list
[...]
/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *8.0 TB     disk3
   1:                        ZFS                         8.0 TB     disk3s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               67.1 MB    disk3s9
/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *8.0 TB     disk4
   1:                        ZFS                         8.0 TB     disk4s1
   2: 6A945A3B-1DD2-11B2-99A6-080020736631               67.1 MB    disk4s9
/dev/disk5 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk5
   1:                        EFI EFI                     209.7 MB   disk5s1
   2:                  Apple_HFS USB00001                2.0 TB     disk5s2
/dev/disk6 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk6
   1:                        EFI EFI                     209.7 MB   disk6s1
   2:                  Apple_HFS USB00002                2.0 TB     disk6s2
svh79
 
Posts: 4
Joined: Mon Feb 15, 2016 12:03 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron