ITPub博客

首页 > Linux操作系统 > Linux操作系统 > HP-UX上将磁带机分配给虚拟机使用

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

原创 Linux操作系统 作者:ljm0211 时间:2012-06-20 17:45:25 0 删除 编辑
物理机: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博客 ” ,链接:https://blog.itpub.net/11411056/viewspace-733464/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-14

  • 博文量
    272
  • 访问量
    491384