VxVM 6.1 – How to manage Veritas Diskgroups with vxdg command?

 

To import the disk group, mydg:

# vxdg import mydg
To display the free space in the disk group, mydg:
# vxdg -g mydg free
To deport the disk group, mydg:
# vxdg deport mydg
To import the disk group, mydg, and rename it as newdg:
# vxdg -n newdg import mydg
To import a disk group with clone disks and reminor it.
# vxdg -o reminor -n dg2 -o useclonedev=on -o updateid import dg1
To add a disk disk1 with the udid_mismatch flag to a standard disk group mydg:
# vxdg -c -g mydg adddisk disk1
To move volumes, vol1 and vol2, from the disk group, olddg, to newdg:
# vxdg move olddg newdg vol1 vol2
To split volumes, vol3 and vol4, from the disk group, olddg, to form a new disk group, mynewdg:
# vxdg split olddg mynewdg vol3 vol4
To merge the contents of the disk groups, olddg with the disk group, testdg:
# vxdg join olddg testdg
To import a snapshot LUN as a new disk group, snapdg. The original LUN is in disk group mydg:
# vxdg -n snapdg -o useclonedev=on -o updateid import mydg
To display information about the configuration copies for a disk group, mydg, with the serial split brain condition:
# vxdg -g mydg listssbinfo
This command displays output such as the following:
# VxVM vxdg listssbinfo NOTICE V-0-0-0 There are 2 pools
All the disks in the first pool have the same config copies
All the disks in the second pool may not have the same config copies
Number of disks in the first pool: 1
Number of disks in the second pool: 1
To import the diskgroup with config copy from the first pool  issue the command
# /usr/sbin/vxdg (-s) -o selectcp=1215378871.300.vm2850lx13 import mydg
To import the diskgroup with config copy from the second pool issue the command
# /usr/sbin/vxdg (-s) -o selectcp=1215378869.294.vm2850lx13 import mydg
To display verbose information about the configuration copies for the disks in each pool:
# vxdg -v -g mydg listssbinfo
This command displays output such as the following:
VxVM. vxdg listssbinfo NOTICE V-0-0-0 There are 2 pools
All the disks in the first pool have the same config copies
All the disks in the second pool may not have the same config copies
To see the configuration copy from a disk issue the command
# /etc/vx/diag.d/vxprivutil dumpconfig <private path>
To import the diskgroup with config copy from a disk issue the command
# /usr/sbin/vxdg (-s) -o selectcp=<diskid> import mydg
                             Pool 0
DEVICE    DISK      DISK ID                     DISK PRIVATE PATH
mydg1     sdp       1215378871.300.vm2850lx13   /dev/vx/rdmp/sdp5
 
 
                             Pool 1
DEVICE    DISK      DISK ID                     DISK PRIVATE PATH
mydg2     sdo       1215378869.294.vm2850lx13   /dev/vx/rdmp/sdo5
Note :
  • /etc/vx/volboot File containing VxVM configuration information.
  • /etc/default/vxdg Default attribute definitions file for the vxdg command.
Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

2 Responses

  1. virender says:

    HI Ram,

    I article on Converting a Native Zone to Kernel Zone on Sparc architecture with http based IPS Repos. Thanks

  1. September 18, 2015

    […] about current Veritas DMP devices? Read – How to Configure a Veritas Disk using vxdisksetup? Read – How to manage Veritas Diskgroups with vxdg command? Read – How to display Default VxVM […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us