Trying to get pool online

All your general support questions for OpenZFS on OS X.

Trying to get pool online

Postby Nanotech » Fri Sep 30, 2016 12:35 pm

I had two hard drives an on external enclosure but I recently put them in a new enclosure I recently bought. When I tried to import my pool (mirrorpool) I encountered an error on one of the hard drives (said faulted). I haven't been able to replace the hard drive using the usual commands. I'm running the latest stable version of openzfs on El capitan.

The labels are all changed as well. I am able to access the data on the pool. I'm not sure if I need to buy a new hard drive, I thought it may just be a labeling problem. I would also prefer to not rebuild the pool.

S:~ Samuel$ zpool status
pool: MirrorPool
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub canceled on Fri Sep 30 14:38:19 2016
config:

NAME STATE READ WRITE CKSUM
MirrorPool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
3888173273276764392 FAULTED 0 0 0 was /dev/disk2s1
media-5F2C0073-7570-C341-A3F0-0CFA0A76F8A7 ONLINE 0 0 0

errors: No known data errors
S:~ Samuel$ sudo zpool replace -f MirrorPool 3888173273276764392 /dev/disk2
invalid vdev specification
the following errors must be manually repaired:
/dev/disk2s1 is part of active pool 'MirrorPool'
S:~ Samuel$ sudo zpool replace -f MirrorPool /dev/disk2s1
invalid vdev specification
the following errors must be manually repaired:
/dev/disk2s1 is part of active pool 'MirrorPool'
Nanotech
 
Posts: 4
Joined: Fri Sep 30, 2016 12:29 pm

Re: Trying to get pool online

Postby murraypetera » Sat Oct 01, 2016 12:50 pm

Try This:

Pool lost - /etc file gone, etc.
zpool import -R BigDog
pool: BigDog
id: 16255257430452283298
state: ONLINE
zpool import

or

Find the disk
diskutil list
dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS 749.8 GB disk4s2

ls -l /var/run/disk/by-id/ | grep disk4
media-29906F16-4B85-4E68-85BC-9A106A97B451 -> /dev/disk4s2
zpool export BigDog
Remove and insert new disk
diskutil list
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *5.0 TB disk3
1: 0xEE 625.1 GB disk3s1
media-7B75F17D-E7EA-4C3F-B02A-12BB040D68D1 -> /dev/disk3s2
zpool import BigDog
zpool replace BigDog media-29906F16-4B85-4E68-85BC-9A106A97B451 media-7B75F17D-E7EA-4C3F-B02A-12BB040D68D1
murraypetera
 
Posts: 25
Joined: Wed Apr 22, 2015 2:18 pm

Re: Trying to get pool online

Postby Nanotech » Sat Oct 01, 2016 9:03 pm

Thanks for your advice. I will look into it so I can navigate zfs better in the future. I had some minor issues with the pool from previous experimentation, so in the end I made a new pool, transferred data over to it and destroyed the old pool. I also reattached the drive to make a mirrorpool again.
Nanotech
 
Posts: 4
Joined: Fri Sep 30, 2016 12:29 pm


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 27 guests