LVM on installed system in new hardware a problem?

Smoot Carl-Mitchell smoot at tic.com
Sun Jul 12 19:48:57 UTC 2009


On Sun, 2009-07-12 at 21:00 +0200, Joep L. Blom wrote:

> SIggy,
> Your memory is entirely correct.
> No, it is not sstriped as it is not a raid. Only a simple LVM as  I 
> thought - few years ago - that is was handy. It is not.
> Well, I think the only option is to make some room, hijack from another 
> system a keyboard and screen, and transfer the whole thing with ssh. I 
> don't think I can do dd over an ssh link?as that's the fastest way.

I do not think you want to do dd, since it is a block level copy.  You
want to logically copy the information from the volume to a new volume.
I would recommend using rsync.  It has the advantage of being
restartable after a network interruption.  You want to copy in archive
mode and also use the -a option along with the -H -A and -X options
which will preserve hardlinks, ACLs and extended ACLs.  Something like:

rsync -aHAX source_dir/ target:target_dir

If your source volume is on, say, /source on the local machine and your
target is on /target, on host "host" run:

rsync -aHAX /source/ host:/target

You will of course need to run this as root to preserve all the file
ownerships and permissions.
-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list