Operating System - HP-UX
1834449 Members
2225 Online
110067 Solutions
New Discussion

how to remove the PV from "/etc/lvmtab"

 
Rambo_1
Regular Advisor

how to remove the PV from "/etc/lvmtab"

Hi,
One PV in mirror(vg00) has failed.
vgdisplay -v vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t6d0":
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/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4374
Alloc PE 3127
Free PE 1247
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t6d0":
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/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 25
Allocated PE 25
Used PV 1

....

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t6d0":
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/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 25
Allocated PE 25
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t6d0":
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 4374
Free PE 1247
Autoswitch On

I lvreduce the LV on mirror PV first.And then ran #vgreduce /dev/vg00 /dev/dsk/c3t0d6 ,but didn't work :
/dev/dsk/c3t0d6 still in /etc/lvmtab.
The Cur PV is "1", and Act PV also is "1". I think it's the problem why I can't reduce PV . but use what command to reduce PV ?
Thanks for your help !

BR
13 REPLIES 13
Arunvijai_4
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=901910
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=895051

It says, # vgreduce -f /dev/vg00

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Robert-Jan Goossens
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

RAC_1
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

mv /etc/lvmtab /etc/lvmtab.old
vgscan -av
There is no substitute to HARDWORK
Rambo_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

vgreduce -f /dev/vg00 still can't reduce the c3t0d6 .
KapilRaj
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

have you lvreduced all the lv's ?
Nothing is impossible
Rambo_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

can I only vgscan the vg00 with #vgscan ?
I am afraid this command may change sth .

thanks for your help .

BR
Rambo_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

Yes,I have reduced all mirror_lv on c3t0d6.
Rambo_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

sorry ,no c3t0d6 ,is c3t6d0 .
Nguyen Anh Tien
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

Hi. I faced with this problem many times.
1. backup current /etc/lvmtab
#mv /etc/lvmtab /etc/lvmtab.bak
2. scan new config file
#vgscan
this step will update new /etc/lvmtab file
3. reduce pv
#vgreduce -f /dev/vg00
note: -f option is very importance.You want to know more for this option pls issue
#man vgreduce...
HTH
tienna
HP is simple
Ermin Borovac
Honored Contributor

Re: how to remove the PV from "/etc/lvmtab"

Try vgreduce with option -l (el). It should remove /dev/dsk/c3t0d6 from lvmtab.

# vgreduce -l /dev/vg00 /dev/dsk/c3t0d6
Nemer_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

Hi,

what is the output of diskinfo /dev/rdsk/c3t6d0??
ioscan -fnCdisk?

do you physically remove the disk module?

Regards,
GGA
Trusted Contributor

Re: how to remove the PV from "/etc/lvmtab"

hello

if u are mv /etc/lvmtab to /etc/lvmtab.save

u have any problem, vgscan does only create a new lvmtab, compare after vgscan the new and the old lvmtab ...
i have done this anytime
regards gga
Rambo_1
Regular Advisor

Re: how to remove the PV from "/etc/lvmtab"

Thanks for everyone.

The disk still there.

I will try these according to the suggests.

#vgreduce -l /dev/vg00 /dev/dsk/c3t6d0

BR