Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: rcress@xxxxxxxxxx
- Date: 11 Oct 2006 18:54:36 -0700
Tried seemingly everything now - no change
This is what I did:
reformat my USB disk with ext2 filesystem
boot into systemrescuecd
mount logical volume groups read-only, mounted usb drive
did the dump to the usb drive - LOTS of messages about ACL properties
not being backed up (I think this has to do with SELinux related stuff
on FC4) - 60GB file created
rebooted, repeated the restore procedure - same thing, hangs on
"extract".
Maybe incompatible versions of dump and restore? (dump from the live
CD, restore from FC4).
I'll try the restore offline (ie from the live CD)
rcress@xxxxxxxxxx wrote:
Thanks Jerry - good to know I'm not doing something that is never going
to work!
I've managed to get to a point where I can mount the root filesystem
readonly - hopefully a full backup with dump will now be restorable. If
it doesn't work I'll follow your suggestion and format the drive and
dump to a file (might do that anyway - but I'd like to see if this way
works too).
FYI - this is what I've done (useful info here for future reference
folks!)
Boot into "systemrescuecd" (www.sysresccd.org). The following steps are
needed to activate the logical volumes that Fedora Core creates:
vgchange -a y (change attributes to activate all logical volumes)
vgmknodes (make dev files)
now can mount the drive readonly. I'll let you know if dump/restore now
works :)
Ron
Jerry Peters wrote:
rcress@xxxxxxxxxx wrote:
More Info:
If I ctrl-C I get back to the restore prompt. An ls shows the file
still marked for extraction. If I repeat the extract command, this time
I get
Specify next volume # (none if no more volumes): 1
Mount tape volume 1
Enter ``none'' if there are no more tapes
otherwise enter tape name (default: /dev/sdb1)
Input block size is 32
resync restore, skipped 1028 blocks
It recreates the directory structure (under my pwd) but doesn't restore
any files. I'm guessing the backup is corrupt because the filesystem
was mounted rw when I did the backup, even though I was in single use
mode. Sound correct? Am I rooted? Time to create a fresh full backup?
Anyone know how I can drop to single user mode and remount my *root*
partition read-only and still be able to run commands?
rcress@xxxxxxxxxx wrote:
Extra info:
If the pid of the restore command is 8722, then is I cat
/proc/8722/status I see:
Name: restore
State: D (disk sleep)
Is this a clue?? :)
rcress@xxxxxxxxxx wrote:
Hi folks,
Anyone know if there are any known problems using an external USB hard
drive to backup a system using "dump" and restoring it later using
"restore"?
I've recently plugged in a Lacie "red brick" 500GB hard drive and done
a complete dump of my hard drive to it using "dump". That *seemed* to
work and when I go into the archive interactively I can navigate around
and see the files, but after I add them and use the command "extract"
it seems to sit there doing nothing and I don't know where it is trying
to put the files, or if I've just done it wrong.
The system is Fedora Core 4. When the Lacie brick was first attached
the system created a mount point for it. I used the following command
from single user mode to dump the filesystem:
dump -0u -f /dev/sdb1 /
and the file /etc/dumpdates shows that the dump occured last Thursday.
It dumped about 70GB to the drive.
Now if I put the USB drive into another machine (a Windows machine for
instance) it thinks it's unformatted, and Fedora no longer creates a
mount point for it (all consistent with my writing directly to it I
suppose).
My restore session looks like this:
[root@cfd1 ~]# restore -i -f /dev/sdb1
restore > pwd
/
restore > cd /etc/X11
restore > ls xorg*
xorg.conf
xorg.conf.backup
xorg.conf.twinview
restore > add xorg.conf
restore > ls xorg*
*xorg.conf
xorg.conf.backup
xorg.conf.twinview
restore > extract
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume # (none if no more volumes): 1
And at this point it just seems to sit there, with restore using about
0.7% cpu and usb-storage using about 1%. Any thoughts?
Thanks in advance,
Ron
restore >
I've been using dump/restore to an external USB disk with no problems,
used dump then restore several times when repartitioning hard drives
and migrating systems to different machines. Also I periodically
re-create my alternate root partition from a dump image. I normally
dump mounted partitions. My suggestion would be to get the source for
dump/restore from sourceforge and build your own.
I just noticed that you're using the device as a backup medium, I've
never tried that except for tape, why not format sdb1 as ext2 and
dump to a file?
Jerry
.
- Follow-Ups:
- References:
- Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: rcress
- Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: rcress
- Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: rcress
- Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: Jerry Peters
- Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- From: rcress
- Backups to USB disk with Dump/Restore? (restore seems to hang)
- Prev by Date: Re: Serial communication diagnostic application
- Next by Date: Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- Previous by thread: Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- Next by thread: Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
- Index(es):
Relevant Pages
|