VxVM Storage Management [HP-UX and Solaris 10

]

1. Create Physical Volume (PV) a. /etc/vx/bin/vxdisksetup ±i lun_name b. /etc/vx/bin/vxdisksetup ±i c2t1d0 c. vxdisk list Note: If lun_name(c2t1d0) already assign to another LVM and we want use this lun_name to VxVM. In this case we use below procedure: a. pvcreate ±f /dev/rdsk/c2t1d0 b. pvremove /dev/rdsk/c2t1d0 c. /etc/vx/bin/vxdisksetup ±i c2t1d0

2. Create Volume Group (VG) a. vxdg init vg_name disk_name=lun_name b. vxdg init vgtest disk05=c2t1d0 c. vxdg list 3. Remove Volumle Group (VG) a. vxvol ±g vg_name stop lv_name b. vxvol ±g vgtest stop myvol c. vxdg destroy vg_name d. vxdg destroy vgtest e. vxdg list 4. Extend VG a. vxdg ±g vg_name addisk disk_name=lun_name b. vxdg ±g vgtest addisk disk06=c3t1d0 c. vxdisk list d. >vxdiskadd lun_name (then follow adviser instruction) e. >vxdiskadm >>select 1>>list>>lun_name (then follow the adviser instruction) 5. Reduce Volume Group (VG) a. vxdg ±g vg_name -k rmdisk disk_name b. vxdg ±g vgtest ±k rmdisk disk06 c. vxdisk list d. >vxdiskadm >>select 3>>list>>disk_name (then follow the adviser instruction) 6. Create Logical Volume (LV) a. vxassist ±g vg_name make lv_name lv_size in GB b. vxassist ±g vgtest make myvol 1G c. vxinfo ±g vgtest myvol d. vxprint -v e. >vxassist -g dg_name -p maxsize layout=nostripe alloc=disk_name1,disk_name2 f. >vxassist -g dg_name -b make lv_name lv_size(s) layout=nostripe alloc=disk_name,disk_name

unmount the filesystem which is related with vgtest d. vxedit ±g vg_name ±r rm lv_name b. mkfs ±F vxfs /dev/vx/rdsk/vg_name/lv_name b. vxassist ±g vgtest growto myvol 2G c.7. vxvol ±g vgtest stop myvol f. /etc/vx/bin/vxdiskunsetup ±C lun_name . vxvol ±g vg_name stop lv_naem e. vxdg deport vg_name b. /etc/vx/bin/vxresize ±g vgtest myvol 2G d. vxdg import vg_name b.disk_nam 8. vxprint -v 5. vxedit ±g vgtest ±r rm myvol c. Remove Logical Volume a. bdf 8. Format Logical Volume a. /etc/vx/bin/vxresize ±g vgtest myvol 1G 4. vxdg import vgtest c. vxvol ±g vgtest start myvol 7. vxdg deport vgtest c. vxdg list d. vxassist ±g vgtest growby myvol 1G c. Import Volume Group a. >/etc/vx/bin/vxresize -g dg_name lv_name lv_size(s) alloc=disk_name. vxassist ±g vg_name growto lv_name lv_new_size b. mkdir /testvg d.. Volume Grouth Procedure >vxassist -g dg_name maxgrow lv_name disk_name disk_name disk_name >vxassist -g dg_name growto lv_name 10639360 disk_name disk_name disk_name >vxtask list >/usr/lib/fs/vxfs/fsadm -L mount_point_name >/usr/lib/vxfs/fsadm -o logsize=65536 /test > /usr/lib/fs/ufs/mkfs -F ufs -M /export /dev/vx/rdsk/dg_name/lv_name 10639360 (for ufs) > /usr/lib/fs/vxfs/fsadm -b 10639360 -r /dev/vx/rdsk/dg_name/lv_name /mnt (for vxfs) >vxprint -v >vxinfo -g dg_name lv_name 3. >vxassist -g dg_name -p maxgrow lv_name alloc=disk_name. Extend Logical Volume a. mkfs ±F vxfs /dev/vx/rdsk/vgtest/myvol c. mount -F vxfs /dev/vx/dsk/vgtest/myvol /testvg e. vxassist ±g vg_name growby lv_name lv_new_size b. Export Volume Group a. vxdg destroy vgtest [Destroy Volume Group] 6. Remove Physical Volume a.disk_name e. Reduce Logical Volume (LV) a.

/etc/vx/bin/vxrootmir -v -b c0t0d0 1. Check the CFS Master node 2. /etc/vx/bin/vxdestroy_lvmroot -v c0t0d0 b. Free space check in DG a. Convert lvm root disk to vxvm root disk a. /etc/vx/bin/vxdestroy_lvmroot -v c0t1d0 b. vxplex ±g dg_name dis plex_name b. /etc//vx/bin/vxdisksetup ±i c2t1d0 c. vxdg ±g rootdg free 1. vxedit -g rootdg -r rm usrvol-02 e. vxassist -g rootdg mirror homevol e. vxplex -g rootdg dis usrvol-02 c. vxdg ±g rootdg addisk disk06=c3t1d0 d. vxdg ±g rootdg addisk disk06=c3t1d0 d. Convert vxvm root disk to lvm root disk a. vxdctl -c mode Note: Varitas Enterprise Administrator (VEA) is a GUI based tool to administration VxVM.b. ioscan ±fnC disk b. /etc/vx/bin/vxrootmir -v -b c2t1d0 e. Mirron in root disk (Individual logical volume) a. . Mirror Break in root disk a. vxedit ±g dg_name ±r rm plex_name d. ioscan ±fnC disk b. Mirror in root disk(include all logical volume) a. /etc//vx/bin/vxdisksetup ±i c2t1d0 c. /etc/vx/bin/vxres_lvmroot -v -b c0t1d0 2. vxprint ±ht rootdg 16. vxprint ±ht rootdg 17. /etc/vx/bin/vxdiskunsetup ±C c2t1d0 c. vxdisk list 8. vxprint -ht rootdg 15.

Sign up to vote on this title
UsefulNot useful