1752815 Members
5857 Online
108789 Solutions
New Discussion юеВ

Re: PV error to vg

 
subodhbagade
Regular Advisor

PV error to vg

Hi Expert...

Need your help for following.

I having Hp-ux server ver 11.11 and sap application are running on it.

(1) on #vgdisplay -v /dev/lathstg it showing

couldn't query physical volume "/dev/dsk/c9t0d0" also pv /dev/lathstg/c9t0d1 , /dev/lathstg/c11t0d0 and /dev/lathstg/c11t0d1.

(2)on #ioscan -fnC disk it showing all pv (above mention also) also..

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/lathstg
/dev/dsk/c8t0d0
/dev/dsk/c9t0d0
/dev/dsk/c10t0d0
/dev/dsk/c11t0d0
/dev/dsk/c8t0d1
/dev/dsk/c9t0d1
/dev/dsk/c10t0d1
/dev/dsk/c11t0d1
/dev/vgignite
/dev/dsk/c3t6d0

(3) whenever i am trying
#vgcfgrestore -n /dev/lathstg /dev/rdsk/c9t0d0 it showing

vgcfgrestore: IO error on Physical Volume device /dev/rdsk/c9t0d0 also same result for remaining one mention in (1)

(A) pvdisplay /dev/dsk/c9t0d0

pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/lathstg"

(4) diskinfo /dev/rdsk/c9t0d0

SCSI describe of /dev/rdsk/c9t0d0:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 0 Kbytes
bytes per sector: 0

same result for all pv mention in (1)

(5)
should I need to deactivate vg or i should try this in single user mode ??
#vgchange -a n/y /dev/lathstg

(6)when i should do
#vgsync /dev/lathstg

or is there are any alternative to solve this issue.

Thanks in advance.
Subodh
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: PV error to vg

Hi:

Your disk is dead. See:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: PV error to vg

Hi,

See the size of the disk in diskinfo output. It is zero and it should not be.

SCSI describe of /dev/rdsk/c9t0d0:
vendor: DGC
product id: CX700WDR5
type: direct access
size: 0 Kbytes <<<<<
bytes per sector: 0


If shows 0 bytes size, then the disk is defective. Replace the disk and restore the lvm headers to it.
Best wishes,

Ganesh.
Grayh
Trusted Contributor

Re: PV error to vg

to conform...

check ioscan -fnC disk if it is showing claimed/not

Also check

diskinfo -v /dev/rdsk/cXtXdX
dd if=/dev/dsk/....... bs=512

echo "map selall info;wait infolog" | cstm --> check for read/write errors...

Torsten.
Acclaimed Contributor

Re: PV error to vg

The device looks to me like an array, so a single bad disk should not be a problem and transparent to the server, as long as isn't a raid0. I would start to check the array configuration and status.

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!   
Johnson Punniyalingam
Honored Contributor

Re: PV error to vg

Hi Subodh,

step1 :- insf -e
step2:- ioscan -fnC disk --> look for c9t0d0 disk claimed .?
step3:- vgdisplay -v /dev/lathstg | more --> output needed, if you see unaviable,

step4:- Check with dd command disk Bad or Good if the output retuns something like below , The Disk Good

dd if=/dev/dsk/c9tod0 of=/dev/null bs=1024k
50268+1 records in
50268+1 records out

If the disk Bad, You need check with your Calirion EMC Support Engineer,

or, mean while you try below

step 5:- vgcfgrestore -n /dev/lathstg /dev/rdsk/c9t0d0

vgchange -a y /dev/lathstg
vgsync /dev/lathstg
(if still not working You need look for replaced of the disk)

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
D Anand
New Member

Re: PV error to vg

Hi,

can you please check the syslog messages for "lbolt" messages.

It seems your harddisk is bad.

Please try dd comand as already mentioned by the replies.

Regards
Anand
subodhbagade
Regular Advisor

Re: PV error to vg

Hi ,,,,

I have attached the requested o/p , please Assist me.

(1)#ioscan -fnC disk ( it showing all disk are claimed.)

(2)#diskinfo -v /dev/rdsk/c9t0d0 ( it showing size as 0)

(3)dd if=/dev/rdsk/c9t0d0 of=/dev/null bs=1024k count=64 &

it showing 0+0 records in /out ,,,,also not showing any i/o error
Showing--- dd read error :No such device or add

(4)vgcfgrestore -n /dev/lathstg /dev/rdsk/c9t0d0

( Showing I/O error on pv)

(5)
can i try vgcfgrestore on active vg or i should try this after vg get deactivated ??????

i belive it should be try in single user mode ?????????


(6) In Syslog it not showing me "lbolt" messages .......

please refer attached o/p for more detail.


Thanks
Subodh.
Johnson Punniyalingam
Honored Contributor

Re: PV error to vg

Hi Subodh,

Your output shows you have used /dev/rdsk/c9t0d0 ........ in dd command ..

It should be /dev/dsk/c9t0d0

dd if=/dev/dsk/c9t0d0 of=/dev/null bs=128k
560057+1 records in
560057+1 records out
(You will Get smilar output like this , means the disk is ok)

And from the output you have also missing the c11t0d0 may alternative link

Once all the dd command output looks ok,
Than Proceed as below

vgcfgrestore -n /dev/lathstg /dev/rdsk/c9t0d0
vgcfgrestore -n /dev/lathstg /dev/rdsk/c11t0d0
vgchange -a y /dev/lathstg
vgsync /dev/lathstg
(No need to be in Single User Mode , You Can do it Multi-User Mode also Can)

Thanks,
Johnson


Problems are common to all, but attitude makes the difference
subodhbagade
Regular Advisor

Re: PV error to vg

Hi,
i have posted the o/p ....

(1 )# dd if=/dev/dsk/c9t0d0 of=/dev/null bs=128k

dd read error: No such device or address
0+0 records in
0+0 records out

(2)# dd if=/dev/dsk/c9t0d1 of=/dev/null bs=128k

dd read error: No such device or address
0+0 records in
0+0 records out

(3)# dd if=/dev/dsk/c11t0d0 of=/dev/null bs=128k

dd read error: No such device or address
0+0 records in
0+0 records out

(4)# dd if=/dev/dsk/c11t0d1 of=/dev/null bs=128k
dd read error: No such device or address
0+0 records in
0+0 records out


(5) vgcfgrestore -n /dev/lathstg /dev/rdsk/c9t0d0
vgcfgrestore: IO error on Physical Volume device /dev/rdsk/c9t0d0: #

(6)# vgcfgrestore -n /dev/lathstg /dev/rdsk/c11t0d0

vgcfgrestore: IO error on Physical Volume device /dev/rdsk/c11t0d0: #

vgcfgrestore not working.......


# lvdisplay -v /dev/lathstg/lvol11 |more

(showing status are current not showing it is stale,,,,,,)

lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t0d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t0d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t0d1":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t0d1":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.

(7) Is Disk is really going to bad ???


Subodh.