Hello list, it is damn difficult to destroy ZFS labels :)
I try to remove the vedev labels of disks used in a pool before. According to http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/ondiskformat0822.pdf I created a script that removes the first 512 KB and the last 512 KB, however I always miss the last labels .. -------------------------------------------- LABEL 0 -------------------------------------------- failed to unpack label 0 -------------------------------------------- LABEL 1 -------------------------------------------- failed to unpack label 1 -------------------------------------------- LABEL 2 -------------------------------------------- version=14 name='pool1' state=1 txg=26 .... -------------------------------------------- LABEL 3 -------------------------------------------- version=14 name='pool1' state=1 How can I calculate or determine the location of the superblocks described ion the document above ? Has that changed over the versions of ZFS ? (I now that vdevs now do not need to be exactly the same size in later OpenSolaris releases, so maybe something has changed) Any hints appreshiated .. p.s. Clearing the whole disk is troublesome, because those are a bunch of 1 TB disks and deletion should be fast. -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss