Jianhua Yang
2009-Jan-05 19:27 UTC
[zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ?
I''m newbie in ZFS, and have question: how to convert ZFS formated disk back to tradistional Sun disk ? ZFS formated disk: # prtvtoc /dev/rdsk/c3t0d0s2 * /dev/rdsk/c3t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 17689267 sectors * 17689200 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 4 00 34 17672816 17672849 8 11 00 17672850 16384 17689233 partition> p Current partition table (original): Total disk sectors available: 17672849 + 16384 (reserved sectors) Part Tag Flag First Sector Size Last Sector 0 usr wm 34 8.43GB 17672849 1 unassigned wm 0 0 0 2 unassigned wm 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 unassigned wm 0 0 0 8 reserved wm 17672850 8.00MB 17689233 partition> from above vtoc, ZFS created partition 8, deleted partition 7, partition 2 is zeroed. now to convert it back so it can be used by other file systems, such as UFS ? I tried "type" option from format cmd, it create the following vtoc: format> type AVAILABLE DRIVE TYPES: 0. Auto configure 1. other Specify disk type (enter its number)[1]: 0 c3t0d0: configured with capacity of 8.43GB <FUJITSU-MAG3091L SUN9.0G-1111-8.43GB> selecting c3t0d0 [disk formatted] format> p PARTITION MENU: 0 - change `0'' partition 1 - change `1'' partition 2 - change `2'' partition 3 - change `3'' partition 4 - change `4'' partition 5 - change `5'' partition 6 - change `6'' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quit partition> p Current partition table (default): Total disk sectors available: 17672849 + 16384 (reserved sectors) Part Tag Flag First Sector Size Last Sector 0 root wm 34 128.00MB 262177 1 swap wu 262178 128.00MB 524321 2 unassigned wu 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 usr wm 524322 8.18GB 17672848 8 reserved wm 17672849 8.00MB 17689232 partition> # prtvtoc /dev/rdsk/c3t0d0s2 * /dev/rdsk/c3t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 17689267 sectors * 17689200 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 34 262144 262177 1 3 01 262178 262144 524321 6 4 00 524322 17148527 17672848 8 11 00 17672849 16384 17689232 # so does that means that partition 8 is the whole disk now (the same like the partition 2 on the tradition disk ? I also tried fmthard cmd by copying other disk''s vtoc to this disk but failed wtih return code of 1: # prtvtoc /dev/rdsk/c3t1d0s2 | fmthard -s - /dev/rdsk/c3t0d0s2 fmthard: Partition 0 overlaps partition 2. Overlap is allowed only on partition on the full disk partition). # -- This message posted from opensolaris.org
Cyril Plisko
2009-Jan-05 19:37 UTC
[zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ?
On Mon, Jan 5, 2009 at 9:27 PM, Jianhua Yang <jianhua.yang at db.com> wrote:> I''m newbie in ZFS, and have question: > > how to convert ZFS formated disk back to tradistional Sun disk ?format -e will let you choose between two types of label - EFI and SMI. ZFS uses EFI when you give the whole disk to it. SMI is a traditional label used historically on disks. I persoanlly see no reason to go back to SMI even if disk is not part of zpool (boot disk is notable exception). However, if you really need it format -e is your friend. -- Regards, Cyril
Jianhua Yang
2009-Jan-05 20:15 UTC
[zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ?
cyril.plisko at gmail.com wrote on 01/05/2009 02:37:51 PM:> On Mon, Jan 5, 2009 at 9:27 PM, Jianhua Yang <jianhua.yang at db.com> wrote: > > I''m newbie in ZFS, and have question: > > > > how to convert ZFS formated disk back to tradistional Sun disk ? > > format -e > > will let you choose between two types of label - EFI and SMI. > > ZFS uses EFI when you give the whole disk to it. SMI is a traditional > label used historically on disks. I persoanlly see no reason to go > back to SMI even if disk is not part of zpool (boot disk is notable > exception). However, if you really need it format -e is your friend.format -e c3t0d0 will not read /etc/format.dat as shown below: # format -e c3t0d0 selecting c3t0d0 [disk formatted] FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels inquiry - show vendor, product and revision scsi - independent SCSI mode selects cache - enable, disable or query SCSI disk cache volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> "type" provides only two options: 0. Auto configure 1. other Option of "0" creates following VTOC: Part Tag Flag First Sector Size Last Sector 0 root wm 34 128.00MB 262177 1 swap wu 262178 128.00MB 524321 2 unassigned wu 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 usr wm 524322 8.18GB 17672848 7 unassigned wm 0 0 0 8 reserved wm 17672849 8.00MB 17689232 from above VTOC, is partition 8 the same as traditional partition 2 ? --- This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender immediately and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Deutsche Bank does not render legal or tax advice, and the information contained in this communication should not be regarded as such. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090105/ee6c2e14/attachment.html>
Cindy.Swearingen at Sun.COM
2009-Jan-05 20:25 UTC
[zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ?
Jianhua, Use the format-->label command, like the output below. Cindy # format -e c0t1d0 selecting c0t1d0 [disk formatted] FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision scsi - independent SCSI mode selects cache - enable, disable or query SCSI disk cache volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> label [0] SMI Label [1] EFI Label Specify Label type[0]: 0 Ready to label disk, continue? yes format> Jianhua Yang wrote:> cyril.plisko at gmail.com wrote on 01/05/2009 02:37:51 PM: > > > On Mon, Jan 5, 2009 at 9:27 PM, Jianhua Yang <jianhua.yang at db.com> wrote: > > > I''m newbie in ZFS, and have question: > > > > > > how to convert ZFS formated disk back to tradistional Sun disk ? > > > > format -e > > > > will let you choose between two types of label - EFI and SMI. > > > > ZFS uses EFI when you give the whole disk to it. SMI is a traditional > > label used historically on disks. I persoanlly see no reason to go > > back to SMI even if disk is not part of zpool (boot disk is notable > > exception). However, if you really need it format -e is your friend. > > format -e c3t0d0 will not read /etc/format.dat as shown below: > # *format -e c3t0d0* > selecting c3t0d0 > [disk formatted] > > > FORMAT MENU: > disk - select a disk > type - select (define) a disk type > partition - select (define) a partition table > current - describe the current disk > format - format and analyze the disk > repair - repair a defective sector > label - write label to the disk > analyze - surface analysis > defect - defect list management > backup - search for backup labels > verify - read and display labels > inquiry - show vendor, product and revision > scsi - independent SCSI mode selects > cache - enable, disable or query SCSI disk cache > volname - set 8-character volume name > !<cmd> - execute <cmd>, then return > quit > format> > "type" provides only two options: > 0. Auto configure > 1. other > Option of "0" creates following VTOC: > Part Tag Flag First Sector Size Last Sector > 0 root wm 34 128.00MB 262177 > 1 swap wu 262178 128.00MB 524321 > 2 unassigned wu 0 0 0 > 3 unassigned wm 0 0 0 > 4 unassigned wm 0 0 0 > 5 unassigned wm 0 0 0 > 6 usr wm 524322 8.18GB 17672848 > 7 unassigned wm 0 0 0 > 8 reserved wm 17672849 8.00MB 17689232 > from above VTOC, is partition 8 the same as traditional partition 2 ? > > --- > This communication may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this communication > in error) please notify the sender immediately and destroy this > communication. Any unauthorized copying, disclosure or distribution of the > material in this communication is strictly forbidden. > > Deutsche Bank does not render legal or tax advice, and the information > contained in this communication should not be regarded as such. > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Jianhua Yang
2009-Jan-05 21:14 UTC
[zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ?
that works perfect, and I got what I want on the disk. thanks a lot, Cindy !!! Thanks, James Yang Global Unix Support, IES, GTO Deutsche Bank US Phone: 201-593-1360 Email : jianhua.yang at db.com Pager : 1-800-946-4646 PIN# 6105618 CR: NYC_UNIX_ES_US_UNIX_SUPPORT http://dcsupport.ies.gto.intranet.db.com/ --- This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender immediately and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Deutsche Bank does not render legal or tax advice, and the information contained in this communication should not be regarded as such. Cindy.Swearingen at S un.COM To 01/05/09 03:25 PM Jianhua Yang/db/dbcom at DBAmericas cc zfs-discuss at opensolaris.org Subject Re: [zfs-discuss] how to convert ZFS formated disk back to traditional Sun disk ? Jianhua, Use the format-->label command, like the output below. Cindy # format -e c0t1d0 selecting c0t1d0 [disk formatted] FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision scsi - independent SCSI mode selects cache - enable, disable or query SCSI disk cache volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> label [0] SMI Label [1] EFI Label Specify Label type[0]: 0 Ready to label disk, continue? yes format> Jianhua Yang wrote:> cyril.plisko at gmail.com wrote on 01/05/2009 02:37:51 PM: > > > On Mon, Jan 5, 2009 at 9:27 PM, Jianhua Yang <jianhua.yang at db.com> wrote: > > > I''m newbie in ZFS, and have question: > > > > > > how to convert ZFS formated disk back to tradistional Sun disk ? > > > > format -e > > > > will let you choose between two types of label - EFI and SMI. > > > > ZFS uses EFI when you give the whole disk to it. SMI is a traditional > > label used historically on disks. I persoanlly see no reason to go > > back to SMI even if disk is not part of zpool (boot disk is notable > > exception). However, if you really need it format -e is your friend. > > format -e c3t0d0 will not read /etc/format.dat as shown below: > # *format -e c3t0d0* > selecting c3t0d0 > [disk formatted] > > > FORMAT MENU: > disk - select a disk > type - select (define) a disk type > partition - select (define) a partition table > current - describe the current disk > format - format and analyze the disk > repair - repair a defective sector > label - write label to the disk > analyze - surface analysis > defect - defect list management > backup - search for backup labels > verify - read and display labels > inquiry - show vendor, product and revision > scsi - independent SCSI mode selects > cache - enable, disable or query SCSI disk cache > volname - set 8-character volume name > !<cmd> - execute <cmd>, then return > quit > format> > "type" provides only two options: > 0. Auto configure > 1. other > Option of "0" creates following VTOC: > Part Tag Flag First Sector Size Last Sector > 0 root wm 34 128.00MB 262177 > 1 swap wu 262178 128.00MB 524321 > 2 unassigned wu 0 0 0 > 3 unassigned wm 0 0 0 > 4 unassigned wm 0 0 0 > 5 unassigned wm 0 0 0 > 6 usr wm 524322 8.18GB 17672848 > 7 unassigned wm 0 0 0 > 8 reserved wm 17672849 8.00MB 17689232 > from above VTOC, is partition 8 the same as traditional partition 2 ? > > --- > This communication may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this communication > in error) please notify the sender immediately and destroy this > communication. Any unauthorized copying, disclosure or distribution of the > material in this communication is strictly forbidden. > > Deutsche Bank does not render legal or tax advice, and the information > contained in this communication should not be regarded as such. > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090105/66bf85a4/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090105/66bf85a4/attachment.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: pic26869.gif Type: image/gif Size: 1255 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090105/66bf85a4/attachment-0001.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090105/66bf85a4/attachment-0002.gif>