23.10.2014 Views

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note: Set the DSH_REMOTE_CMD=/usr/bin/ssh variable if you use SSH for<br />

authenticati<strong>on</strong>:<br />

# export DSH_REMOTE_CMD=/usr/bin/ssh<br />

# export DSH_LIST=<br />

# dsh lsdev -Cc cdrom|dshbak<br />

Example 2-2 Finding which LPAR is holding the optical drive using dsh<br />

# dsh lsdev -Cc cdrom|dshbak<br />

HOST: appserver<br />

---------------<br />

cd0 Available Virtual SCSI Optical Served by VIO Server<br />

HOST: dbserver<br />

--------------<br />

cd0 Defined Virtual SCSI Optical Served by VIO Server<br />

HOST: nim<br />

---------<br />

cd0 Defined Virtual SCSI Optical Served by VIO Server<br />

Tip: Put the DSH_LIST and DSH_REMOTE_CMD definiti<strong>on</strong>s in .profile <strong>on</strong><br />

your admin server. You can change the file c<strong>on</strong>taining names of target LPARs<br />

without redefining DSH_LIST.<br />

Note: If some partiti<strong>on</strong>s do not appear in the list, it is usually because the drive<br />

has never been assigned to the partiti<strong>on</strong> or completely removed with the -d<br />

opti<strong>on</strong>.<br />

Or use the ssh command. See Example 2-3.<br />

Example 2-3 Finding which LPAR is holding the optical drive using ssh.<br />

# for i in nim dbserver appserver<br />

> do<br />

> echo $i; ssh $i lsdev -Cc cdrom<br />

> d<strong>on</strong>e<br />

nim<br />

cd0 Defined Virtual SCSI Optical Served by VIO Server<br />

dbserver<br />

cd0 Defined Virtual SCSI Optical Served by VIO Server<br />

appserver<br />

cd0 Available Virtual SCSI Optical Served by VIO Server<br />

Chapter 2. <str<strong>on</strong>g>Virtualizati<strong>on</strong></str<strong>on</strong>g> technologies <strong>on</strong> <strong>System</strong> p servers 97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!