Operating System - HP-UX
1753842 Members
8398 Online
108806 Solutions
New Discussion юеВ

Re: How can I change the pv's device file?

 
SOLVED
Go to solution
Ryan Gu
Frequent Advisor

How can I change the pv's device file?

I have a disk and its device file is /dev/dsk/c2t3d0.

For some reason, I want to change its device file to /dev/dsk/c3t1d0.

How can I do?
Ryan Gu
6 REPLIES 6
Antonio Cardoso_1
Trusted Contributor

Re: How can I change the pv's device file?

Hi jason,

in "citjdk" naming, i, j, k values mean:
- i : SCSI interface card number
- j : SCSI target number
- k : device number.

The only way to get this device filename changed is to move the disk drive to another controller and change its SCSI target number.

You cannot just change the filename.

What was your goal?
Ryan Gu
Frequent Advisor

Re: How can I change the pv's device file?

Could the command "mkfs" do that?

# mkfs -H 1/2/3 /dev/dsk/catbdc
Ryan Gu
Antonio Cardoso_1
Trusted Contributor

Re: How can I change the pv's device file?

No,
mkfs is for creation of a file on the given device or logical volume.
what is actually your concern about using the device?

antonio.
Josiah Henline
Valued Contributor
Solution

Re: How can I change the pv's device file?

I have used a link in the situation that I needed to change my clusterlock disk before.

ln /dev/dsk/c2t3d0 /dev/dsk/c3t1d0
ln /dev/rdsk/c2t3d0 /dev/rdsk/c3t1d0

What reason do you have to want the device name to change?
If at first you don't succeed, read the man page.
Patrick Wallek
Honored Contributor

Re: How can I change the pv's device file?

Since disk device files are tied so closely with the Controller and Targets (ie. SCSI ID) of the device, I'm not sure it would be advisable to try to change it.

c2t3d0 is telling you that the device is on the 2nd discovered controller and the device itself is at SCSI ID 3.

If you were to change it to c3t1d0, you would be giving false information, saying that the disk is now on the 3rd discovered controller at SCSI ID / target 1.

I can't see how this would make sense.
Torsten.
Acclaimed Contributor

Re: How can I change the pv's device file?

The only thing you can change in CxTyDz is the "x", but what is your reason?

You'll confuse everbody including yourself, believe me.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!