12/03/96 , 4FAX# 1910 Synchronizing Disk Names SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. 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 eval- uate and integrate this information into the customer's operational environment. PROCEDURE 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 con- fusion for the user. Run the following "dsksync" script to alleviate such confusion. The script will rename the hard disks. The order in which the disks will be named after rebooting machine will be determined on the order they are detected by the device configuration process. For instance, a disk at address 00-00-0S-00 will be numbered before a disk at address 00-00-0S-20 or 00-05-00-00. This document applies to AIX 3.1 through 4.2 on the RISC System/6000. Make sure the key is in "Normal" position before running this script. ---------------------------------------------------------------------- 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 fol- lowing command to shutdown and reboot. shutdown -Fr Synchronizing Disk Names 1 12/03/96 , 4FAX# 1910 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: Name: Fax Number: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ END OF DOCUMENT (dsksync.krn, 4FAX# 1910) Synchronizing Disk Names 2