与HP VSE套件中的vPar比较起来,VM HOST无疑具有很多vPar所望尘莫及的优点,这里再引入一个案例加以说明在VM HOST的强大感召之下,怎么实现变LV为PV使用。通常情况下,我们都是先有了PV,再在PV上面划分LV,这次要逆其道而行之,且看实验。
环境:
HP rx8640机器一台
HPUX 11.23操作系统
MC ServiceGuard OPS
我在第三个硬分区即nPar2中建立了两个VM HOST:hpvm3/hpvm4,各使用磁盘柜上c7t0d0、c7t1d0为操作系统磁盘(安装hpux 11.23操作系统),使用c7t1d0作为共享磁盘,在这样的环境下配置双机供实验所需。
问题:
当我想要给双机配置一块锁盘的时候,突然发现已经没有了额外的共享磁盘可供使用。
思路:
在nPar2上创建一个20MB大小的LV,然后加入hpvm3变成一块Virtual LvDisk,再使用这块LvDisk来创建锁盘,以满足实验所需。
具体步骤:
1,在nPar2下创建20MB大小、以“lv_lock”命名的本地逻辑卷:
-L 200 -n lv_lock vg00
Warning: rounding up logical volume size to extent boundary at size "224" MB.
Logical volume "/dev/vg00/lv_lock" has been successfully created with
character device "/dev/vg00/rlv_lock".
Logical volume "/dev/vg00/lv_lock" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
2,手工停止hpvm4上双机:
-p 5
vMP MAIN MENU
CO: Console
CM: Command Menu
CL: Console Log
SL: Show Event Logs
VM: Virtual Machine Menu
HE: Main Help Menu
X: Exit Connection
[hpvm4] vMP> co
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
hpvm3 up running
hpvm4 up running
MULTI_NODE_PACKAGES
PACKAGE STATUS STATE AUTO_RUN SYSTEM
pkg1 up running enabled no
pkg2 up running enabled no
-f
Disabling all packages from starting on nodes to be halted.
Warning: Do not modify or enable packages until the halt operation is completed.
Halting package pkg1 on node hpvm3
Successfully halted package pkg1 on node hpvm3
Halting package pkg2 on node hpvm3
Successfully halted package pkg2 on node hpvm3
Halting package pkg1 on node hpvm4
Successfully halted package pkg1 on node hpvm4
Halting package pkg2 on node hpvm4
Successfully halted package pkg2 on node hpvm4
This operation may take some time.
Waiting for nodes to halt ... done
Successfully halted all nodes specified.
Halt operation complete.
阅读(2396) | 评论(0) | 转发(0) |