Operating System - HP-UX
1825775 Members
2305 Online
109687 Solutions
New Discussion

Changing the disk pathing for a mounted filesystem.

 
SOLVED
Go to solution
CSK Auto
Advisor

Changing the disk pathing for a mounted filesystem.

Hi,
I have an hp 4000 RP7400 running 11.00 that is connected to a SAN via a A6795 HBA card. The SAN manager is reporting that the volume group vgd240aps2 is not on its perferred path. The disk array vendor has asked that I make the following change at the OS


1. Remove the primary path and move the alternate up with the following
command:

vgreduce /dev/vg01 /dev/dsk/c2t1d0

2. Verify the alternate is now the primary with the following command:

vgdisplay

3. Enter this command:

vgextend /dev/vg01 /dev/dsk/c2t1d0

4. Enter the following command to see if it shows c6t0d0 as the primary
and c2t1d0 as the alternative path.

vgdisplay

I don't have a problem doing this but the volume group that I need to change is a mounted filesystem. Is there a risk to making the change listed? The Volume group contains the /home directory which is always busy so it can't be unmounted.

Please advise...

Thanks in advance for your help
Gwenn




5 REPLIES 5
RAC_1
Honored Contributor

Re: Changing the disk pathing for a mounted filesystem.

You even do not need vgreduce. to change to alternate path (making it primary path) you can just use pvchange -s
man pvchange for details and syntax.
There is no substitute to HARDWORK
CSK Auto
Advisor

Re: Changing the disk pathing for a mounted filesystem.

so if I have the following physical disk this is the what I would enter to change the path?

PV Name /dev/dsk/c24t0d1
PV Name /dev/dsk/c22t0d1 Alternate Link
PV Status available
Total PE 8446
Free PE 2


pvchange -s /dev/dsk/c24t0d1

Will this automatically change the alternate to be the primary? Do I still need to do the vgextend? Does it matter if it is mounted filesystem that is part of the volume group?

Thanks for the quick response
Gwenn
RAC_1
Honored Contributor
Solution

Re: Changing the disk pathing for a mounted filesystem.

pvchange -s /dev/dsk/c22t0d1

primary becomes alternate and alternate becomes primary. No need to do anything else.
There is no substitute to HARDWORK
CSK Auto
Advisor

Re: Changing the disk pathing for a mounted filesystem.

excellent thanks... much easier that way

Have a good evening.
CSK Auto
Advisor

Re: Changing the disk pathing for a mounted filesystem.

thread can be closed

thanks again for the quick response.