1753524 Members
5304 Online
108795 Solutions
New Discussion юеВ

Unable to do pvcreate

 
Daniel Lawrence
Occasional Advisor

Unable to do pvcreate

Hello,

I am decommissioning an old HP system the model is: 9000/869/K420, and want to run make recovery on the system but I get this error:
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group


This is the output of ioscan -fnkC disk:
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 10/0.5.0 sdisk CLAIMED DEVICE DGC C2300WDR1
/dev/dsk/c2t5d0 /dev/rdsk/c2t5d0
disk 1 10/0.5.1 sdisk CLAIMED DEVICE DGC C2300WDR1
/dev/dsk/c2t5d1 /dev/rdsk/c2t5d1
disk 2 10/0.5.2 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d2 /dev/rdsk/c2t5d2
disk 3 10/0.5.3 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d3 /dev/rdsk/c2t5d3
disk 4 10/0.5.4 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d4 /dev/rdsk/c2t5d4
disk 10 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c5t2d0 /dev/rdsk/c5t2d0

And /etc/lvmtab output:
/dev/vg00
/dev/dsk/c2t5d0
/dev/dsk/c2t5d1
/dev/dsk/c4t5d0
/dev/dsk/c4t5d1
/dev/vg03
9As}
/dev/dsk/c2t5d4
/dev/dsk/c4t5d4
/dev/dsk/c4t5d3
/dev/dsk/c2t5d3
/dev/dsk/c2t5d2
/dev/dsk/c4t5d2

It looks like "/dev/dsk/c4t5d0" does not exist, so I tried pvcreate -f /dev/rdsk/c4t5d0 and received the following error:
pvcreate: Couldn't open physical volume "/dev/rdsk/c4t5d0":
No such device or address

Please help, I would really appreciate a fast reply. Thx.
7 REPLIES 7
Thierry Poels_1
Honored Contributor

Re: Unable to do pvcreate

hi,

mirrored disks have probably been removed, or a SCSI-card/cable.

You can get rid of this old disks with "vgreduce -f vg03". But check lvols first, you might have to lvreduce first.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Hoang Chi Cong_1
Honored Contributor

Re: Unable to do pvcreate

Hi Mark Palmer

First, you need to check vg00 :
#vgdisplay -v /dev/vg00

And check for the physical volumes.
What is the out put?

Then try to use this command:
#vgscan -a
and your system will scan again all of the physical volumes that you have.
Check again for /etc/lvmtab file.

Post again...
Goodluck
Regard,
HoangChiCong
Looking for a special chance.......
Hoang Chi Cong_1
Honored Contributor

Re: Unable to do pvcreate

You can not use pvcreate because the physical disk "/dev/dsk/c4t5d0" do not list when using ioscan command.
Please check again with ioscan -fnC disk command. DO NOT use with "k" option...(because with "k" option, it just show kernel structures, don't scan hardware)
Regard,
HoangChiCong
Looking for a special chance.......
Daniel Lawrence
Occasional Advisor

Re: Unable to do pvcreate

Hi HoangChiCong,

This is the out requested:
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 10/0.5.0 sdisk CLAIMED DEVICE DGC C2300WDR1
/dev/dsk/c2t5d0 /dev/rdsk/c2t5d0
disk 1 10/0.5.1 sdisk CLAIMED DEVICE DGC C2300WDR1
/dev/dsk/c2t5d1 /dev/rdsk/c2t5d1
disk 2 10/0.5.2 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d2 /dev/rdsk/c2t5d2
disk 3 10/0.5.3 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d3 /dev/rdsk/c2t5d3
disk 4 10/0.5.4 sdisk CLAIMED DEVICE DGC C2300WDR5
/dev/dsk/c2t5d4 /dev/rdsk/c2t5d4
disk 10 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c5t2d0 /dev/rdsk/c5t2d0

# vgscan -a
vgscan: The physical volume "/dev/dsk/c2t5d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t5d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t5d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t5d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t5d4" is already recorded in the "/etc/lvmtab" file.
Physical Volume "/dev/dsk/c5t2d0" contains no LVM information

The vgdisplay output can is in the attached txt file.
What can you tell by this? I still don't understand why these errors occurs.
Hoang Chi Cong_1
Honored Contributor

Re: Unable to do pvcreate

Wao......
I think one of the internal disk was failure....
Need to check the hardware...
Do you know Support Tool for HP-UX?
You can check with stm or cstm to check the hardware status.
It is better when use stm in Xwindows.
Your system is still running because vg00 was mirrored.

Please show me the result.
Thanks
Regard,
HoangChiCong
Looking for a special chance.......
Thierry Poels_1
Honored Contributor

Re: Unable to do pvcreate

BTW : you'll need to (re)move the /etc/lvmtab file to rebuild it with "vgscan -a".
(best is to move it so that you can put it back if things go wrong.)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Daniel Lawrence
Occasional Advisor

Re: Unable to do pvcreate

Thanks Thierry vgscan really helped, but the kernel also has a copy of it so will need to do more changes to make it work. I've almost got it to work now.