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
可以看到磁帶裝置已經被刪除。
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 虛擬磁帶庫
- Java虛擬機器總結給面試的你(上)Java虛擬機面試
- win10自帶虛擬機器怎麼使用 win10自帶虛擬機器使用的方法Win10虛擬機
- 虛擬機器上網(轉)虛擬機
- Dalvik虛擬機器、Java虛擬機器與ART虛擬機器虛擬機Java
- win10自帶的虛擬機器怎麼使用_win10如何開啟自帶虛擬機器Win10虛擬機
- Java虛擬機器05——物件分配與回收策略Java虛擬機物件
- 虛擬機器搭建的資源分配設定虛擬機
- 給虛擬機器的增加空間虛擬機
- windows上使用官方的虛擬機器的方法Windows虛擬機
- 將ESXI上的虛擬機器匯出為OVF模板虛擬機
- win10 自帶虛擬機器怎樣開啟_win10自帶虛擬機器在哪Win10虛擬機
- win10自帶虛擬機器怎麼用_window10自帶虛擬機器如何建立Win10虛擬機
- Java虛擬機器記憶體分配與回收策略Java虛擬機記憶體
- Java虛擬機器7:記憶體分配原則Java虛擬機記憶體
- 使用虛擬機器配置dataguard虛擬機
- KVM宿主機上檢視虛擬機器ip虛擬機
- java虛擬機器和Dalvik虛擬機器Java虛擬機
- Android 虛擬機器 Vs Java 虛擬機器Android虛擬機Java
- 將虛擬機器跑在ceph之中虛擬機
- 虛擬機器虛擬機
- Android上的ART虛擬機器Android虛擬機
- 連線虛擬機器oracle 和虛擬機器KEY虛擬機Oracle
- 虛擬機器(三)虛擬機器配置靜態Ip虛擬機
- HP虛擬機器重分配記憶體虛擬機記憶體
- 使用 Cockpit 建立虛擬機器KPI虛擬機
- 使用虛擬機器安裝Kail虛擬機AI
- 虛擬機器VM跨版本使用虛擬機
- 關於虛擬機器的使用虛擬機
- Gradle傳給虛擬機器的引數Gradle虛擬機
- 給android虛擬機器avd安裝apkAndroid虛擬機APK
- PD虛擬機器 18 for Mac(Mac虛擬機器軟體)虛擬機Mac
- win10 自帶虛擬光碟機怎麼使用_win10自帶的虛擬光碟機使用步驟Win10
- VMware虛擬機器如何設定使主機和虛擬機器不同IP虛擬機
- 深入理解虛擬機器之虛擬機器類載入機制虛擬機
- JVM 虛擬機器JVM虛擬機
- JVM虛擬機器JVM虛擬機
- Neo 虛擬機器虛擬機