Accessing the DVD drive from a VIO LPAR

Performing an install or update from an attached DVD drive is often the simplest way to patch or install a system. Finding and accessing these drives from an LPAR requires a bit of black magic. These steps should make the process a little easier.

These steps were useful on P5 frames. On the P6 frames I've used the process is similar, but the device is labeled USB.

Before the drive can be mounted, you have to deallocate it from any other LPAR which may be using it. In my case it was allocated to my vios1 LPAR when I needed it on vios2.

On vios 1, at the oem_setup_env prompt view your logical and virtual bus devices.

# lsslot -c slot
U7879.001.XXDRBLK-P1-C3 Logical I/O Slot pci6 pci7 ent0 ent1 ent2 ent3
U7879.001.XXDKAAG-P1-C3 Logical I/O Slot pci11 fcs0
U7879.001.XXDHYDN-P1-C4 Logical I/O Slot pci13 fcs1
U7879.001.XXDKAAG-P1-T6 Logical I/O Slot pci10 ent4 ent5
U7879.001.XXDRBLK-P1-T12 Logical I/O Slot pci8 sisscsia0
U7879.001.XXDKAAG-P1-T12 Logical I/O Slot pci12 sisscsia1
U7879.001.XXDRBLK-P1-T15 Logical I/O Slot pci9 ide0
U9117.570.XXDDF2D-V2-C0 Virtual I/O Slot vsa0
U9117.570.XXDDF2D-V2-C11 Virtual I/O Slot ent6
U9117.570.XXDDF2D-V2-C13 Virtual I/O Slot ent7
U9117.570.XXDDF2D-V2-C21 Virtual I/O Slot vhost0
U9117.570.XXDDF2D-V2-C23 Virtual I/O Slot vhost1
U9117.570.XXDDF2D-V2-C25 Virtual I/O Slot vhost2
U9117.570.XXDDF2D-V2-C27 Virtual I/O Slot vhost3
U9117.570.XXDDF2D-V2-C29 Virtual I/O Slot vhost4
U9117.570.XXDDF2D-V2-C31 Virtual I/O Slot vhost5
U9117.570.XXDDF2D-V2-C33 Virtual I/O Slot vhost6
U9117.570.XXDDF2D-V2-C35 Virtual I/O Slot vhost7

Since the DVD is attached to an IDE bus, the following entry looks like a good bet:

U7879.001.XXDRBLK-P1-T15 Logical I/O Slot pci9 ide0

You can look at this a few different ways. It's important that the DVD, and its virtual controller are correctly removed.

# lsdev -Cc cdrom
cd0 Available 0C-08-00 IDE DVD-ROM Drive

# lsdev -C | grep 0C-08
cd0 Available 0C-08-00 IDE DVD-ROM Drive
ide0 Available 0C-08 ATA/IDE Controller Device

Then when you are sure, remove the pci device and all recursively connected devices.

# rmdev -Rdl pci9

All children are cleanly unconfigured. cd0, ide0, and pci9.

Back at the HMC select the vio where you removed the DVD, and select Dynamic LPAR Operation, and choose the option to move a physical adapter. Select your target vio lpar and you are done.