VXVM Cheat Sheet
VXVM Cheat Sheet
bash_profile PATH=$PATH:/etc/vx/bin:/opt/VRTS/bin export PATH MANPATH=/usr/share/man:/opt/VRTS/man export MANPATH To list all disks visible to VxVM #vxdisk -o alldgs list or #vxdisk list To scan for new disks in VxVM #vxdisk scandisks or #vxdctl enable
Sda
sdb
sdc
sdd
sde
Disk_0
Disk_1
Disk_2
Disk_3
Disk_4
To initialize the disk in VxVM (Briniging disk in VxVM control) #vxdisksetup -i disk_name
Eg #vxdisksetup i Disk_1 By default the format will be CDS To initialize the disk in Sliced layout #vxdisksetup -i disk_name format=cds Eg #vxdisksetup i Disk_2 format=sliced Creating Diskgroup #vxdg init dgname vmdiskname=diskname Eg #vxdg init newdg newdg01=Disk_1 Adding Disk into Diskgroup #vxdg g newdg adddisk vmdiskname=disk_name vmdiskname02=disk_name Eg #vxdg g newdg adddisk newdg02=Disk_2 newdg03=Disk_3 Creating Volume #vxassist g dgname make vol_name size layout=layout_type Eg #vxassist g newdg make vol1 1g By default layout will be concat. Creating a Stripe Volume #vxassist g newdg make vol1 2g layout=stripe Creating a Raid 5 Volume By default raid5 will use 4 disk 3 for volume and one for raid5 log. #vxassist g newdg make vol2 2g layout=raid5
Creating Vxfs file system in volume Block device name =/dev/vx/dsk/dgname/vol_name Raw device name= /dev/vx/rdsk/dgname/vol_name Eg /dev/vx/dsk/newdg/vol1 /dev/vx/rdsk/newdg/vol1 ---------------------- Block Device Name ---------------------- Raw Device Name
#mkfs t vxfs /dev/vx/rdsk/newdg/vol1 Mounting file system #mount t vxfs /dev/vx/dsk/newdg/vol1 /ora/u01