Saturday, 28 April 2012

Moving CDROM between LPARS

MOVE A CDROM FROM ONE LPAR TO ANOTHER LPAR


MOVE A CDROM FROM ONE LPAR TO ANOTHER LPAR
CHECK THE CDROM ON THE PARENT LPAR

this document will give you detail idea about step by step moving a cdrom from one lpar to another dynamically  in a P5 box
We need to know first what is the physical location of cdrom , or we should be knowing what type of adapter cdrom is connected to for example other "mass storage adapter"
If we go to the properties of the box in hmc we can see all the adapters that the box have and to which lpar that adapter is currently assigned  , hence we can know currently which lpar is holding the cdrom



 
Check the cdrom and I/O adaper providing the cdrom . Check the physical location of I/O
adapter providing the cdrom


# lsdev -l cd0 -F parent
scsi1
# lsdev -l scsi1 -F parent
sisscsia0
# lsdev -l sisscsia0 -F physloc
U789D.001.DQD07P3-P1-C4
# lsdev -l scsi1 -F physloc
U789D.001.DQD07P3-P1-C4-T2
REMOVE THE CDROM FROM THE LPAR
Note the physical address of adapter in the above command
# rmdev -dl cd0
cd0 deleted
MOVING THE ADAPTER


Goto Properties of the magaged machine to view all the adapters


Select I/O adapters and see the physical address of the adapter This should match with the physical location of the adapter which we deleted in the previous step






The physical location marked in the above figure shows which lpar is using that adapter currently


Go to lpar  >> select the link besides the lpar  >> select Dynamic lpar >>Physical Adapters >> Move or remove




Select the adapter and click on to remove or select the partition from "Move to partition option" to move directly to the destination partition






With the help of physical address determined above go to the properties of the managed
system and veryfy the I/O adapter



If you are facing the same error as I faced below go to the parent lpar and delete the
parent adapter of the cdrom (the adapter you want to move has to be deleted from the
parent lpar )



DELETE THE ADAPTER
# rmdev -Rdl sisscsia0
rmt0 deleted
scsi0 deleted
scsi1 deleted
sisscsia0 deleted



VERIFY ON THE TARGET LPAR
Go to the terminal console of the target lpar and verify that the cdrom is now moved
Verify the adapter by physical location



# hostname
gurapp123
# cfgmgr
# lsdev -l cd0
cd0 Available 02-08-01-2,
0 16 Bit LVD SCSI DVD-RAM Drive
# mkdir /cdrom
# mount -v cdrfs -o ro /dev/cd0 /cdrom
# umount /cdrom
# lsdev -l cd0 -F parent
scsi1
# lsdev -l scsi1 -F physloc
U789D.001.DQD07P3-P1-C4-T2

 * Source Article from : Internet