Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

rename disk device file

Nabil Boussetta
Frequent Advisor

rename disk device file

i have tw0 rp3440 (11iv1) connected to an MSA1000(one switch, one controller) to form a cluster.

i have configured one LUN on the MSA array.
this LUN doesn't have the same device file on hpux servers

i'd like to change the device file on server2 from c8t0d0 to c6t0d0.

How to do ?

any help is apreciated



P.S. This thread has been moved from Disk to HP-UX > sysadmin. -HP Forum Moderator

Bill Costigan
Honored Contributor

Re: rename disk device file

I sugggest you not try to remame these files. While the name itself is not that important, changing them can lead to confusion.

The important information is the major and minor numbers

If you do an ll on /dev/dsk/c8t0d0 you'll see the the major and minor numbers, these relate to the scsi path instance and the LUN number on the path for the disk.

In this case (by default) c8t0d0 means LUN 0 on scsi path #8. You really cannot easily change the instance number for a path, although it could be done. you could of course change the name of the device so that c6t0d0 really refers to instance 8 but that would be confusing and you'd need to change all the other stuff that knows the path by the old name, for example, LVM knows its disks by their device names.

Why is it a problem to have each server know a LUN by a different name?
Valued Contributor

Re: rename disk device file

I would map the device files to a new virtual device name like mentined below:

#mksf -C disk -H -I 62
#mksf -C disk -H -I 62 -r
#mksf -C disk -H 0/0/10/0/ -I 62 /dev/dsk/c8t1d0
#mksf -C disk -H 0/0/10/0/ -I 62 -r /dev/rdsk/c8t1d0