- 论坛徽章:
- 0
|
加的4块再建个R1+0的LUN
将新建的LUN再加到原来的VG里,然后
以下是参考,
For example: you want to extend the lvol1 of vg01.
1. Halt the cluster
# cmhaltcl -f -v
2. Unshared and activate the shared volume group
# vgchange -c n /dev/vg01
# vgchange -a y /dev/vg01
3. Extend the logical volume
# lvextend -L <logical volume size in megabyte> /dev/vg01/lvol1
4. Unmount file system
# umount /dev/vg01/lvol1
5. Extend the file system
# extendfs -F [vxfs | hfs] -v /dev/vg01/rlvol1
6. Mount file system
# mount /dev/vg01/lvol1 /mount_point
7. Export the shared volume group on Node1, and copy the mapfile to Node2.
# vgexport –p –s -v –m /tmp/vg01.map /dev/vg01
If the HP-UX version is below 10.20, then no –s option.
# rcp /tmp/vg01.map Node2:/tmp
8. Export the shared volume group on Node2. That is to remove the shared volume group on Node2
# vgexport –v /dev/vg01
9. Make volume group device file
# rm –r /dev/vg01
# mkdir /dev/vg01
# cd /dev/vg01
# mknod group c 64 0x010000
10. Import the shared volume group on Node2
# vgimport –v –s –m /tmp/vg01.mapfile /dev/vg01
11. Start cluster
# cmruncl –v
NOTE: This may fail to start the package because the volume group is not marked as cluster volume group. We only start cmcld and to do vgchange –c y
12. Mark the volume group shared.
# vgchange –c y /dev/vg01 |
|