<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I'm going to be moving a filesystem around, and was planning on
    using rsync to do it, so like to get some advice from those more
    experienced than I (both using rsync, and moving filesystems)...<br>
    <br>
    I currently have a system that has a separate /usr on an LVM
    partition.<br>
    <br>
    I want to merge this back into the / (root) filesystem.<br>
    <br>
    This is a production server (mail server, gentoo linux), so I'd
    really like to not brick this thing in the process.<br>
    <br>
    What would the best arguments to use for making sure that everything
    is preserved properly for a smooth transition?<br>
    <br>
    Some suggestions on the gentoo list have been:<br>
    <br>
    -a, or -axAHX, or -apogXx, or -PvasHAX
    <br>
    <br>
    or should I go with a combined -apogsvxAHPX ?<br>
    <br>
    Or is all that necessary? Would -a be all I need?<br>
    <br>
    Thanks for any comments/suggestions...<br>
    <br>
    ********** OT *********<br>
    <br>
    If anyone cares to comment on the steps I've settled on, I'd
    appreciate that too:<br>
    <br>
    1. Boot off of the latest gentoo LiveDVD
    <br>
    <br>
    2. Mount /<br>
    <br>
    mount <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>dev/sda3
      /mnt/gentoo<span class="moz-txt-tag">/</span></i>
    <br>
    <br>
    There should already be a /usr directory where it was being mounted
    before, right? If not, then I guess I create it with root:root 755
    permissions.<br>
    <br>
    3. Mount old /usr to be moved/merged
    <br>
    <br>
    vgscan
    <br>
    vgchange -a y
    <br>
    mount /dev/vg/usr /mnt/gentoo/oldusr
    <br>
    <br>
    4. Copy /oldusr to /usr
    <br>
    <br>
    rsync -a? <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>mnt/gentoo/oldusr<span
        class="moz-txt-tag">/</span></i> <i class="moz-txt-slash"><span
        class="moz-txt-tag">/</span>mnt/gentoo/usr<span
        class="moz-txt-tag">/</span></i>
    <br>
    <br>
    Are the trailing slashes required/important/necessary?
    <br>
    <br>
    Which arguments should I use?
    <br>
    <br>
    5. Edit /etc/fstab and comment/remove the /usr line
    <br>
    <br>
    nano -wc /mnt/gentoo/etc/fstab
    <br>
    <br>
    #/dev/vg/usr       /usr        reiserfs        noatime         0 0
    <br>
    <br>
    6. Unmount mounted filesystems
    <br>
    <br>
    umount /mnt/gentoo/oldusr
    <br>
    umount /mnt/gentoo
    <br>
    <br>
    7. Reboot into new system
    <br>
    <br>
    Done?
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <br>
      Best regards,<br>
      <br>
      <b><i>Charles</i></b></div>
  </body>
</html>