高远 <[email protected]> writes:
> I am considering migrate an existing Ubuntu system to use LVM2 as storage
> architecture. I was searching on the net for a couple of days but all
> results came to me says the way for "migrate" is to create a new LVM
> partition and move the data.
Yup.
> So I'm asking here if anyone knows the way to do the live migration, or, to
> convert a native partition to an LVM2 Physical Volume with same filesystem?
Nope. At least, not an easy way: like the MD software RAID stack, LVM needs a
few blocks of disk to store metadata identifying the volume group and logical
volumes.
So, if you just put LV metadata in place on the system you would be in trouble
because it would overwrite critical data.
Practically, to implement this in-place conversion would require that you move
the entire filesystem a few blocks forward on disk to allow the metadata at
the start of the disk ... so you have to copy every block anyhow.
Sorry,
Daniel
--
✣ Daniel Pittman ✉ [email protected] ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
Looking for work? Love Perl? In Melbourne, Australia? We are hiring.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html