[TriLUG] Ubuntu migration

Aaron Schrab aaron at schrab.com
Thu May 15 18:25:45 EDT 2008


At 15:22 -0400 15 May 2008, Owen <oberry at trilug.org> wrote:
>On Thu, May 15, 2008 at 02:55:00PM -0400, Alan Porter wrote:
>> And as always, look at /etc/fstab to make sure the entries look OK,
>> whether they are disk partition names (/dev/sda1) or UUID's.
>
>They're UUID's. How will that affect me? Wouldn't they need to be
>regenerated for the new drive. Suggestions?

No, they wouldn't need to be regenerated.  Those are ID's of the 
filesystem not the devices, so if you dd copy the block device the UUID 
will be copied too, and the fstab entry should continue to work without 
changes.

>2) I'm using LVM.
>
>I think the answer to both of these is to partition the new drive as I
>want it, including setting up logical partitions under LVM, and then
>copy each partition individually, instead of cloning the entire drive.

Since copying partition tables between even slightly different types of 
drives can get ugly I'd agree that it's better to copy individual 
partitions rather than the entire drive.

But, copying the entire physical volumes for LVM should work fine.  So 
if I were doing this, I'd skip doing the LVM setup on the new system and 
just let LVM find the logical volumes after the physical volume has been 
copied as a whole.  If the new physical volume is larger than the old 
one, you'll probably need to run pvresize after doing the copy.



More information about the TriLUG mailing list