rename disk device file (195 Views)
Reply
Frequent Advisor
Nabil Boussetta
Posts: 92
Registered: ‎06-06-2004
Message 1 of 3 (195 Views)

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
Bill Costigan
Posts: 1,427
Registered: ‎09-19-2000
Message 2 of 3 (195 Views)

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
avik
Posts: 208
Registered: ‎05-31-2006
Message 3 of 3 (195 Views)

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
Example:
#mksf -C disk -H 0/0/10/0/0.1.0.39.0.1.0 -I 62 /dev/dsk/c8t1d0
#mksf -C disk -H 0/0/10/0/0.1.0.39.0.1.0 -I 62 -r /dev/rdsk/c8t1d0

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.