Operating System - HP-UX
1833759 Members
2423 Online
110063 Solutions
New Discussion

Couldn't stat physical volume "/dev/dsk/c1t2d0"

 
SOLVED
Go to solution
Mazen Al-Jarrah
Advisor

Couldn't stat physical volume "/dev/dsk/c1t2d0"

hello everyone,

I had a harddisk crash, and after replaycing the HD I'm getting this erroe message.

# vgscan -a
vgscan: The physical volume "/dev/dsk/c0t5d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c0t9d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c1t2d0":
Invalid argument


can anyone help

thanks
4 REPLIES 4
PVR
Valued Contributor

Re: Couldn't stat physical volume "/dev/dsk/c1t2d0"

Hi,
First of all you have to do
#vgchange -a n vgname
and reduce the crashed physical volume using # vgreduce VG name PV name(for details pls see the man page)

Then create LVm structures on new disks
#pvcreate /dev/rdsk/cXtXdX
then restore vg config
#vgcfgrestore /dev/vgname pvname

if you have any doubt psl give the output of lvmtab
#strings /etc/lvmtab
Don't give up. Try till success...
Rajesh G. Ghone
Regular Advisor
Solution

Re: Couldn't stat physical volume "/dev/dsk/c1t2d0"

Hi,

1)first of all confirm weather it is getting detected in ioscan.
#ioscan -fnC disk
2)check diskinfo showing proper value
#diskinfo /dev/rdsk/cXtXdX
3)if it is a new disk then give pvcreate command
#pvcreate -f /dev/rdsk/cXtXdX
4)then add it in a vg
#vgextend /dev/vgXX /dev/dsk/cXtXdX

Hope this works for u.

Regards,
Rajesh G.
Rajesh Ghone
Sunil Sharma_1
Honored Contributor

Re: Couldn't stat physical volume "/dev/dsk/c1t2d0"

Hi,

I just want to know how did you changed the faulty hard disk ?

best way is like this...
replace the hard disk and set the SCSI id same do device file will be same then do
#pvcreate
and
#vgcfgrestore on that disk

this situation you can move do like this
#mv /etc/lvmtab /etc/lvmtab.0501
#vgscan -v

it will create new lvmtab with appropriate entry.
Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Laszlo Pap
Occasional Advisor

Re: Couldn't stat physical volume "/dev/dsk/c1t2d0"

Hi Mazen,

it's no problem. The physical volume /dev/dsk/c1t2d0 is probably your CDROM drive.

Best regards,

Laszlo