Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving CD or DVD from one LPAR to another

Status
Not open for further replies.

l0na

Technical User
Sep 20, 2005
16
AU
currently my CD is assigned to let say to LPAR-3 I want to know what command I need to run to move CD or DVD to LPAR-7

Do I need to install any drivers on LPAR-7 ?
or any .....
If possible could you please show the steps to run the commands else GUI pleae
 
assuming your CD/DVD is assigned as a desired (NOT REQUIRED) resource to you LPARs, then you can remove the CD/DVD drive from LPAR3 and it will be ready to assing dynamically to another LPAR which has it in its configration as desired.


regards,
rm.
 
how do I find out if my CD/DVD is assigned as desired or ..
what command line I need to use
what command line I need to use to remove CD/DVD drive and then assign dynamically to another LPAR
 
I've done some scripts to remove and reassign CD or DVD to lpars.

On each partition i use this script to remove the dvd drive:

CD=`odmget -q name=cd0 CuDv | grep parent`
echo Le lecteur CD est branche sur: $CD


CD=`echo $CD | cut -d '"' -f2`
lsslot -c slot | grep $CD
SLOT=`lsslot -c slot | grep $CD | tr -s ' ' | cut -d' ' -f5`
echo DVD connected to SLOT=$SLOT

#DVD remove
rmdev -l $SLOT -R

echo The DVD was removed


--------------------------------------------------------

I also put this scrit on the HMC and i execute it with putty and ssh key authentification:

# qui detient le lecteur CD

owner=`lshwres -r io --rsubtype slot -m phoenix -F unit_phys_loc,phys_loc,lpar_name | grep U7879.001.DQD0GJA | grep T15 | cut -d ',' -f3`

drc_index=`lshwres -r io --rsubtype slot -m phoenix -F drc_index,unit_phys_loc,phys_loc | grep U7879.001.DQD0GJA | grep T15 | cut -d ',' -f1`



echo DVD is on partition $owner
echo "#########################################"
echo

# Listing OF partitions

echo "Available partitions:"
echo
lssyscfg -m phoenix -r lpar -F name
echo "#########################################"
echo


# Target definition

echo "Target partition ?"
read target
echo

# DVD move


chhwres -r io -m XXXXXXXX -o m -p $owner -t $target -l $drc_index


Note XXXXXXX is your system name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top