Igor Hjelmstrom Vinhas Ribeiro
2012-06-23 17:04:29 UTC
Hi!
I lost a log device and a cache device of an (exported, offline) zpool
version 23.
I am unable to import it now:
*
*
*root:~/ # zpool import*
* pool: igorhvr-data*
* id: 269256866566772131*
* 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://www.sun.com/msg/ZFS-8000-6X*
*config:*
* igorhvr-data UNAVAIL missing device*
* mirror-0 ONLINE*
* disk/by-id/dm-name-igorhvr-data-0 ONLINE*
* disk/by-id/dm-name-igorhvr-data-1 ONLINE*
* Additional devices are known to be part of this pool, though their*
* exact configuration cannot be determined.*
*root:~/ # zpool import -f igorhvr-data*
*cannot import 'igorhvr-data': one or more devices is currently unavailable*
* Destroy and re-create the pool from*
* a backup source.*
zpool import -F fails with the same error message. Both data devices are
ok and where not touched (except for the failed import attempt above).
Supposedly the pool should be recoverable (since it is version 23), based
on what I read.
Is this true? Assuming it is possible to recover it, what method would
be most advised? The options I am currently considering are:
- Retrying the import under a recente FreeBSD version (perhaps a
version-28 toolset would have a better chance of importing the pool);
- Some (rather painful) variation of the method described at the bottom
of http://forums.freebsd.org/showthread.php?t=18221 to build a (fake) log
device that can be used to import the pool;
- Remove the GUID SUM verification code (basically comment out this
section):
* /*
* If the vdev guid sum doesn't match the uberblock, we have an
* incomplete configuration.
*/
if (mosconfig && type != SPA_IMPORT_ASSEMBLE &&
rvd->vdev_guid_sum != ub->ub_guid_sum)
return (spa_vdev_err(rvd, VDEV_AUX_BAD_GUID_SUM, ENXIO));*
and re-attempt the import (and hope the pool will be loaded in a degraded
state, my guess).
Any advice on what road to take and/or other ideas I could try?
Best Regards,
I lost a log device and a cache device of an (exported, offline) zpool
version 23.
I am unable to import it now:
*
*
*root:~/ # zpool import*
* pool: igorhvr-data*
* id: 269256866566772131*
* 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://www.sun.com/msg/ZFS-8000-6X*
*config:*
* igorhvr-data UNAVAIL missing device*
* mirror-0 ONLINE*
* disk/by-id/dm-name-igorhvr-data-0 ONLINE*
* disk/by-id/dm-name-igorhvr-data-1 ONLINE*
* Additional devices are known to be part of this pool, though their*
* exact configuration cannot be determined.*
*root:~/ # zpool import -f igorhvr-data*
*cannot import 'igorhvr-data': one or more devices is currently unavailable*
* Destroy and re-create the pool from*
* a backup source.*
zpool import -F fails with the same error message. Both data devices are
ok and where not touched (except for the failed import attempt above).
Supposedly the pool should be recoverable (since it is version 23), based
on what I read.
Is this true? Assuming it is possible to recover it, what method would
be most advised? The options I am currently considering are:
- Retrying the import under a recente FreeBSD version (perhaps a
version-28 toolset would have a better chance of importing the pool);
- Some (rather painful) variation of the method described at the bottom
of http://forums.freebsd.org/showthread.php?t=18221 to build a (fake) log
device that can be used to import the pool;
- Remove the GUID SUM verification code (basically comment out this
section):
* /*
* If the vdev guid sum doesn't match the uberblock, we have an
* incomplete configuration.
*/
if (mosconfig && type != SPA_IMPORT_ASSEMBLE &&
rvd->vdev_guid_sum != ub->ub_guid_sum)
return (spa_vdev_err(rvd, VDEV_AUX_BAD_GUID_SUM, ENXIO));*
and re-attempt the import (and hope the pool will be loaded in a degraded
state, my guess).
Any advice on what road to take and/or other ideas I could try?
Best Regards,
--
igorhvr
--
To post to this group, send email to zfs-fuse-/***@public.gmane.org
To visit our Web site, click on http://zfs-fuse.net/
igorhvr
--
To post to this group, send email to zfs-fuse-/***@public.gmane.org
To visit our Web site, click on http://zfs-fuse.net/