LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to vgsplit without loosing the data (https://www.linuxquestions.org/questions/linux-general-1/how-to-vgsplit-without-loosing-the-data-4175545480/)

rohitchauhan 06-16-2015 01:43 AM

how to vgsplit without loosing the data
 
Hi,

If I do the 'vgsplit', will I loose all the data saved in the LVs created on the VG (of which I have splitted) ? If yes, how can I not loose the data after vgsplit ?

My scenario:
pv1 -| |- lv00 -> mounted on /backup1 (and contains some data)
| - vg00 - |
pv2 -| |- lv01 -> mounted on /backup2 (and contains some data)

Now i want to split the VG so that LV00 and LV01 could have a separate PV and VG such as:
pv1 -> vg00 -> lv00
pv2 -> vg01 -> lv01

I was able to split the VG00 but then I was not able mount the LV00, LV01 and I also lost the data.

Any way to achieve this ?

I am using RHEL 5.6 !

Thanks.

syg00 06-16-2015 04:15 AM

"man lvm" will give you a list of commands. If supported back that far, start with pvmove to make sure the lvs are contained in the separate pv first.


All times are GMT -5. The time now is 12:16 PM.