Re: Copying filesystems / logical volumes



While stranded on the hard shoulder of the information super highway cdwells@xxxxxxxxxxx typed:
Hi all,

I'm trying to determine the best way to copy entire filesystems. We're
using LVM and are migrating to new external storage. Our plan is to
add the new disks to the volume group (oraclevg) create new logical
volumes, mount them under /oracledata_new and /oracle_new, then copy
the data from /oracledata and /oracle to the newly created filesystems.
Both of these filesystems are separate logical volumes in oraclevg.
What is the most efficient way to do this? Is there way to copy the
contents of one logical volume to another, or from one filesystem to
another other than using just cp?

Any advice is much appreciated.

man dd

this is just one of the many uses for d(evice to)d(evice) copy
you should probably have both filesystems unmounted

rsync might to the job too, but I've never rsync'ed to the same machine.
--
Trog Woolley | trog at trogwoolley dot com
(A Croweater back residing in Pommie Land with Linux)
Isis Astarte Diana Hecate Demeter Kali Inanna
.



Relevant Pages

  • Re: making bootup fsck more user-friendly
    ... Its not that hard if you have a spare partition or just ... Its especially easy if you're using LVM. ... additional complexity to managing your filesystems. ... I would have thought that you'd only separate root part off would be: ...
    (Debian-User)
  • Re: LVM or not?
    ... There is no reason why you cannot make one 100MB RAID-1 device containging /boot, and one big RAID-1 device with the remaining space, setting the filesystem type to "physical volume (LVM)", then make your LVM with that to put swap and the other filesystems in. ... Partition scheme is more than an art and experience than exact science. ...
    (Fedora)
  • Re: Booting - Enterprise Volume Management System
    ... Looking at the HOWTO, it seems that LVM combines the main ... disadvantage of separate partitions - having to manually unmount and resize when ... Sadly, there are no filesystems out there, which support ...
    (Ubuntu)
  • Re: what is our answer to ZFS?
    ... > filesystems, and to have multiple adv filesystems using storage pool, ... And separate devices and LVM make that easier. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: LVM question
    ... > I created filesystems through LVM. ... You've extended the logical volume but not the file system. ... lvreduce, and resize2fs. ...
    (RedHat)