1834454 Members
2336 Online
110067 Solutions
New Discussion

lvsplit

 
SOLVED
Go to solution
P.V.Ramesh
Advisor

lvsplit

Hi

I have Mirrored disk. I want split a volume lvol1 using the above. When i use the above i have received the following error.

vsplit -g pvg1 /dev/vg00/lvol5
lvsplit: There aren't enough mirrors to make a split copy: /dev/vg00/lvol5
Error detected when reading from file "/etc/lvmpvg".


Note: - I would like to know what is physical volume group. I have randomly mentioned that name.

I have successed using

lvsplit -s hbkp /dev/vg00/lvol5
Logical volume "/dev/vg00/lvol5hbkp" has been successfully created with
character device "/dev/vg00/rlvol5hbkp".
Logical volume "/dev/vg00/lvol5" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

My questions are with -g option what i have to specify.
Let me know how to use lvmerge command.
Is lvsplit requires any empty space required on vg. In this case vg00.

Note : - I have mirrored all volumes in this vg00.

Can anybody help on this.
2 REPLIES 2
Ray Brewer
Valued Contributor
Solution

Re: lvsplit

TO use lvsplit you do not have to use the "-g" option. By simply typing

lvsplit /dev/vg00/

LVM will automatically split the LV. This does not require any additional space. What LVM does is creates a new LV and adds a "b" to the end of the LV name. You can slecify something other than "b" by using the "-s" option. For example after doing

lvsplit /dev/vg00/lvol1

you will have two LV's in vg00, one with the name "lvol1" and one with the name "lvol1b". The new LV is mountable at this point if you need. To merge them back together you would issue the command

lvmerger /dev/vg00/lvol1b /dev/vg00/lvol1
Ray Brewer
Valued Contributor

Re: lvsplit

One other note on the "-g" option, you can only use this if the Volume Group was initially set up by designating a Physical Volume Group. If you have not done this then ignore the "-g" option in lvsplit.