On Feb 12, 2009, at 9:26 AM, Jack Woehr wrote:

Scully, William P wrote:
Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?

The classic one is to boot off cd and move stuff.

If you are booted to a ramdisk and have one file system (e.g., the
real
hardddrive root file system) mounted as /old and the new
filesystem mounted as /new then in the Bourne shell or bash you can do
something like:

$ cd /old; tar cf - . | (cd /new; tar xf -)

If you're on a Linux box, though, "cp -a" does a fine job of
preserving file permissions and symlinks and so forth and you don't
need the tar.

In general, you can just mount the new filesystem, and then do cp -ax
(stay on the same filesystem) for each one you want to copy.

The tricky part is, things like databases need to be quiesced first,
so you don't end up with inconsistent files, and you don't get a point
in time copy.  Hence the recommendation for booting from CD/to single-
user mode and doing it that way.

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to