Penoi's Veritas Volume Manager Notes

This is my personal notes on Veritas Volume Manager. This page is a continuing notes of frequent commands that i use in VxVM

Initialization

Disk initialization

/usr/lib/vxvm/bin/vxdisksetup -iv [device_tag][attributes]

Example:
#/usr/lib/vxvm/vxdisksetup -iv c2t0d0

Creation
Create initial disk group
vxdg init [diskgroup] [disk_name=device_tag]

Example:
#vxdg init newdg disk1=c2t0d0

Add more disk to the Disk Group
vxdg -g [disk_group] adddisk [disk_name=device_tag]

Example
#vxdg -g newdg adddisk disk2=c2t1d0

Volume Creation

Concatenated Volume

vxassist -g [disk group] make [volume_name] [size]


Example

#vxassist -g newdg make newvol 500m


Concatenated Volume by specifying the disk

# vxassist -g newdg make newvol disk02 disk03


Striped Volume

vxassist -g [disk group] make [volume_name] [length] layout=stripe ncol=n stripeunit=size


Example

#vxassist -g newdg make newvol 500m layout=stripe


Mirrored Volume

#vxassist -g newdg make newvol 500m layout=mirror


Viewing VxVM

View Disk Group disk info
#vxdisk -o alldgs list

View Sub disk
#vxprint -ls

View Plexes
#vxprint -lp

View Volumes
#vxprint -lv


Removing
--loading--

By penoi on Monday, August 11, 2008 | | A comment?
0 responses to “Penoi's Veritas Volume Manager Notes”