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.y...@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.swearin...@s                                        
             un.COM                                                    
                                                                           To
             01/05/09 03:25 PM          Jianhua Yang/db/db...@dbamericas
                                                                           cc
                                        zfs-discuss@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.pli...@gmail.com wrote on 01/05/2009 02:37:51 PM:
>
>  > On Mon, Jan 5, 2009 at 9:27 PM, Jianhua Yang <jianhua.y...@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@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

<<inline: graycol.gif>>

<<inline: pic26869.gif>>

<<inline: ecblank.gif>>

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to