How to recover the mistakenly deleted/destroyed Zpool.
root@sukhoi:/# zpool destroy fighter =========> mistakenly deleted/destroyed Zpool
To recover the destroyed pool, run the zpool import -D command with the pool to be recovered
root@sukhoi:/# zpool import -D fighter
root@sukhoi:/# zpool status
pool: fighter
state: ONLINE
scan: resilvered 1K in 1s with 0 errors on Tue Jul 25 21:47:54 2017
config:
NAME STATE READ WRITE CKSUM
fighter ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c4t0d0 ONLINE 0 0 0
c4t1d0 ONLINE 0 0 0
c4t2d0 ONLINE 0 0 0
c4t3d0 ONLINE 0 0 0
c4t4d0 ONLINE 0 0 0
c4t5d0 ONLINE 0 0 0
c4t6d0 ONLINE 0 0 0
c4t7d0 ONLINE 0 0 0
errors: No known data errors
If one of the devices in the destroyed pool is faulted or unavailable,
you might be able to recover the destroyed pool anyway by including the -f option. In this scenario, you would import the degraded pool and
then attempt to fix the device failure
Regards
Gurudatta N.R
.
No comments:
Post a Comment