[linux-lvm] lvm'ing root fs

Torsten Landschoff torsten at pclab.ifg.uni-kiel.de
Tue Apr 11 05:24:15 UTC 2000


On Mon, Apr 10, 2000 at 09:21:32PM -0700, Peter C. Norton wrote:
> Looking at that a second time, you may be better off adding the "-type f"
> flag to find so you don't include /usr, etc.
> 
> On Mon, Apr 10, 2000 at 08:43:58PM -0700, Peter C. Norton wrote:
> > You may want to do the following:
> > 
> > cd /; find . -xdev -print | xargs tar -cf - | (cd /mnt/root_vg; tar -xf -)

If you want to use tar the easiest way is to use is probably in the Tips-HOWTO:

2.6.  Moving directories between filesystems. Alan Cox, A.Cox at swansea.ac.uk 

    Quick way to move an entire tree of files from one disk to another

   (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp -)

HTH

	Torsten



More information about the linux-lvm mailing list