1. 创建卷组:
#c4t0d1盘来自磁盘阵列,vgidp用于存放infromix库
[/@kshzdb01]#pvcreate -f dev/rdsk/c4t0d1
[/@kshzdb01]#mkdir /dev/vgidp
[/@kshzdb01]#mknod /dev/vgidp/group c 64 0x010000
[/@kshzdb01]#vgcreate /dev/vgidp /dev/dsk/c4t0d1
[/@kshzdb01]#lvcreate -L 10000 /dev/vgidp
[/@kshzdb01]#newfs -F vxfs /dev/vgidp/data
[/@kshzdb01]#mkdir /data
[/@kshzdb01]#mount /dev/vgidp/data /data
[/@kshzdb01]#vgdisplay -v /dev/vgidp #验证卷组是否已正确创建
2. 将卷组分发到二号机:
[/@kshzdb01]#umount /data
[/@kshzdb01]#vgchange -a n /dev/vgidp
[/@kshzdb01]#vgexport -p -s -m /tmp/vgidp.map /dev/vgidp
[/@kshzdb01]#rcp /tmp/vgidp.map kshzdb02:/tmp/.
[/@kshzdb02]#mkdir /dev/vgidp
[/@kshzdb02]#mknod /dev/vgidp/group c 64 0x060000
[/@kshzdb02]#vgimport -s -m /tmp/vgidp.map /dev/vgidp
[/@kshzdb02]#vgchange -a y /dev/vgidp
[/@kshzdb02]#mkdir /data
[/@kshzdb02]#mount /dev/vgidp/data /data
[/@kshzdb02]#vgdisplay -v /dev/vgidp] #验证配置
[/@kshzdb02]#umount /data
[/@kshzdb02]#vgchange -a n /dev/vgidp
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16381228/viewspace-721648/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16381228/viewspace-721648/