LVM and VxVM

Re: Remove reduce mirror and remove pv from vg after rmsf of pv

 
ahlan
Advisor

Remove reduce mirror and remove pv from vg after rmsf of pv

Hi all,

OK I created this problem myself so need your assistance to clear this problem.

Basically, I did a rmsf of a disk before reducing its mirror and removing it from the vg.

So I'm now getting the following error on vgdisplay.

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d1":
The specified path does not correspond to physical volume attached to
this volume group

I tried lvreduce -m 1 /dev/vg01/lvol1 /dev/dsk/c1t0d1 but am getting an error stating that it cannot find the PV. Anyway I can reduce the lv and remove the PV from the VG?
4 REPLIES 4
Shibin_2
Honored Contributor

Re: Remove reduce mirror and remove pv from vg after rmsf of pv

How many mirrors in that LV ? 1 or 2 ?

If 1, then try to use lvreduce -m 0

Btw, if you haven't had any addition to your hardware try your luck by doing insf -eH

Regards
Shibin
ahlan
Advisor

Re: Remove reduce mirror and remove pv from vg after rmsf of pv

How many mirrors in that LV ? 1 or 2 ?

If 1, then try to use lvreduce -m 0

Btw, if you haven't had any addition to your hardware try your luck by doing insf -eH

Hi Shibin,

There are 2 mirrors for this lvol. I have tried lvreduce but the error states that the physical disk is not accessible.

I cannot get the old disk back as they have been removed and destroyed.
Viktor Balogh
Honored Contributor

Re: Remove reduce mirror and remove pv from vg after rmsf of pv

> I cannot get the old disk back as they have been removed and destroyed.

try "insf -e -C disk" to re-create those device files.
****
Unix operates with beer.
madhuchakkaravarthy
Trusted Contributor

Re: Remove reduce mirror and remove pv from vg after rmsf of pv

hi

try this

lvdisplay -v -k /dev/vgnn/lvoln

u will get a key for that corrupted pv

lvreduce -m 0 -A n -k /dev/vgname/lvname key


regards

MC