ADDING NEW DISK TO VG in a Cluster
existing cluster
1. Stop Application ./usr/local/bin/<shutdown script>
Stop Package cmhaltpkg –v _ .pkg
2. Remove VG from Cluster vgchange –c n /dev/ _
3. Activate VG vgchange –a y /dev/vgprd _
Note - Check on every system to OK these disks are not in use 1st
5. Prepare Disks pvcreate <-f > /dev/rdsk/c___t___d___
pvcreate <-f > /dev/rdsk/c___t___d___
pvcreate <-f > /dev/rdsk/c___t___d___
pvcreate <-f > /dev/rdsk/c___t___d___
pvcreate <-f > /dev/rdsk/c___t___d___
6. Add HD to VG vgextend /dev/vg_____ /dev/dsk/c___t___d___
Add Alt link vgextend /dev/vg____ /dev/dsk/c___t___d___
vgextend /dev/vg_____ /dev/dsk/c___t___d___
Add Alt link vgextend /dev/vg____ /dev/dsk/c___t___d___
vgextend /dev/vg_____ /dev/dsk/c___t___d___
Add Alt link vgextend /dev/vg____ /dev/dsk/c___t___d___
vgextend /dev/vg_____ /dev/dsk/c___t___d___
Add Alt link vgextend /dev/vg____ /dev/dsk/c___t___d__
vgextend /dev/vg____ /dev/dsk/c___t___d___
Add Alt link vgextend /dev/vg____ /dev/dsk/c___t___d___
7. Extend LV lvcreate lvextend –l _ _ _ _ /dev/vg____/lv____ /c___t___d___
lvcreate lvextend –l _ _ _ _ /dev/vg____/lv____ /c___t___d___
lvcreate lvextend –l _ _ _ _ /dev/vg____/lv____ /c___t___d___
lvcreate lvextend –l _ _ _ _ /dev/vg____/lv____ /c___t___d___
lvcreate lvextend –l _ _ _ _ /dev/vg____/lv____ /c___t___d___
8. Extend FS newfs extendfs –F vxfs /dev/vg____/rlv_____
newfs extendfs –F vxfs /dev/vg____/rlv_____
newfs extendfs –F vxfs /dev/vg____/rlv_____
newfs extendfs –F vxfs /dev/vg____/rlv_____
newfs extendfs –F vxfs /dev/vg____/rlv_____
9. Check your work: vgdisplay –v /dev/vg____ | more
lvdisplay –v /dev/vg____/lv_____ | more
10. Export vgexport –pvs –m /etc/lvmconf /vg .map /dev/vg
11. Copy to other node(s) rcp /etc/lvmconf/vg .map :/etc/lvmconf
12. On all the other nodes: Note minor #: /dev/vg_________/group 0x____0000
Export old vg info vgexport /dev/vg
Recreate old vggroup dir mkdir /dev/vg______
Create group file new mknod /dev/vg_______/group c 64 0x_____0000
. Import On Other Node ** vgimport –vs –m /etc/lvmconf/vg .map /dev/vg
13. Confirm the package configuration file </etc/cmcluster/’node’/’pkg’> is same for each pkg
all nodes.
14. De-Activate VG vgchange –a n /dev/vg______
15. Activate Cluster Control vgchange –c y /dev/vg______
16. Restart package cmrunpkg –v –n __________ ________.pkg
<host> < pkg>
17. Double check your work bdf
0 comments:
Post a Comment