Operating System - HP-UX
1825003 Members
2791 Online
109678 Solutions
New Discussion юеВ

LV's are not synced properly

 
SOLVED
Go to solution
Gurumanickam
Frequent Advisor

LV's are not synced properly

Hi All,

Logical volumes are not synced properly; I am getting the following error on vgdisplay command, how to resolve this problem Plese help me.





vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

--- Volume groups ---

VG Name /dev/vg01

VG Write Access read/write

VG Status available

Max LV 255

Cur LV 7

Open LV 7

Max PV 16

Cur PV 8

Act PV 7

Max PE per PV 8940

VGDA 14

PE Size (Mbytes) 32

Total PE 62573

Alloc PE 44302

Free PE 18271

Total PVG 2

Total Spare PVs 0

Total Spare PVs in use 0



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

--- Logical volumes ---

LV Name /dev/vg01/lvol1

LV Status available/stale

LV Size (Mbytes) 20480

Current LE 640

Allocated PE 1280

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol2

LV Status available/stale

LV Size (Mbytes) 20480

Current LE 640

Allocated PE 1280

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol3

LV Status available/stale

LV Size (Mbytes) 665824

Current LE 20807

Allocated PE 41614

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol4

LV Status available/stale

LV Size (Mbytes) 256

Current LE 8

Allocated PE 16

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol5

LV Status available/stale

LV Size (Mbytes) 256

Current LE 8

Allocated PE 16

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol6

LV Status available/stale

LV Size (Mbytes) 384

Current LE 12

Allocated PE 24

Used PV 7



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/vg01/lvol7

LV Status available/stale

LV Size (Mbytes) 102400

Current LE 3200

Allocated PE 6400

Used PV 7





--- Physical volumes ---

PV Name /dev/dsk/c5t0d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2609

Autoswitch On



PV Name /dev/dsk/c5t1d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2610

Autoswitch On



PV Name /dev/dsk/c5t2d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2611

Autoswitch On



PV Name /dev/dsk/c5t3d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2611

Autoswitch On



PV Name /dev/dsk/c8t0d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2609

Autoswitch On



PV Name /dev/dsk/c8t1d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2610

Autoswitch On



PV Name /dev/dsk/c8t3d0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

PV Status available

Total PE 8939

Free PE 2611

Autoswitch On





--- Physical volume groups ---

PVG Name PVG0

PV Name /dev/dsk/c5t0d0

PV Name /dev/dsk/c5t1d0

PV Name /dev/dsk/c5t2d0

PV Name /dev/dsk/c5t3d0



PVG Name PVG1

PV Name /dev/dsk/c8t0d0

PV Name /dev/dsk/c8t1d0

PV Name /dev/dsk/c8t2d0

PV Name /dev/dsk/c8t3d0



Be an expert
8 REPLIES 8
Mridul Shrivastava
Honored Contributor

Re: LV's are not synced properly

Hi Guru,

I suspect that c8t2d0 is no longer available and gone bad.. You have to get it replaced .. Since pvdisplay is also not able to query the disk and all the LVs are showing as stale.

Could you please check the ioscan -fnCdisk o/p and check the status of c8t2d0, is it NO_HW ?

Do check /var/adm/syslog/syslog.log and /var/opt/resmon/log/event.log for any lbolt/disk failures.....

Another sceanrio could be that this disk was replaced and vgcfgrestore was not done, if this is the case and you have a valid vgcfgbackup then go ahead and restore the vg configuration.

Revert back if this doesnot resolve the issue...
Time has a wonderful way of weeding out the trivial
Gurumanickam
Frequent Advisor

Re: LV's are not synced properly

Thanks for the reply,

I have checked the ioscan o/p its claimed for all hdd, what might be the issue, find the event log
Be an expert
Mridul Shrivastava
Honored Contributor

Re: LV's are not synced properly

There is no critical errors for the disk as such in the event.log.
Could you please check the output of the
diskinfo /dev/dsk/c8t2d0
pvdisplay /dev/dsk/c8t2d0

There is a possibility that some one has run pvcreate accidently on this disk and its LVM header information is lost. That is the reason LVM is not able to find the VG information and unalbe to query.

If you have a valid vgcfgbackup under /etc/lvmconf then can try restoring it on this disk using the following
vgcfgrestore -n vg01 /dev/rdsk/c8t2d0

Since this is PVG strict and distributed then last way out would be to backup the data and recreate the VG, else it may be very time consuming to recreate the old setup.
Time has a wonderful way of weeding out the trivial
itai weisman
Super Advisor

Re: LV's are not synced properly

if this specified ctd does not correspond to physical volume attached to this volume group
as you said, try to reduce it from the vg by
#vgreduce -l vg_name pv_path
I used to see these messages when using EMC powerpath or other multipathing utilities, that might changes volumes ctd's.
Arun michael
New Member

Re: LV's are not synced properly

Dear Guru,

1.Try 'diskinfo' command.If the size shows zero then the disk is malfunctioning..

2.U can try 'dd' command also
For example, the following shows a successful read of the first 64 megabytes of the disk:
# dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k count=64
64+0 records in
64+0 records out
The following shows an unsuccessful read of the whole disk:
# dd if=/dev/rdsk/c1t3d0 of=/dev/null bs=1024k
dd read error: I/O error
0+0 records in 0+0 records out

Thanx & regards;
Arun


Ganesh Balraman
Regular Advisor

Re: LV's are not synced properly

Dear Sir,

Pls confirm ,

1.diskinfo
2.dd
3.ioscan ( Shoul show S/w State as Claimed).

If one of the output shows any errors replce the disk , otherwise restore vg and activte it.

1.vgcfgrestore
2.vgchange
3.vgsync.

Regds
B.Ganesh
Gurumanickam
Frequent Advisor

Re: LV's are not synced properly

hi all,

pvdisplay, dd, diskinfo are giving I/O errors. On ioscan -fnC disk output, the disk /dev/dsk/c8t2d0 is not at all detected, we have got new disk.
i'm going to replace that. One more thing i don't have much idea about physical volume group. As my disks are in the physical volume group i have little confusion on the procedure.Can any body send me the procedure to replace the HDD on my setup.
Be an expert
ArvindMenon
Advisor
Solution

Re: LV's are not synced properly