About this list Date view Thread view Subject view Author view Attachment view

From: Roderick A. Anderson (raanders_at_acm.org)
Date: Wed 05 Nov 2003 - 20:34:48 GMT


I've been all over the wiki and web site looking for a solution but I'm
getting no place slowly.

We had a hard drive fail but was able to move the /vservers/* into a
working drive before replacing the bad drive. As this is a live system
I'd like to _not_ take the server down and do another copy t othe new
partition. I need to copy all the vservers (or one at a time) in
/vservers to /vserver.new so I can stop the vservers, change the mount
point, and restart them.
   I tried Herbert's dump/restore suggestion (FAQs) but have no experience
with dump/restore (spoiled by bru at an early age :-) and couldn't figure
out why it was failing the restore? Well some of it could be I'm using an
older version of dump (dump -v => dump 0.4b28) or my understand of the
example is wrong.
   I've tried both

        dump 0zf /mnt/vbackup/ref.dump /vservers/ref/
        dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}

the first works (but doesn't restore) and fails like this

        {/vservers.new}# restore -tf /mnt/vbackup/ref.dump ./ref
        Dump tape is compressed.
        Dump date: Wed Nov 5 11:25:02 2003
        Dumped from: the epoch
        Level 0 dump of /vservers (dir /ref) on
        web2.technologyservicesmanagementgroup.com:/dev/sda2
        Label: /var
        Read error while restoring <directory file - name unknown>

and the second dump fails like this.

        {/vservers}# dump 0zf /mnt/vbackup/ref.dump /vservers/{ref}
          DUMP: Date of this level 0 dump: Wed Nov 5 11:42:22 2003
          DUMP: Dumping /dev/sda2 (/vservers (dir /{ref})) to
        /mnt/vbackup/ref.dump
          DUMP: Added inode 8 to exclude list (journal inode)
          DUMP: Added inode 7 to exclude list (resize inode)
          DUMP: Label: /var
          DUMP: Compressing output at compression level 2 (zlib)
          DUMP: mapping (Pass I) [regular files]
          DUMP: File cannot be accessed (/vservers/{ref}).
          DUMP: The ENTIRE dump is aborted.

There have been a few threads on this list about using cp and other
options but I can't find them now. Vserver-copy doesn't seem to have the
ability (option) to copy from partition to partiotion on the same server.
I'm willing to damn the 'save space' option and worry about that later
just to get them onto the new drive/partition.

Any help for the slow-witted?

TIA,
Rod

-- 
  "Open Source Software - Sometimes you get more than you paid for..."

_______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 05 Nov 2003 - 20:15:47 GMT by hypermail 2.1.3