1753408 Members
7424 Online
108793 Solutions
New Discussion

Pvmove is online

 
rescuehp17
Frequent Advisor

Re: Pvmove is online

Thank you so much, Torsten.

How to create the PVG1? This got confused me.

# pvcreate /dev/rdisk/disk5
# vgextend vg01 /dev/disk/disk5
# lvextend -m 1 /dev/vg01/lvol1 PVG1

Torsten.
Acclaimed Contributor

Re: Pvmove is online

Please read my previous post again, I added a line for clarification


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!   
rescuehp17
Frequent Advisor

Re: Pvmove is online

Thank you and steps completed until mirroring part. how to remove the old disks?

rescuehp17
Frequent Advisor

Re: Pvmove is online

Mirroring:

# lvextend -m 1 /dev/vgother/lvoracle pvg2

After mirroring, to remove old disks:

# lvreduce -m 0 /dev/vgname/lvname pvg1

Correct?

rescuehp17
Frequent Advisor

Re: Pvmove is online

@/root> lvreduce -m 0 /dev/vgoracle/lvoracle pvg1 ==> this didn't work


@/root> for i in 33 34 35 36 37 38 39 40 41 42 43; do lvreduce -m 0 /dev/vgoracle/lvoracle /dev/disk/disk$i; done
Logical volume "/dev/vgoracle/lvoracle" has been successfully reduced.
Volume Group configuration for /dev/vgoracle has been saved in /etc/lvmconf/vgoracle.conf
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
therefore no mirrors are removed.
@/root> lvdisplay -v /dev/vgoracle/lvoracle|more
--- Logical volumes ---
LV Name /dev/vgoracle/lvoracle
VG Name /dev/vgoracle
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20416
Current LE 638
Allocated PE 638
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk34 58 58
/dev/disk/disk35 58 58
/dev/disk/disk36 58 58
/dev/disk/disk37 58 58
/dev/disk/disk38 58 58
/dev/disk/disk39 58 58
/dev/disk/disk40 58 58
/dev/disk/disk41 58 58
/dev/disk/disk42 58 58
/dev/disk/disk43 58 58
/dev/disk/disk140 58 58

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/disk/disk140 00000 current
00001 /dev/disk/disk34 00178 current
00002 /dev/disk/disk35 00178 current
00003 /dev/disk/disk36 00178 current
00004 /dev/disk/disk37 00178 current
00005 /dev/disk/disk38 00178 current
00006 /dev/disk/disk39 00178 current
00007 /dev/disk/disk40 00178 current
00008 /dev/disk/disk41 00178 current
00009 /dev/disk/disk42 00178 current
00010 /dev/disk/disk43 00178 current
00011 /dev/disk/disk140 00011 current
00012 /dev/disk/disk34 00179 current
00013 /dev/disk/disk35 00179 current
00014 /dev/disk/disk36 00179 current
00015 /dev/disk/disk37 00179 current
00016 /dev/disk/disk38 00179 current
00017 /dev/disk/disk39 00179 current
00018 /dev/disk/disk40 00179 current
00019 /dev/disk/disk41 00179 current
00020 /dev/disk/disk42 00179 current
00021 /dev/disk/disk43 00179 current
00022 /dev/disk/disk140 00022 current
00023 /dev/disk/disk34 00180 current
00024 /dev/disk/disk35 00180 current
@/root> lvextend -m 1 /dev/vgoracle/lvoracle pvg2
LVM: Unable to map all the LEs to unique PEs.
lvextend: The LVM device driver could not extend the
logical volume "/dev/vgoracle/lvoracle".
@/root>

Goal is, to move everything to disk140

Torsten.
Acclaimed Contributor

Re: Pvmove is online

did you extend the lvol size???

there is data on the new disk, but no mirror at all!

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!   
rescuehp17
Frequent Advisor

Re: Pvmove is online

Fixed that issue. Turned off the PVG-strict and that worked.

But now, how to remove the disks33 to disk43? Want all the data only on one disk, which is disk140

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk33 163 163
/dev/disk/disk34 144 153
/dev/disk/disk35 145 153
/dev/disk/disk36 144 153
/dev/disk/disk37 145 153
/dev/disk/disk38 144 153
/dev/disk/disk39 58 58
/dev/disk/disk40 58 58
/dev/disk/disk41 58 58
/dev/disk/disk42 58 58
/dev/disk/disk43 58 58
/dev/disk/disk140 58 58

 

 

Torsten.
Acclaimed Contributor

Re: Pvmove is online

>> Turned off the PVG-strict and that worked.

What worked?

Not sure what exactly you did now.

How about a lvdisplay -v ...now?

And first lines of a pvdisplay -v ... too, 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!   
rescuehp17
Frequent Advisor

Re: Pvmove is online

Was able to mirror once I turn on the pvg-strict

Torsten.
Acclaimed Contributor

Re: Pvmove is online

pvg-strict means the original is in group1, mirror copy in group2.
without the mirror copy is anywhere in free space ... not on the disk you want!

depending on your settings the copy may be on the same disk - kind of useless.

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!