I have been scanning the solaris documentation and reviewing metalink for the correct way to first destroy a zpool and then remove the lun and clear up the device tree etc on a solaris 10 SPARC machine (u11).
I have a zpool called 'holding' and it has a single underlying disk which is really a virtual volume on a 3PAR array.
I know the first step is to remove all the data etc and then:
$> zpool destroy holding
My question is - what next next? Can I simply remove the lun then on the SAN or do I need to do some tidy up first? I'm astonished for something this simple I cannot find the relevant cfgadm commands - looked in solaris basic/advanced admin, zfs admin and SAN admin books. Surely I just haven't found it or overlooked it?
I have seen some horror stories if you do not this in the correct order - Doc ID 1517820.1 is particularly unhelpful
Thank you for any help
In general, you can destroy the pool and reuse or remove the LUN so with normal operations, there's no need to do any thing else. Problems can occur if the LUN went away or was trampled on with an active pool, and the pool was damaged. Then yes, you might have to remove the remains of an unhealthy pool. If the pool status is okay and the LUN status is okay:
# zpool status -v
# fmadm faulty
Do you have reasons to believe removing the pool or the LUN would be a problem?