I have a pool with zvolume (Opensolaris b134) When I try zpool destroy tank I get "pool is busy" # zpool destroy -f tank cannot destroy ''tank'': pool is busy When I try destroy zvolume first I get " dataset is busy" # zfs destroy -f tank/macbook0-data cannot destroy ''tank/macbook0-data'': dataset is busy zfs list NAME USED AVAIL REFER MOUNTPOINT tank/fs1 134K 16.7T 44.7K /tank/fs1 tank/fs2 135K 16.7T 44.7K /tank/fs2 tank/macbook0-data 4.13T 20.3T 522G - tank/fs3 145G 16.7T 145G /tank/fs3 What next should I try ? Please help. Thanks in advance. -- This message posted from opensolaris.org
Hi Alxen4, If /tank/macbook0-data is a ZFS volume that has been shared as an iSCSI LUN, then you will need to unshare/remove those features before removing it. Thanks, Cindy On 08/18/10 00:10, Alxen4 wrote:> I have a pool with zvolume (Opensolaris b134) > > When I try zpool destroy tank I get "pool is busy" > > # zpool destroy -f tank > cannot destroy ''tank'': pool is busy > > > When I try destroy zvolume first I get " dataset is busy" > > # zfs destroy -f tank/macbook0-data > cannot destroy ''tank/macbook0-data'': dataset is busy > > zfs list > NAME USED AVAIL REFER MOUNTPOINT > > tank/fs1 134K 16.7T 44.7K /tank/fs1 > tank/fs2 135K 16.7T 44.7K /tank/fs2 > tank/macbook0-data 4.13T 20.3T 522G - > tank/fs3 145G 16.7T 145G /tank/fs3 > > > What next should I try ? > > Please help. > > Thanks in advance.
Thanks Cindy, I just needed to delete all luns before sbdadm delete-lu 600144F00800270514BC4C1E29FB0001 itadm delete-target -f iqn.1986-03.com.sun:02:f38e0b34-be30-ca29-dfbd-d1d28cd75502 And then I was able to destroy ZFS system itself. -- This message posted from opensolaris.org