Hi Al,
That depends on whether you want to go back to a VTOC/SMI label or
keep the EFI label created by ZFS. To keep the EFI label just
repartition and use the partitions as desired. If you want to go back
to a VTOC/SMI label you have to run format -e and then relabel the
disk and select SMI.
Be sure to run "zpool destroy poolname" before relabeling a lun used
for zfs.
To automatically recreate the default VTOC label you could incorporate
the following into a script and iterate over a list of disks.
1. Create a label.dat file with the following line in it...
label 0 y
2. Then execute the following format command...
format -e -m -f /tmp/label cxtxdx
That should apply a default VTOC SMI label.
For x86 you may need run following before the format command...
usr/sbin/fdisk -B cxtxdxp0
Regards,
Vic
On Dec 17, 2007 9:36 AM, Al Slater <al.slater at scluk.com>
wrote:> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> What is the quickest way of clearing the label information on a disk
> that has been previously used in a zpool?
>
> regards
>
> - --
> Al Slater
>
> Technical Director
> SCL
>
> Phone : +44 (0)1273 666607
> Fax : +44 (0)1273 666601
> email : al.slater at scluk.com
>
> Stanton Consultancy Ltd
> Pavilion House, 6-7 Old Steine, Brighton, East Sussex, BN1 1EJ
> Registered in England Company number: 1957652 VAT number: GB 760 2433 55
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHZoluz4fTOFL/EDYRAnr5AJ4ie+xFNCi6gA5HLZ8IqI1wHItEEwCgj0ru
> EwSc9B16io3kBz2wS0LGoEQ> =eaZc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>