Operating System - HP-UX
1838598 Members
4203 Online
110128 Solutions
New Discussion

Re: Physical path missing

 
Sachin Patel
Honored Contributor

Physical path missing

Hi
We had vg that was construct on two physical path

vg30
/dev/dsk/c25t1d7 /dev/dsk/c20t0d6
/dev/vg32/lvol1 86408 /ts32
65536 file system block size 8192 fragment size

Now we have lost first path. Bad hardware

sagan# vgchange -a y vg30
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c25t1d3":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c25t1d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg30":
Quorum not present, or some physical volume(s) are missing.


If I use -q n option it activates volume group and I can even see the data but I know the stat of it.


sagan# vgchange -a y -q n /dev/vg30
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c25t1d3":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Activated volume group
Volume group "/dev/vg30" has been successfully changed.


Is there a way I can redirect this vg's to one path.

Two fiber cable is going from system to disk controller.

thanks
Sachin
Is photography a hobby or another way to spend $
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: Physical path missing

Hi Sachin:

If I understand correctly, you had a volume group that wss comprised of two physical volumes. Now, you have lost access to one, althought you believe that the underlying physical volume is still intact.

If that is correct, try 'vgexport'ing the volume group and then 'vgimport' it using the new, correct path.

Regards!

...JRF...
Stephen Keane
Honored Contributor

Re: Physical path missing

Or was one a mirror copy of the other?
Steven E. Protter
Exalted Contributor

Re: Physical path missing

back up what data you can.

Probable course of action is:

vgreduce -f

That course of action will provide you three steps or so to follow afterwards, which you must follow precisely.

I hope you replace the disk at some point, but you'll still probably need the vgreduce.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sachin Patel
Honored Contributor

Re: Physical path missing

Hi James,

you are correct it was made
pvcreate path1
pvcreate path2

one path is on HWaddress 7/2 another is 7/1 (V-class) going to set of disk (raid5) amdhal (old 4800)

7/2 is bad so if I vgexport then mkdir and mknod and vgimport vg30

it should work right?

I will give it a try. I have three vg like this.


Stephen it is not mirror
Steven I can't backup as it is too much space.

Thanks
Sachin

Is photography a hobby or another way to spend $
Victor BERRIDGE
Honored Contributor

Re: Physical path missing

Hi Sachin,
Did you change a HBA card?
If so the Mac address of the card is different and has to be updated from the SAN side

try something like for e.g. /dev/td1
fcmsutil /dev/td1
fcmsutil /dev/td1 stat|pg
fcmsutil /dev/td1 nsstat|pg
fcmsutil /dev/td1 test 0x0a0f00 200 200 or whatever you see


All the best
Victor

Sachin Patel
Honored Contributor

Re: Physical path missing

victor we don't have any extra card.

James
It didn't work

#vgexport -m /home/sachin/vg32.conf /dev/vg32
#mkdir /dev/vg32
#mknod /dev/vg32/group c 64 0x160000
#chmod 644 /dev/vg32/group

#vgimport /dev/vg32 /dev/dsk/c20t0d6
vgimport: Warning: Volume Group contains "2" PVs, "1" specified. Continuing.
vgimport: Quorum not present, or some physical volume(s) are missing.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.

#vgchange -a y /dev/vg32
vgchange: Couldn't activate volume group "/dev/vg32":
Quorum not present, or some physical volume(s) are missing.

#vgchange -a y -q n /dev/vg32
Activated volume group
Volume group "/dev/vg32" has been successfully changed.

#mount -a
/dev/vg32/lvol1: unrecognized file system

sagan# fsck -y -F hfs /dev/vg32/lvol1
** /dev/vg32/lvol1: Cannot read from the device

what else?
Is photography a hobby or another way to spend $
Torsten.
Acclaimed Contributor

Re: Physical path missing

Hi Sachin,

you're telling about vg30 and vg32. Are 2 VGs affected?

From what I can see in the initial posting the vg30 consists at least of 3 LUNs or more, since you have a quorum message.

Have a look at "strings /etc/lvmtab".
If your filesystem is spanned across several LUNs without a LVM mirror, all LUNs have to be available.

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!   
Sachin Patel
Honored Contributor

Re: Physical path missing

Nothing worked. I had to create new file system on all.

Thanks for you help.
Is photography a hobby or another way to spend $
Devender Khatana
Honored Contributor

Re: Physical path missing

Hi,


Removing quorum message and missing volume message was simple.

#vgreduce -f /dev/vg30

(It will remove all missing physical volumes from the LVM belonging to vg30, here it will just remove one path which is not accessible now)

However the unrecognized file system message means there were some logical corruption on the disk before the primary path completely went down.

HTH,
Devender
Impossible itself mentions "I m possible"