[CentOS] replace x86 with x64 system and reuse existing LVM
Kai Schaetzl
maillists at conactive.com
Tue Jan 18 17:22:23 UTC 2011
I've done this now and the procedure is fairly easy and very safe. I did a
test run with VMs first, of course.
You don't need to vgchange/vgexport etc. These changes do not carry over,
anyway. A new system will find all volumes and make them active. But this
doesn't matter.
For a kickstart installation you simply change the previously used disk
config lines a bit, like this:
partition /boot --fstype ext3 --onpart=sda1
partition pv.2 --onpart=sda2
volgroup dom0 --noformat pv.2
logvol swap --name=swap --vgname=dom0 --noformat
logvol / --fstype ext3 --name=root --vgname=dom0 --useexisting
This reuses sda1 for /boot, sda2 for the volume group, an lv swap for swap
without a reformat and an lv root for /, reformatting it. For an
installation on real partitions only you use only the --onpart command.
Hope this helps someone in the future.
Kai
--
Get your web at Conactive Internet Services: http://www.conactive.com
More information about the CentOS
mailing list