HPUX 11.31 VM 4.1使用指南
一、增加磁带机: (2)
1. 查找Drive (2)
2. 查找机械手 (2)
3. 增加机械手 (2)
4. 增加 Drive 1 (3)
5. 增加 Drive2 (3)
二、增加硬盘 (3)
三、增加网卡 (5)
四、查看vm状态 (15)
五、进入vm console (15)
六、vm 资源查看 (16)
七、创建VM 网络 (16)
八、创建VM Guest (16)
一、增加磁带机:
1.查找Drive
hpvmmodify -P rac01 -a changer:avio_stor::attach_path:0/7/1/0.0x100000e00223ee3d.0x0 hpvmdevmgmt -m gdev:0/7/1/0.0x100000e00223ee3d.0x0:attr:SHARE=YES hpvmmodify -P rac02 -a changer:avio_stor::attach_path:0/7/1/0.0x100000e00223ee3d.0x0
4.增加 Drive 1
hpvmmodify -P rac01 -a tape:avio_stor::attach_path:0/7/1/0.0x500110a00059c2d6.0x0
hpvmdevmgmt -m gdev:0/7/1/0.0x500110a00059c2d6.0x0:attr:SHARE=YES
hpvmmodify -P rac02 -a tape:avio_stor::attach_path:0/7/1/0.0x500110a00059c2d6.0x0
5.增加 Drive2
hpvmmodify -P rac01 -a tape:avio_stor::attach_path:0/7/1/0.0x500110a00059c2d3.0x0
hpvmdevmgmt -m gdev:0/7/1/0.0x500110a00059c2d3.0x0:attr:SHARE=YES
hpvmmodify -P rac02 -a tape:avio_stor::attach_path:0/7/1/0.0x500110a00059c2d3.0x0
二、增加硬盘
#
[vmrver5][root]:/> ioscan -m lun -C disk
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 3 64000/0xfa00/0xf esdisk CLAIMED DEVICE online TEAC DVD-ROM DW- 64000/0x0/0x0.0x0.0x0
/dev/disk/disk3 /dev/rdisk/disk3
disk 11 64000/0xfa00/0x29 esdisk CLAIMED DEVICE online HP DG146BB976 0/4/1/0.0x5000c5000f5f0c69.0x0
/dev/disk/disk11 /dev/rdisk/disk11
disk 12 64000/0xfa00/0x2a esdisk CLAIMED DEVICE online HP DG146BB976
0/4/1/0.0x5000c5000f562025.0x0
/dev/disk/disk12 /dev/disk/disk12_p2 /dev/rdisk/disk12 /dev/rdisk/disk12_p2 /dev/disk/disk12_p1 /dev/disk/disk12_p3 /dev/rdisk/disk12_p1 /dev/rdisk/disk12_p3 disk 13 64000/0xfa00/0x2b esdisk CLAIMED DEVICE online HP DG146BB976 0/4/1/0.0x5000c5000f5edd01.0x0
/dev/disk/disk13 /dev/rdisk/disk13
disk 25 64000/0xfa00/0x3f esdisk CLAIMED DEVICE online HP DG0146FARVU 0/4/1/0.0x5000cca00a2dd00d.0x0
/dev/disk/disk25 /dev/disk/disk25_p2 /dev/rdisk/disk25 /dev/rdisk/disk25_p2 /dev/disk/disk25_p1 /dev/disk/disk25_p3 /dev/rdisk/disk25_p1 /dev/rdisk/disk25_p3 disk 43 64000/0xfa00/0x4c esdisk CLAIMED DEVICE online HP IR V olume
0/4/1/0.0xec97af77e50c547.0x0
/dev/disk/disk43 /dev/disk/disk43_p2 /dev/rdisk/disk43 /dev/rdisk/disk43_p2 /dev/disk/disk43_p1 /dev/disk/disk43_p3 /dev/rdisk/disk43_p1 /dev/rdisk/disk43_p3 disk 54 64000/0xfa00/0x59 esdisk CLAIMED DEVICE online HP HSV200
0/7/1/0.0x50001fe150095a0d.0x4001000000000000
0/7/1/0.0x50001fe150095a08.0x4001000000000000
/dev/disk/disk54 /dev/rdisk/disk54
[vmrver5][root]:/> hpvmmodify -P db01 -a disk:avio_stor::disk:/dev/rdisk/disk54 [vmrver5][root]:/> hpvmstatus -v -P db01 -d
Version B.04.20.05
[Virtual Machine Devices]
[Storage Interface Details]
dvd:scsi:0,1,0:file:/hp/os/11.31_1003_BOE_2.iso
disk:avio_stor:0,0,0:lv:/dev/vg00/rlvoracle1
disk:avio_stor:0,0,1:lv:/dev/vg00/rlvos1
disk:avio_stor:0,0,2:lv:/dev/vg00/rlvoracle
tape:avio_stor:0,0,3:attach_path:0/7/1/0.0x500110a00059c2d6.0x0
changer:avio_stor:0,0,4:attach_path:0/7/1/0.0x100000e00223eec8.0x0
changer:avio_stor:0,0,5:attach_path:0/7/1/0.0x100000e00222d1fc.0x0
tape:avio_stor:0,0,6:attach_path:0/7/1/0.0x100000e00222d1fc.0x1000000000000
tape:avio_stor:0,0,7:attach_path:0/7/1/0.0x100000e00222d1fc.0x2000000000000
tape:avio_stor:0,0,8:attach_path:0/7/1/0.0x100000e00223eec8.0x1000000000000
disk:avio_stor:0,0,9:disk:/dev/rdisk/disk54
[Network Interface Details]
network:avio_lan:0,4,0xEA287C0FB5F6:vswitch:cnet0:portid:1
[Misc Interface Details]
rial:com1::tty:console
[vmrver5][root]:/>
[vmrver5][root]:/> scsimgr lun_map -D /dev/rdisk/disk54
LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk54
Total number of LUN paths = 2
World Wide Identifier(WWID) = 0x600508b400105f740000d00000f30000
LUN path : lunpath71
Class = lunpath
Instance = 71
Hardware path = 0/7/1/0.0x50001fe150095a0d.0x4001000000000000 SCSI transport protocol = fibre_channel
State = ACTIVE
Last Open or Clo state = ACTIVE
LUN path : lunpath72
Class = lunpath
Instance = 72
Hardware path = 0/7/1/0.0x50001fe150095a08.0x4001000000000000
SCSI transport protocol = fibre_channel
State = STANDBY
Last Open or Clo state = STANDBY
[vmrver5][root]:/>
VMGUEST:
# scsimgr lun_map -D /dev/rdisk/disk12
LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk12
Total number of LUN paths = 1
World Wide Identifier(WWID) = 0x600508b400105f740000d00000f30000
LUN path : lunpath10
Class = lunpath
Instance = 10
Hardware path = 0/0/0/0.0x9.0x0
SCSI transport protocol = Virtual Storage HBA
State = UNOPEN
Last Open or Clo state = ACTIVE
#
1.增加硬盘
hpvmmodify -P guest1 -a disk:avio_stor::lv:/dev/vg00/rlvoracle
hpvmmodify -P guest1 -a disk:avio_stor::disk:/dev/rdisk/disk5
2.增加共享盘
hpvmmodify -P guest1 -a disk:avio_stor::lv:/dev/vg00/rlvoracle
hpvmdevmgmt -m gdev:/dev/vg00/rlvoracle:attr:SHARE=YES
hpvmmodify -P guest2 -a disk:avio_stor::lv:/dev/vg00/rlvoracle
hpvmmodify -P guest1 -a disk:avio_stor::disk:/dev/rdisk/disk5
hpvmdevmgmt -m gdev: /dev/rdisk/disk5:attr:SHARE=YES
hpvmmodify -P guest2 -a disk:avio_stor::disk: /dev/rdisk/disk5
三、增加网卡
1.增加内部网卡、外部网卡
增加内部网卡
hpvmmodify -P guest2 -a network:lan::vswitch:hbeat
增加外部网卡
hpvmmodify -P guest2 -a network:avio_lan::vswitch:cnet0
2.增加DVD
[vmrver5][root]:/>chmod 755 –R /hp/os
[vmrver5][root]:/> hpvmmodify -P rac01 -a dvd:scsi:file:/hp/os/11.31_1003_BOE_1.iso [vmrver5][root]:/hp/os> hpvmstatus -v -P rac01 -d
Version B.04.20.05
[Virtual Machine Devices]
[Storage Interface Details]
dvd:scsi:0,1,0:file:/hp/os/11.31_1003_BOE_1.iso
disk:avio_stor:0,0,0:disk:/dev/rdisk/disk43
disk:avio_stor:0,0,2:lv:/dev/vg00/rlvoracle
tape:avio_stor:0,0,3:attach_path:0/7/1/0.0x500110a00059c2d6.0x0
changer:avio_stor:0,0,4:attach_path:0/7/1/0.0x100000e00223eec8.0x0
changer:avio_stor:0,0,5:attach_path:0/7/1/0.0x100000e00222d1fc.0x0
tape:avio_stor:0,0,6:attach_path:0/7/1/0.0x100000e00222d1fc.0x1000000000000 tape:avio_stor:0,0,7:attach_path:0/7/1/0.0x100000e00222d1fc.0x2000000000000 tape:avio_stor:0,0,8:attach_path:0/7/1/0.0x100000e00223eec8.0x1000000000000
[Network Interface Details]
[Misc Interface Details]
rial:com1::tty:console
[vmrver5][root]:/hp/os>
[vmrver5][root]:/hp/os> hpvmconsole -P rac01
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
[rac01] vMP> cm