1834903 Members
2621 Online
110071 Solutions
New Discussion

trying to reduce mirror

 
david d_2
Frequent Advisor

trying to reduce mirror

Trying to reduce a mirror and I am stuck half way through it. Follows is the output of the lvdisplay.

lvdisplay -v -k /dev/oravg04a/lv04aoravg04a |more
--- Logical volumes ---
LV Name /dev/oravg04a/lv04aoravg04a
VG Name /dev/oravg04a
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17352
Current LE 4338
Allocated PE 4338
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c11t1d0 4338 4338

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 1 00000 current 0 00000 current
00001 1 00001 current 0 00000 current
00002 1 00002 current 0 00000 current
00003 1 00003 current 0 00000 current
00004 1 00004 current 0 00000 current

Output of lvreduce:

lvreduce -m 0 /dev/oravg04a/lv04aoravg04a /dev/dsk/c10t10d0
lvreduce: Physical volume "/dev/dsk/c10t10d0" does not belong
to volume group "/dev/oravg04a".
Logical volume "/dev/oravg04a/lv04aoravg04a" is not reduced.

Any ideas on how I can force this?

Dave
16 REPLIES 16
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

If this disk does not belong to the VG you cannot remove the mirror from this disk - it is simply not there - no way to "force" anything.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

This stems from a faulty disk that was replaced. When I tried to resync it, it failed and after several failed attempts to clean it up I vgreduced the drive out of the VG and this is the output of that.
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

Based on everything I have seen so far I think most LVM problems are created by users trying to "fix" anything.

What did you "fix"?

(detailed steps, please)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

Steps taken,

Disk failed
lvreduce to remove drive from mirror
lvreduce hung and couldn't kill process
Replaced disk
vgcfgrestore
vgsync failed see the other thread posted yesterday
After several attempts to sync and re lvreduce I ran vgreduce and this is where I am at.
AwadheshPandey
Honored Contributor

Re: trying to reduce mirror

can you paste vgdisplay -v oravg04a o/p
with lvdisplay -v /dev/oravg04a/lv04aoravg04a once again.
It's kind of fun to do the impossible
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

... and also

# strings /etc/lvmtab
# strings /etc/lvmpvg
# uname -a

please.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

OK here you go:
vgdisplay -v oravg04a
Information in "/etc/lvmtab" differs from that in "/etc/lvmpvg".
VG "/dev/oravg04" is not defined in file "/etc/lvmtab".
--- Volume groups ---
VG Name /dev/oravg04a
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4342
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4338
Free PE 2
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/oravg04a/lv04aoravg04a
LV Status available/syncd
LV Size (Mbytes) 17352
Current LE 4338
Allocated PE 4338
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c11t1d0
PV Status available
Total PE 4340
Free PE 2
Autoswitch On


(n4:root)$ lvdisplay -v /dev/oravg04a/lv04aoravg04a |more
--- Logical volumes ---
LV Name /dev/oravg04a/lv04aoravg04a
VG Name /dev/oravg04a
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17352
Current LE 4338
Allocated PE 4338
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c11t1d0 4338 4338

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c11t1d0 00000 current ??? 00000 current
00001 /dev/dsk/c11t1d0 00001 current ??? 00000 current

(n4:root)$ strings /etc/lvmtab
/dev/vg01
%sd[C
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
/dev/vg00
%sd[9$>T
/dev/dsk/c1t6d0
/dev/dsk/c2t6d0
/dev/oravg14
%sd[?g
/dev/dsk/c10t0d0
/dev/dsk/c11t8d0

/dev/oravg04a
%sd[=
/dev/dsk/c11t1d0

(n4:root)$ strings /etc/lvmpvg
VG /dev/oravg04
PVG oravg04-2
/dev/dsk/c10t8d0
PVG oravg04-1
/dev/dsk/c11t0d0
(n4:root)$

(n4:root)$ uname -a
HP-UX n4 B.11.00 U 9000/800 628319323 unlimited-user license


Thanks for your help
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

You have created a wonderful mess

"Information in "/etc/lvmtab" differs from that in "/etc/lvmpvg".
VG "/dev/oravg04" is not defined in file "/etc/lvmtab"."

But you have a "/dev/oravg04a" - why?

lvdisplay says data is only on 1 disk, but also says 1 mirror copy (this isn't true).



How exactly did you remove the disk from the VG or even the whole VG???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

Just to add this:

On a well patched system there must be NOTHING reduced in order to change a disk ... doing this anyway will create situations like yours.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

Please explain what you did why

/dev/oravg04

is now

/dev/oravg04a ?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

Torsten,

Yes, I have created a great mess, unfortunally I inherited this system recently and did not get a chance to patch it.

VG /dev/oravg04a is in lvmtab if you look at the bottom of the strings output.

Not sure what happened to oravg04 that happened prior to me getting the box.

Where to go from here is the question?
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

Somehow (!!!) someone changed /dev/oravg04 to /dev/oravg04a.

Let's try this first:

# vgscan -p -v

What do you get?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

VG oravg04 was removed and is no longer used, looks like there are some pieces still left over.
here is the output you requested: Looks liek I have a couple other issues to deal with.

(n4:root)$ vgscan -p -v
vgscan: Warning: couldn't query physical volume "/dev/dsk/c10t8d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query physical volume "/dev/dsk/c11t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/orabunmvg".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/oravg04".
vgscan: The physical volume "/dev/dsk/c0t1d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c0t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t3d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t9d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t11d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t12d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c10t13d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t1d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t9d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c5t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t1d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t9d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t1d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t3d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t11d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c11t13d0" is already recorded in the "/etc/lvmtab" file.
Current path "/dev/dsk/c13t0d0" is an alternate link, skip.
Current path "/dev/dsk/c13t1d0" is an alternate link, skip.
Current path "/dev/dsk/c13t2d0" is an alternate link, skip.
Current path "/dev/dsk/c13t8d0" is an alternate link, skip.
Current path "/dev/dsk/c13t9d0" is an alternate link, skip.
Current path "/dev/dsk/c13t10d0" is an alternate link, skip.
Physical Volume "/dev/dsk/c0t9d0" contains no LVM information
Physical Volume "/dev/dsk/c0t10d0" contains no LVM information
Physical Volume "/dev/dsk/c0t11d0" contains no LVM information
Physical Volume "/dev/dsk/c10t2d0" contains no LVM information
Physical Volume "/dev/dsk/c12t2d0" contains no LVM information

vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/orabunmvg failed.


/dev/vg01
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0



/dev/vg00
/dev/dsk/c1t6d0
/dev/dsk/c2t6d0



/dev/oravg14
/dev/dsk/c10t0d0
/dev/dsk/c11t8d0



/dev/oravg11
/dev/dsk/c10t3d0
/dev/dsk/c11t11d0



/dev/appvg00
/dev/dsk/c10t8d0
/dev/dsk/c11t0d0



/dev/oravg05
/dev/dsk/c10t9d0
/dev/dsk/c11t13d0



/dev/oravg12
/dev/dsk/c10t11d0
/dev/dsk/c11t3d0



/dev/oravg01a
/dev/dsk/c10t12d0
/dev/dsk/c11t2d0



/dev/oraarch2
/dev/dsk/c10t13d0
/dev/dsk/c11t10d0



/dev/oravg02
/dev/dsk/c5t0d0
/dev/dsk/c5t1d0
/dev/dsk/c13t0d0
/dev/dsk/c13t1d0



/dev/oravg01
/dev/dsk/c5t2d0
/dev/dsk/c5t8d0
/dev/dsk/c5t9d0
/dev/dsk/c5t10d0
/dev/dsk/c13t2d0
/dev/dsk/c13t8d0
/dev/dsk/c13t9d0
/dev/dsk/c13t10d0



/dev/oravg04a
/dev/dsk/c11t1d0


The Volume Group /dev/oravg04 was not matched with any Physical Volumes.
Torsten.
Acclaimed Contributor

Re: trying to reduce mirror

You said in

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1281684

you have another problem with this config.

Details please?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
david d_2
Frequent Advisor

Re: trying to reduce mirror

Per Torsten request I have updated this thread.
I have 2 seperate issues with this server.
1. VG oravg04a mirror will not sync up all the details are above.
2. VG oravg04 is a live VG but for some reason /etc/lvmtab no longer knows about it.

thoughts?
david d_2
Frequent Advisor

Re: trying to reduce mirror

Strangely enough I was able to resolve my issue by using SAM. For some reason the command line just wasn't cutting it.

Thanks for all who offered assistance.