HP-UX上将磁带机分配给虚拟机使用

物理机:zjop01;虚拟机:zjapp01
zjop01#[/] ioscan -funC tape
Class     I  H/W Path     Driver   S/W State   H/W Type     Description
========================================================================
tape      0  0/3/1/0.1.5.255.0.0.0  stape    CLAIMED     DEVICE       HP      Ultrium 4-SCSI
/dev/rmt/0m             /dev/rmt/0mn            /dev/rmt/c10t0d0BEST    /dev/rmt/c10t0d0BESTn
/dev/rmt/0mb            /dev/rmt/0mnb           /dev/rmt/c10t0d0BESTb   /dev/rmt/c10t0d0BESTnb
tape      1  0/7/1/0.1.5.255.0.0.0  stape    CLAIMED     DEVICE       HP      Ultrium 4-SCSI
/dev/rmt/1m             /dev/rmt/1mn            /dev/rmt/c11t0d0BEST    /dev/rmt/c11t0d0BESTn
/dev/rmt/1mb            /dev/rmt/1mnb           /dev/rmt/c11t0d0BESTb   /dev/rmt/c11t0d0BESTnb

zjop01#[/] hpvmstatus
[Virtual Machines]
Virtual Machine Name VM #  OS Type State     #VCPUs #Devs #Nets Memory  Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
guest1                   2 HPUX    On (OS)        4     1     1   12 GB        0

hpvmmodify -P guest1 -a tape:scsi::attach:/dev/rscsi/c11t0d0

zjop01#[/] hpvmstatus -P guest1 -V
[Virtual Machine Details]
Virtual Machine Name    : guest1
Virtual Machine UUID    : 6a93b750-cf64-11dd-9105-001a4b0945b6
Virtual Machine ID      : 2
Virtual Machine Label   :
VM's Model Name         : server Integrity Virtual Machine
VM's Serial Number      : VM00852001
VM's Config Version     : 3.50.0
VM's Config Label       : HPVM A.03.50 clearcase opt Mon Oct 08 2007 13h36m03s PDT
Operating System        : HPUX
OS Version Number       :
State                   : On (OS)
Start type              : Manual
Console type            : vt100-plus
Guest's hostname        :
Guest's IP address      : 88.0.33.6
EFI location            : /opt/hpvm/guest-images/common/efi
Pattern File location   : /opt/hpvm/guest-images/common/patterns.vmmpat
Guest revision          : 1
Running on serverid     : 0
Running on pid          : 3747
Application controllers : NONE
Distributed             : 0

[Authorized Administrators]
Oper Groups: 
Admin Groups:
Oper Users:  
Admin Users: 

[Virtual CPU Details]
Number Virtual CPUs     : 4
Minimum Virtual CPUs    : 1
Maximum Virtual CPUs    : 4
Percent Entitlement     : 10.0%
Maximum Entitlement     : 100.0%

[Memory Details]
Total memory            : 12 GB
Minimum memory limit    : 512 MB
Maximum memory limit    : 64 GB
Reserved memory         : 64 MB
Minimum reserved limit  : 32 MB
Maximum reserved limit  : 64 GB
VHPT Size               : 1 MB

[Storage Interface Details]
Guest Device type       : tape
Guest Adaptor type      : scsi
Ioscan format           : 0/0/1/0.0.0
Bus                     : 0
Device                  : 1
Function                : 0
Target                  : 0
Lun                     : 0
Physical Storage type   : attach
Physical Device         : /dev/rscsi/c11t0d0

Guest Device type       : disk
Guest Adaptor type      : scsi
Ioscan format           : 0/0/1/0.1.0
Bus                     : 0
Device                  : 1
Function                : 0
Target                  : 1
Lun                     : 0
Physical Storage type   : lv
Physical Device         : /dev/vg01/rlv_bootdisk


[Network Interface Details]
Physical Storage type   : vswitch
Guest Adaptor type      : lan
Backing                 : vmlan1
Vswitch Port            : 1
Ioscan format           : 0/0/0/0
Bus                     : 0
Device                  : 0
Function                : 0
Mac Address             : 52-80-65-6e-69-57


[Misc Interface Details]
Guest Device type       : serial
Guest Adaptor type      : com1
Physical Storage type   : tty
Physical Device         : console

在虚拟机上用SAM开启kernel configuration中的stape参数,虚拟机上就可以看到磁带库。
虚拟机上使用ioscan -fnCtape 命令查看磁带设备。

使用以下命令删除虚拟机上的磁带库:
zjop01#[/] hpvmmodify -P guest1 -d tape:scsi::attach:/dev/rscsi/c11t0d0
zjop01#[/] hpvmstatus -P guest1 -V
[Virtual Machine Details]
Virtual Machine Name    : guest1
Virtual Machine UUID    : 6a93b750-cf64-11dd-9105-001a4b0945b6
Virtual Machine ID      : 2
Virtual Machine Label   :
VM's Model Name         : server Integrity Virtual Machine
VM's Serial Number      : VM00852001
VM's Config Version     : 3.50.0
VM's Config Label       : HPVM A.03.50 clearcase opt Mon Oct 08 2007 13h36m03s PDT
Operating System        : HPUX
OS Version Number       :
State                   : On (OS)
Start type              : Manual
Console type            : vt100-plus
Guest's hostname        :
Guest's IP address      : 88.0.33.6
EFI location            : /opt/hpvm/guest-images/common/efi
Pattern File location   : /opt/hpvm/guest-images/common/patterns.vmmpat
Guest revision          : 1
Running on serverid     : 0
Running on pid          : 3747
Application controllers : NONE
Distributed             : 0

[Authorized Administrators]
Oper Groups: 
Admin Groups:
Oper Users:  
Admin Users: 

[Virtual CPU Details]
Number Virtual CPUs     : 4
Minimum Virtual CPUs    : 1
Maximum Virtual CPUs    : 4
Percent Entitlement     : 10.0%
Maximum Entitlement     : 100.0%

[Memory Details]
Total memory            : 12 GB
Minimum memory limit    : 512 MB
Maximum memory limit    : 64 GB
Reserved memory         : 64 MB
Minimum reserved limit  : 32 MB
Maximum reserved limit  : 64 GB
VHPT Size               : 1 MB

[Storage Interface Details]
Guest Device type       : disk
Guest Adaptor type      : scsi
Ioscan format           : 0/0/1/0.1.0
Bus                     : 0
Device                  : 1
Function                : 0
Target                  : 1
Lun                     : 0
Physical Storage type   : lv
Physical Device         : /dev/vg01/rlv_bootdisk


[Network Interface Details]
Physical Storage type   : vswitch
Guest Adaptor type      : lan
Backing                 : vmlan1
Vswitch Port            : 1
Ioscan format           : 0/0/0/0
Bus                     : 0
Device                  : 0
Function                : 0
Mac Address             : 52-80-65-6e-69-57


[Misc Interface Details]
Guest Device type       : serial
Guest Adaptor type      : com1
Physical Storage type   : tty
Physical Device         : console

可以看到磁带设备已经被删除。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11411056/viewspace-733464/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11411056/viewspace-733464/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值