1748038 Members
5224 Online
108757 Solutions
New Discussion юеВ

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

2 REPLIES 2
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?
avik
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
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