Friday, December 13, 2013

Zpool Destroy Core Dumped

Goal
Destroy a zpool which has a vdev with missing labels.

The zpool status -xv shows the vdev is UNAVAIL due to missing labels:

# zpool status -xv
 pool: mypool
state: UNAVAIL
status: One or more devices could not be used because the label is missing or invalid. There are insufficient replicas for the pool to continue functioning.In this situation, the zfs destroy command cores dump:

# zpool destroy -f mypool
internal error: Invalid argument
Abort(coredump) 

Solution
Rename the /etc/zfs/zpool.cache file and reboot the server.

After the reboot, the zpool can be recreated.

No comments:

Post a Comment