3,退回到nPar2界面:
#
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> x
#
#
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
hpvm1 1 HPUX On (OS) 2 2 4 4 GB 0
hpvm2 3 HPUX On (OS) 2 2 4 4 GB 0
hpvm4 5 HPUX On (OS) 2 2 4 4 GB 0
hpvm3 6 HPUX On (OS) 2 3 4 4 GB 0
4,手工停止hpvm3、hpvm4操作系统:
-p 5
hpvmstop: Stop the virtual machine 'hpvm4'? [n/y]: y
-p 6
hpvmstop: Stop the virtual machine 'hpvm3'? [n/y]: y
5,增加lv_lock到hpvm3中并查看状态:
-p 5 -a disk:scsi::lv:/dev/vg00/rlv_lock
-vp 5
Version A.03.50.00
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
hpvm4 5 HPUX Off
[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:
[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
2 100.0% 100.0%
[Memory Details]
Total Reserved
Memory Memory
======= ========
4 GB 64 MB
[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 0 0 0 0 0 disk /dev/rdsk/c7t1d0
disk scsi 0 0 0 1 0 disk /dev/rdsk/c7t2d0
disk scsi 0 0 0 2 0 lv /dev/vg00/rlv_lock
[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch lan vlan3 2 0 1 0 b2-97-2d-77-dd-7e
vswitch lan vlan4 2 0 2 0 4a-ac-b8-db-61-8a
vswitch lan vlan1 4 0 4 0 b2-e1-43-69-09-c7
vswitch lan vlan2 4 0 5 0 26-c8-17-74-b0-67
[Misc Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
serial com1 tty console
6,设置lv_lock为共享方式并添加到hpvm4上去:
7,启动hpvm3/hpvm4:
-p 5
(C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.
Maximum entitlement percent is being corrected from 100.0 to 100
Opening minor device and creating guest machine container
Creation of VM, minor device 3
Allocating guest memory: 4096MB
allocating low RAM (0-80000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ccdfa682-7e45-11dd-8102-001f290c396d/vmm_config.current): Allocated 2147483648 bytes at 0x6000000100000000
allocating high RAM (100000000-180000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ccdfa682-7e45-11dd-8102-001f290c396d/vmm_config.current): Allocated 2147483648 bytes at 0x6000000200000000
locking memory: 100000000-180000000
allocating datalogger memory: FF800000-FF840000 (256KB for 155KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ccdfa682-7e45-11dd-8102-001f290c396d/vmm_config.current): Allocated 262144 bytes at 0x6000000300000000
locking datalogger memory
allocating firmware RAM (fff00000-fff20000, 128KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/ccdfa682-7e45-11dd-8102-001f290c396d/vmm_config.current): Allocated 131072 bytes at 0x6000000300080000
locked SAL RAM: 00000000fff00000 (8KB)
locked ESI RAM: 00000000fff02000 (8KB)
locked PAL RAM: 00000000fff04000 (8KB)
locked Min Save State: 00000000fff06000 (8KB)
locked datalogger: 00000000ff800000 (256KB)
Loading boot image
Image initial IP=102000 GP=67E000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
Daemonizing....
hpvmstart: Successful start initiation of guest 'hpvm4'
-p 6
(C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.
Maximum entitlement percent is being corrected from 100.0 to 100
Opening minor device and creating guest machine container
Creation of VM, minor device 4
Allocating guest memory: 4096MB
allocating low RAM (0-80000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/e52b1de6-7e65-11dd-a901-001f290c396d/vmm_config.next): Allocated 2147483648 bytes at 0x6000000100000000
allocating high RAM (100000000-180000000, 2048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/e52b1de6-7e65-11dd-a901-001f290c396d/vmm_config.next): Allocated 2147483648 bytes at 0x6000000200000000
locking memory: 100000000-180000000
allocating datalogger memory: FF800000-FF840000 (256KB for 155KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/e52b1de6-7e65-11dd-a901-001f290c396d/vmm_config.next): Allocated 262144 bytes at 0x6000000300000000
locking datalogger memory
allocating firmware RAM (fff00000-fff20000, 128KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/e52b1de6-7e65-11dd-a901-001f290c396d/vmm_config.next): Allocated 131072 bytes at 0x6000000300080000
locked SAL RAM: 00000000fff00000 (8KB)
locked ESI RAM: 00000000fff02000 (8KB)
locked PAL RAM: 00000000fff04000 (8KB)
locked Min Save State: 00000000fff06000 (8KB)
locked datalogger: 00000000ff800000 (256KB)
Loading boot image
Image initial IP=102000 GP=67E000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
Daemonizing....
hpvmstart: Successful start initiation of guest 'hpvm3'
8,待hpvm3/hpvm4系统起来后,通过ioscan查看lv_lock是否添加成功:
-fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 2 0/0/0/0.2.0 sdisk CLAIMED DEVICE HP Virtual LvDisk
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
-fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/0/0/0.2.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 2 0/0/0/0.3.0 sdisk CLAIMED DEVICE HP Virtual LvDisk
/dev/dsk/c0t3d0 /dev/rdsk/c0t3d0
9,在hpvm3/hpvm4中都显示出“Virtual LvDisk”,说明添加成功,可以作为一般PV使用。
阅读(2761) | 评论(2) | 转发(0) |