Gerard Henry
2010-Jul-14 09:51 UTC
[zfs-discuss] zfs clone but destroy impossible in os2009.06 (b111)
hello all, i guess i hit the bug: http://defect.opensolaris.org/bz/show_bug.cgi?id=7491 on my system: # zfs list rpool/zones/catalogue3 NAME USED AVAIL REFER MOUNTPOINT rpool/zones/catalogue3 10.1G 7.17G 70K /zones/catalogue3 # zfs destroy rpool/zones/catalogue3 cannot destroy ''rpool/zones/catalogue3'': filesystem has children use ''-r'' to destroy the following datasets: rpool/zones/catalogue3/ROOT/zbe at 20100709 rpool/zones/catalogue3/ROOT/zbe rpool/zones/catalogue3/ROOT/zbe-2 at catalogue_snap rpool/zones/catalogue3/ROOT/zbe-2 at catalogue2_snap rpool/zones/catalogue3/ROOT/zbe-2 at test_drupal_snap .... and: # zfs destroy -r rpool/zones/catalogue3 cannot destroy ''rpool/zones/catalogue3'': filesystem has dependent clones use ''-R'' to destroy the following datasets: rpool/zones/bibcmi4/ROOT/zbe-2 at bibcmi3_snap rpool/zones/template_zone/ROOT/zbe at 20100709 rpool/zones/template_zone/ROOT/zbe rpool/zones/template_zone/ROOT/zbe-2 at zbe-2 rpool/zones/template_zone/ROOT/zbe-2 at 20100709 rpool/zones/template_zone/ROOT/zbe-2 rpool/zones/bibcmi4/ROOT/zbe-2 at bibcmi_snap rpool/zones/bibcmi/ROOT/zbe at 20100709 rpool/zones/bibcmi/ROOT/zbe rpool/zones/bibcmi/ROOT/zbe-2 at zbe-2 ... i just want to destroy catalogue3 zone, not the others. So according the last command, i manually promote the corresponding dataset: # zfs promote rpool/zones/bibcmi4/ROOT/zbe-2 # zfs promote rpool/zones/catalogue4/ROOT/zbe etc... But now, is it possible to find all the fs that have dependant clones? (i have 17 zones, many of them created as clones). I guess that every promote command consumes more place on rpool? that''s what prevent me to upgrade to b134 now, i have to clean the disk before upgrade. thanks in advance for help, gerard -- This message posted from opensolaris.org