HOW TO SHARE A PHYSICAL CDROM AS A VIRTUAL CDROM
This document will give you a idea , to share a physical cdrom as a virtual cdrom and assign it to a lpar ,
when we try to move a cdrom which is attached to a storage adapter for example a sata drive we have to move the whole storage adapter with all the drives connected to it ,which is not possible as the storage adapter's child device "disks" are in use .
If we try to remove the adapter it shows that the device is busy as the disks connected to the adapter are in use
Here i am showing you how to assign a cdrom as a virtual cdrom in a a P5 box
This procedure is also applicable to P6 and P7 box (This procedure allows us to assigned a cdrom to a lpar without moving the parent adapter from one lpar to another )
NOTICE THAT IN P6 AND P7 THE CDROM HAS TO BE ASSIGNED TO VIO SERVER FROM START
As in my example we are using a P5 box we can move the cdrom parent adapter which is a ide adapter , for P5 and P6 if the cdrom is assigned to the VIO server from start we can jump to number 6
1. Go to the box properties and look for the adapter holding the cd rom note down its physical location
as mentioned in the figure below
Note Down the lpar holding the cdrom
Log on to the lpar
2. Verify the adapter's phycal location one you noted above with the cd rom backup adapter
and remove the adapter
This removal is necessary because the cdrom was physically assigned to this lpar previously
But in P6 or P7 env You have to plan these things from starting and assign the cdrom to vio server only
root@gurapp107(/)# lsdev -l cd0 -F physloc
U789D.001.DQD07P3-P1-C4-T2-L2-L0
root@gurapp107(/)# lsdev -l sisscsia0 -F physloc
U789D.001.DQD07P3-P1-C4
root@gurapp107(/)#
root@gurapp107(/)# rmdev -Rdl pci2
rmt0 deleted
scsi0 deleted
cd0 deleted
scsi1 deleted
sisscsia0 deleted
pci2 deleted
3. Now DLPAR the cdrom to vio server partition
Goto the VIO select tasks or the menu link at the LPAR
Select Dynamic logical Partition
Select Physical adapter
Select Move or remove
Unfortunately this screen shot is after i moved the adapter , but the procedure is quite simple
select the adapter (like the two adapter still shown in the figure )
In the tab below "Move to partition" Select vio server partition
click on OK
5. Now log on to the vio server and run "cfgdev " to recognize new cdrom assign to vio server
$ lsdev -dev cd0
$
$
$
$ cfgdev
$ lsdev -dev cd0
name status
description
cd0 Available 16 Bit LVD SCSI DVD-RAM Drive
$
6. Now goto Tasks Configuration >> Virtual Resources >> Virtual Storage Management
Goto Optical Devices
Select the VIO Server to which the cdrom has been assigned
Select cdrom , then Select Modify assignment
the cdrom assigned to this vio can be seen over here
I
had shown the vio server and the cdrom in a red box , notice that this
is the cdrom which we dynamically moved to vio server in the above
exercise
Now Select the Partition to which you want to assign the cdrom
Now
at the client side run the device verification "cfgmgr" and verify that
a virtual cdrom is present , To DLPAR this cdrom simply remove the
cdrom from the client side and just assign to a new LPAR as in above
root@gurapp107(/)# cfgmgr
Method error (/usr/lib/methods/cfg_vclient -l vscsi1 ):
0514-040 Error initializing a device into the kernel.
root@gurapp107(/)# lsdev -l cd0
cd0 Available Virtual SCSI Optical Served by VIO Server
root@gurapp107(/)#
* Source Article from : Internet
* Source Article from : Internet