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!

Rename hdisks or vpathes ?

Status
Not open for further replies.

karstens

Technical User
Feb 12, 2002
12
DE
Does someone know if it is possible to rename hdisks (e.g. from hdisk5 to hdisk50) or vpathes under AIX ?
 
I don't know of an EASY way, and I don't know that it is possible (by normal means) to INCREASE the hdisk number. Why would you want to do that sort of thing? Perhaps there is another solution.
 
You mean because they are out of order, or skip a disk....?
You can delete the current names and have it re read it by walking the bus?

Please use this information with care. IBM will not be responsible for damages
of any kind resulting from its use. The use of this information is the sole
responsibility of the customer and depends on the customer's ability to
evaluate and integrate this information into the customer's operational
environment.
--------------------------
Synchronizing Disk Names

Use the following script when the names of your hard disks are out of order, for
example, hdisk0, hdisk2, hdisk3 instead of hdisk0, hdisk1, hdisk2. The order
of the disk names generally does not cause errors but it may cause confusion
for the user. Run the following dsksync script to alleviate such confusion.
The script renames the hard disks.

The order of the disks' names after you reboot the machine will be
determined on the order they are detected by the device configuration
process. For instance, a disk at the address 00-00-0S-00 will be numbered
before a disk at the address 00-00-0S-20 or 00-05-00-00.

This document applies to AIX Versions 3.2, 4.x and 5.1.

Procedure
Before running this script, make sure the key is in the Normal position,
if applicable.

lsdev -Cc disk | awk '{ print $1 }' | while read HDname; do
odmdelete -q "name = $HDname" -o CuAt
odmdelete -q "value = $HDname" -o CuAt
odmdelete -q "name = $HDname" -o CuDv
odmdelete -q "value3 = $HDname" -o CuDvDr
odmdelete -q "name = $HDname" -o CuVPD
done
rm -f /dev/hdisk*
rm -f /dev/rhdisk*
savebase

When the shell script completes successfully, run the following command
to shut down and reboot the system.

shutdown -Fr

After the reboot, the disk entries will be recreated.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top