Operating System - HP-UX
1756578 Members
2830 Online
108848 Solutions
New Discussion юеВ

Error to reduce one disk in my VG

 
SOLVED
Go to solution
Harrison M Leal
Occasional Advisor

Error to reduce one disk in my VG

When i try remove one disk of my VG. the message is "vgreduce: Physical volume "/dev/dsk/c42t2d4" does not belong to volume group "/dev/sl3vgl39".
this is command vgreduce /dev/sl3vgl39 /dev/dsk/c42t2d4.

I run command pvdisplay -v /dev/dsk/c42t2d4 and see that i have one lost lvol , because i have "???" in status field
Harrison M Leal
10 REPLIES 10
Printaporn_1
Esteemed Contributor

Re: Error to reduce one disk in my VG

what is the result of

strings /etc/lvmtab
enjoy any little thing in my life
Harrison M Leal
Occasional Advisor

Re: Error to reduce one disk in my VG

/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/sl3vgl39
/dev/dsk/c42t1d4
/dev/dsk/c9t0d2
/dev/dsk/c9t0d3
/dev/dsk/c9t0d4
Harrison M Leal
Fabio Ettore
Honored Contributor

Re: Error to reduce one disk in my VG

Hi Harrison,

are you sure that /dev/dsk/c42t2d4 is correct? Into /etc/lvmtab it there isn't!
Then either it has already been removed or it doesn't exist.
Anyway '???' in status field means that physical volume/LUN had problems and cannot recognize on system.
Any messages in /var/adm/syslog/syslog.log about disk problems?

It sounds like an hw problem.

Best regards,
Ettore
WISH? IMPROVEMENT!
RAC_1
Honored Contributor

Re: Error to reduce one disk in my VG

You do not have that PV in /etc/lvmtab.

Missing pv can be removed from that vg.

vgreduce -f vgxx

Anil
There is no substitute to HARDWORK
Ashwani Kashyap
Honored Contributor

Re: Error to reduce one disk in my VG

The ghost disks can be removed by :
#vgreduce -f /dev/vg_name .

But first , backup your VG and lvmtab .
Harrison M Leal
Occasional Advisor

Re: Error to reduce one disk in my VG

The disk is c42t1d4

The new meesage is vgreduce: Physical volume "/dev/dsk/c42t1d4" could not be removed since some of its
physical extents are still in use. This message it occurs because i have one lost lvol with status "???"
Harrison M Leal
Ashwani Kashyap
Honored Contributor

Re: Error to reduce one disk in my VG

if none of the extents in the lost LV is used then remove the LV first with lvremove and then try to do the vgreduce .
Todd McDaniel_1
Honored Contributor

Re: Error to reduce one disk in my VG

Hopefully you have a good backup of this VG...

Okay, you will need to lvreduce the Lvol and remove any attachment to the disk involved.

lvreduce the lvols which reside on this disk and then you should be able to remove the disk from the VG without doing a vgscan.
Unix, the other white meat.
Sanjay_6
Honored Contributor
Solution

Re: Error to reduce one disk in my VG

Hi Harrison,

Try this link below on how to first get the lost lv back and then remove it using lvremove. Then do a vgreduce.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065011327

The ITRC doc id is KBRC00005706

Hope this helps.

Regds