Dynamic LUN Expansion (DLE - vxdisk resize) can convert Sun VTOC (SMI) label to EFI (GPT) label if the LUN is expanded from less than 1TB to greater than 1TB

Article:HOWTO75116  |  Created: 2012-04-24  |  Updated: 2012-07-21  |  Article URL http://www.symantec.com/docs/HOWTO75116
Article Type
How To

Product(s)

Environment


When a LUN is less than 1TB, customer can choose use either Sun VTOC (SMI) label or EFI label.    When a LUN is bigger than 1TB, VxVM only supports EFI label.  The following test is performed on a Linux machine running VxVM 6.0.

# rpm -aq |grep vxvm
VRTSvxvm-6.0.000.000-RHEL6.x86_64

Initially disk has a Sun VTOC label and less than 1TB
=============================================

# vxdisk list virtio0_1
Device:    virtio0_11
devicetag: virtio0_11
type:      auto
hostid:    rhel6vm1
disk:      name= id=1325644417.34.rhel6vm1
group:     name=adg id=1325647194.16.rhel6vm1
info:      format=cdsdisk,privoffset=256,pubslice=3,privslice=3           <<< cdsdisk
flags:     online ready private autoconfig autoimport
pubpaths:  block=/dev/vx/dmp/virtio0_11s3 char=/dev/vx/rdmp/virtio0_11s3
guid:      {819e7fa2-367c-11e1-936e-4b548d0c8aeb}
udid:      QEMU%5FVIRTIO%5FVirtIO%5F%2Fdev%2Fvdi
site:      -
version:   3.1
iosize:    min=512 (bytes) max=1024 (blocks)
public:    slice=3 offset=65792 len=4120320 disk_offset=0               <<< less than 1TB
private:   slice=3 offset=256 len=65536 disk_offset=0
update:    time=1325647195 seqno=0.7
ssb:       actual_seqno=0.0
headers:   0 240
configs:   count=1 len=51360
logs:      count=1 len=4096
Defined regions:
config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
config   priv 000256-051423[051168]: copy=01 offset=000192 enabled
log      priv 051424-055519[004096]: copy=01 offset=000000 enabled
lockrgn  priv 055520-055663[000144]: part=00 offset=000000
Multipathing information:
numpaths:   1
vdl             state=enabled

# fdisk -lu /dev/vx/rdmp/virtio0_11
Disk /dev/vx/rdmp/virtio0_11 (Sun disk label): 128 heads, 32 sectors, 1022 cylinders      <<< Sun VTOC label
Units = sectors of 1 * 512 bytes
                  Device Flag    Start       End    Blocks   Id  System
/dev/vx/rdmp/virtio0_11p3  u          0   4186112   2093056    5  Whole disk
/dev/vx/rdmp/virtio0_11p8  u          0   4186112   2093056    f  Unknown

 

The disk is grown to 1.2TB
=====================

# vxscsi -g /dev/vx/rdmp/virtio0_11
geometry of /dev/vx/rdmp/virtio0_11: nhead=255 nsect=189 ncyl=52216 sectsz=512 rpm=3600 cap=2516582400


Run vxdisk resize
=================

# vxdisk -g adg resize virtio0_11


The VTOC label is converted to GPT (EFI) label
=====================================

# vxdisk list virtio0_11
Device:    virtio0_11
devicetag: virtio0_11
type:      auto
hostid:    rhel6vm1
disk:      name=adg01 id=1325644417.34.rhel6vm1
group:     name=adg id=1325647194.16.rhel6vm1
info:      format=cdsdisk,privoffset=208,pubslice=3,privslice=3         <<< cdsdisk
flags:     online ready private autoconfig autoimport imported
pubpaths:  block=/dev/vx/dmp/virtio0_11s3 char=/dev/vx/rdmp/virtio0_11s3
guid:      {819e7fa2-367c-11e1-936e-4b548d0c8aeb}
udid:      QEMU%5FVIRTIO%5FVirtIO%5F%2Fdev%2Fvdl
site:      -
version:   4.1
iosize:    min=512 (bytes) max=1024 (blocks)
public:    slice=3 offset=65744 len=2516516560 disk_offset=48         <<< 1.2TB
private:   slice=3 offset=208 len=65536 disk_offset=48
update:    time=1335313186 seqno=0.19
ssb:       actual_seqno=0.0
headers:   0 240
configs:   count=1 len=51360
logs:      count=1 len=4096
Defined regions:
config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
config   priv 000256-051423[051168]: copy=01 offset=000192 enabled
log      priv 051424-055519[004096]: copy=01 offset=000000 enabled
lockrgn  priv 055520-055663[000144]: part=00 offset=000000
Multipathing information:
numpaths:   1
vdl             state=enabled


# fdisk -lu /dev/vx/rdmp/virtio0_11
WARNING: GPT (GUID Partition Table) detected on '/dev/vx/rdmp/virtio0_11'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/vx/rdmp/virtio0_11: 1288.5 GB, 1288490188800 bytes
255 heads, 63 sectors/track, 156650 cylinders, total 2516582400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
                   Device Boot      Start         End      Blocks   Id  System
/dev/vx/rdmp/virtio0_11p1               1  2516582399  1258291199+  ee  GPT


# parted /dev/vx/rdmp/virtio0_11 print
Disk /dev/vx/dmp/virtio0_11: 1288GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name          Flags
3      24.6kB  1288GB  1288GB               symc_cdsdisk

 




Article URL http://www.symantec.com/docs/HOWTO75116


Terms of use for this information are found in Legal Notices