BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
System Administration
Showing results for 
Search instead for 
Do you mean 

rename disk device file

Frequent Advisor

rename disk device file

[ Edited ]

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

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