I am facing problems in moving CD-ROM from one lpar to another.
CDROM can be seen on the POWERVM (IVM) server , but through the web-access if I move it ( assign it ) to LPAR it will be assigned. I run cfgmgr , and the cdrom does not show up in the LPAR. I firmly believe this is the reason why I was unable to boot from CDROM in this thread VIOS LPAR Error 0518 ;
Let us try to troubleshoot the problem.
POWERVM IVM
$ oem_setup_env
# lsdev -Cc cdrom
cd0 Available 03-08-00 IDE DVD-ROM Drive
# lsdev -l cd0 -F parent
ide0
# lsdev -l ide0 -F parent
pci3
# lsdev -l pci3 -F parent
pci0
# lsdev |grep cd0
cd0 Available 03-08-00 IDE DVD-ROM Drive
# lsdev |grep 03-08
cd0 Available 03-08-00 IDE DVD-ROM Drive
ide0 Available 03-08 ATA/IDE Controller Device
#
exit to vios
$ ioslevel
2.1.3.10-FP23
$
$ lsdev
name status description
L2cache0 Available L2 Cache
cd0 Available IDE DVD-ROM Drive
en0 Available Standard Ethernet Network Interface
ent0 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent2 Available Virtual I/O Ethernet Adapter (l-lan)
ent3 Available Virtual I/O Ethernet Adapter (l-lan)
ent4 Available Virtual I/O Ethernet Adapter (l-lan)
ent5 Available Virtual I/O Ethernet Adapter (l-lan)
ent6 Available Shared Ethernet Adapter
fcs0 Available FC Adapter
fcs1 Available FC Adapter
fscsi0 Available FC SCSI I/O Controller Protocol Device
fscsi1 Available FC SCSI I/O Controller Protocol Device
hdisk0 Available 16 Bit LVD SCSI Disk Drive
hdisk1 Available 16 Bit LVD SCSI Disk Drive
hdisk2 Available 16 Bit LVD SCSI Disk Drive
hdisk3 Available 16 Bit LVD SCSI Disk Drive
hdisk4 Available 16 Bit LVD SCSI Disk Drive
hdisk5 Available 16 Bit LVD SCSI Disk Drive
hdisk6 Available 16 Bit LVD SCSI Disk Drive
hdisk7 Available 16 Bit LVD SCSI Disk Drive
ibmvmc0 Available Virtual Management Channel
ide0 Available ATA/IDE Controller Device
inet0 Available Internet Network Extension
iscsi0 Available iSCSI Protocol Device
lai0 Available GXT135P Graphics Adapter
lft0 Available Low Function Terminal Subsystem
lo0 Available Loopback Network Interface
lvdd Available LVM Device Driver
mem0 Available Memory
mover0 Available Mover Kernel Extension
pci0 Available PCI Bus
pci1 Available PCI Bus
pci2 Available PCI Bus
pci3 Available PCI Bus
pci4 Available PCI Bus
pci5 Available PCI Bus
pci6 Available PCI Bus
pci7 Available PCI Bus
pci8 Available PCI Bus
pci9 Available PCI Bus
pci10 Available PCI Bus
pci11 Available PCI Bus
proc0 Available Processor
proc2 Available Processor
proc4 Available Processor
proc6 Available Processor
pty0 Available Asynchronous Pseudo-Terminal
rcm0 Available Rendering Context Manager Subsystem
rmt0 Available LVD SCSI 1/2-inch Cartridge Tape Drive
scsi0 Available Ultra320 SCSI RAID Adapter Physical bus
scsi1 Available Ultra320 SCSI RAID Adapter Physical bus
scsi2 Available PCI-X Dual Channel Ultra320 SCSI Adapter bus
scsi3 Available PCI-X Dual Channel Ultra320 SCSI Adapter bus
ses0 Available SCSI Enclosure Services Device
ses1 Available SCSI Enclosure Services Device
sisioa0 Available PCI-XDDR Dual Channel U320 SCSI RAID Adapter
sisraid0 Available Ultra320 SCSI RAID Adapter Logical bus
sisscsia0 Available PCI-X Dual Channel Ultra320 SCSI Adapter
sys0 Available System Object
sysplanar0 Available System Planar
usb0 Available USB System Software
usbhc0 Available USB Host Controller (33103500)
usbhc1 Available USB Host Controller (33103500)
usbhc2 Available USB Enhanced Host Controller (3310e000)
vhost0 Available Virtual SCSI Server Adapter
vhost1 Available Virtual SCSI Server Adapter
vhost2 Available Virtual SCSI Server Adapter
vhost3 Available Virtual SCSI Server Adapter
vhost4 Available Virtual SCSI Server Adapter
vhost5 Available Virtual SCSI Server Adapter
vhost6 Available Virtual SCSI Server Adapter
vio0 Available Virtual I/O Bus
vsa0 Available LPAR Virtual Serial Adapter
vsa1 Available LPAR Virtual Serial Adapter
vts0 Available Virtual TTY Server Adapter
vts1 Available Virtual TTY Server Adapter
vts2 Available Virtual TTY Server Adapter
vts3 Available Virtual TTY Server Adapter
vts4 Available Virtual TTY Server Adapter
vts5 Available Virtual TTY Server Adapter
vts6 Available Virtual TTY Server Adapter
vtscsi0 Available Virtual Target Device - Disk
vtscsi1 Available Virtual Target Device - Logical Volume
vtscsi2 Available Virtual Target Device - Logical Volume
vtscsi3 Available Virtual Target Device - Logical Volume
vtscsi4 Available Virtual Target Device - Logical Volume
vtscsi5 Available Virtual Target Device - Logical Volume
vtscsi6 Available Virtual Target Device - Logical Volume
vtscsi7 Available Virtual Target Device - Logical Volume
vtscsi8 Available Virtual Target Device - Logical Volume
vtscsi9 Available Virtual Target Device - Logical Volume
vtscsi10 Available Virtual Target Device - Logical Volume
vtscsi11 Available Virtual Target Device - Logical Volume
vty0 Available Asynchronous Terminal
vty1 Available Asynchronous Terminal
$
$ lsmap -all
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost0 U9113.550.107780E-V1-C11 0x00000002
VTD vtscsi0
Status Available
LUN 0x8300000000000000
Backing device hdisk1
Physloc U787B.001.DNW3313-P1-T14-L4-L0
VTD vtscsi6
Status Available
LUN 0x8500000000000000
Backing device standby_oracle
Physloc
VTD vtscsi10
Status Available
LUN 0x8100000000000000
Backing device standby_archive
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1 U9113.550.107780E-V1-C13 0x00000003
VTD vtscsi1
Status Available
LUN 0x8300000000000000
Backing device temp_disk
Physloc
VTD vtscsi2
Status Available
LUN 0x8400000000000000
Backing device test1
Physloc
VTD vtscsi3
Status Available
LUN 0x8200000000000000
Backing device test1_archive
Physloc
VTD vtscsi4
Status Available
LUN 0x8100000000000000
Backing device rootvg_vio_1
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost2 U9113.550.107780E-V1-C15 0x00000004
VTD vtscsi5
Status Available
LUN 0x8200000000000000
Backing device rootvg_3
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost3 U9113.550.107780E-V1-C17 0x00000000
VTD vtscsi8
Status Available
LUN 0x8200000000000000
Backing device rootvg_4
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost4 U9113.550.107780E-V1-C19 0x00000006
VTD vtscsi9
Status Available
LUN 0x8100000000000000
Backing device nim_server
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost5 U9113.550.107780E-V1-C21 0x00000007
VTD vtscsi7
Status Available
LUN 0x8100000000000000
Backing device rootvg_2
Physloc
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost6 U9113.550.107780E-V1-C23 0x00000000
VTD vtscsi11
Status Available
LUN 0x8100000000000000
Backing device rootvg_5
Physloc
$ lsdev -slots
# Slot Description Device(s)
U787B.001.DNW3313-P1-C1 Logical I/O Slot pci10 fcs0 fcs1
U787B.001.DNW3313-P1-C2 Logical I/O Slot pci11
U787B.001.DNW3313-P1-C3 Logical I/O Slot pci4 pci5 lai0
U787B.001.DNW3313-P1-C4 Logical I/O Slot pci6 sisioa0
U787B.001.DNW3313-P1-C5 Logical I/O Slot pci7
U787B.001.DNW3313-P1-T7 Logical I/O Slot pci2 usbhc0 usbhc1 usbhc2
U787B.001.DNW3313-P1-T9 Logical I/O Slot pci8 ent0 ent1
U787B.001.DNW3313-P1-T14 Logical I/O Slot pci9 sisscsia0
U787B.001.DNW3313-P1-T16 Logical I/O Slot pci3 ide0
U9113.550.107780E-V1-C2 Virtual I/O Slot ibmvmc0
U9113.550.107780E-V1-C3 Virtual I/O Slot ent2
U9113.550.107780E-V1-C4 Virtual I/O Slot ent3
U9113.550.107780E-V1-C5 Virtual I/O Slot ent4
U9113.550.107780E-V1-C6 Virtual I/O Slot ent5
U9113.550.107780E-V1-C10 Virtual I/O Slot vts0
U9113.550.107780E-V1-C11 Virtual I/O Slot vhost0
U9113.550.107780E-V1-C12 Virtual I/O Slot vts1
U9113.550.107780E-V1-C13 Virtual I/O Slot vhost1
U9113.550.107780E-V1-C14 Virtual I/O Slot vts2
U9113.550.107780E-V1-C15 Virtual I/O Slot vhost2
U9113.550.107780E-V1-C16 Virtual I/O Slot vts3
U9113.550.107780E-V1-C17 Virtual I/O Slot vhost3
U9113.550.107780E-V1-C18 Virtual I/O Slot vts4
U9113.550.107780E-V1-C19 Virtual I/O Slot vhost4
U9113.550.107780E-V1-C20 Virtual I/O Slot vts5
U9113.550.107780E-V1-C21 Virtual I/O Slot vhost5
U9113.550.107780E-V1-C22 Virtual I/O Slot vts6
U9113.550.107780E-V1-C23 Virtual I/O Slot vhost6
$ lsdev|grep vscsi
$
$ cfgdev -dev cd0
$
$ lsdev | grep cd0
cd0 Available IDE DVD-ROM Drive
$ lsdev -virtual | grep Optical
$
Now creating the virtual cd-rom while the LPAR is down
$ mkvdev -vdev cd0 -vadapter vhost2
vtopt0 Available
$ lsdev -dev vtopt0 -vpd
vtopt0 U9113.550.107780E-V1-C13-L5 Virtual Target Device - Optical Media
$ lsmap -vadapter vhost2
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost2 U9113.550.107780E-V1-C15 0x00000004
VTD vtopt0
Status Available
LUN 0x8100000000000000
Backing device cd0
Physloc U787B.001.DNW3313-P4-D2
VTD vtscsi5
Status Available
LUN 0x8200000000000000
Backing device rootvg_3
Physloc
starting the LPAR with Host ID 4 and checking the properties through the web
cd0 IDE DVD-ROM Drive U787B.001.DNW3313-P4-D2
# lsdev -Cc cdrom
# cfgmgr
Method error (/etc/methods/cfglft -l lft0 ):
0514-032 Cannot perform the requested function because the
specified device is dependent on another device which does
not exist.
cfgmgr: 0514-621 WARNING: The following device packages are required for
device support but are not currently installed.
devices.vscsi.disk
# lsdev -Cc cdrom
#
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vscsi0 U9113.550.107780E-V4-C2-T1 Virtual SCSI Client Adapter
* hdisk0 U9113.550.107780E-V4-C2-T1-L820000000000 Virtual SCSI Disk Drive
* vsa2 U9113.550.107780E-V4-C0 LPAR Virtual Serial Adapter
* vty2 U9113.550.107780E-V4-C0-L0 Asynchronous Terminal
* vsa1 U787B.001.DNW3313-P1-T2 LPAR Virtual Serial Adapter
* vty1 U787B.001.DNW3313-P1-T2-L0 Asynchronous Terminal
* vsa0 U787B.001.DNW3313-P1-T1 LPAR Virtual Serial Adapter
* vty0 U787B.001.DNW3313-P1-T1-L0 Asynchronous Terminal
* ent0 U9113.550.107780E-V4-C4-T1 Virtual I/O Ethernet Adapter (l-lan)
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
#
# lsslot -c slot
# Slot Description Device(s)
U9113.550.107780E-V4-C0 Virtual I/O Slot vsa2
U9113.550.107780E-V4-C2 Virtual I/O Slot vscsi0
U9113.550.107780E-V4-C4 Virtual I/O Slot ent0
Someone mentioned that I might need to shutdown the vios server with shutdown -F but since I don't have HMC , i will need to physically be next to the server to start it no other way. shutdown -Fr did not work with CD assignment. see here : To see vhost on VIOS after creating an HMC profile
I have read ROOTVG - AIX & POWER Portal
but it didn't work.
Happy new year
---------- Post updated at 01:30 PM ---------- Previous update was at 11:02 AM ----------
This also did not work
$ mkvopt -name aix61.iso -dev cd0 -ro
$ mkvdev -fbo -vadapter vhost2
vtopt0 Available
$ loadopt -vtd vtopt0 -disk aix61.iso
$ lsmap -vadapter vhost2
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost2 U9113.550.107780E-V1-C15 0x00000004
VTD vtopt0
Status Available
LUN 0x8100000000000000
Backing device /var/vio/VMLibrary/aix61.iso
Physloc
VTD vtscsi5
Status Available
LUN 0x8200000000000000
Backing device rootvg_3
Physloc
$ lsdev -dev vtopt0 -vpd
vtopt0 U9113.550.107780E-V1-C15-L1 Virtual Target Device - File-backed Optical
GO TO THE LPAR
run
# cfgmgr
# lsdev -Cc cdrom
<empty>