Link to home
Start Free TrialLog in
Avatar of jerrykobes
jerrykobes

asked on

FreeBSD 6.0 restore issues

I backed up my hard drive with the following commands to my second hard drive mounted as /backup (/dev/ad1s1d):

dump -0 -a -L -f /backup/root.dump /
dump -0 -a -L -f /backup/var.dump /var
dump -0 -a -L -f /backup/usr.dump /usr

Then I attempted to restore my system using these dump files by booting off of the CD, redoing the partitions, and running "fixit." In fix it I ran the following commands:

mount /dev/ad1s1d /tmp
cd /mnt
restore -r -f /tmp/root.dump
cd /mnt/var
restore -r -f /tmp/var.dump
cd /mnt/usr
restore -r -f /tmp/usr.dump

But for each restore I got an error like this,
for root.dump it was:

expected next file 16454, got 578

var.dump showed:

expected next file 23566, got 5

usr.dump gave the error:

expected next file 359, got 356

I am using virtual machines and had a backup of this machine that contained the same dump files and ran the restore on it as well. I came up with the exact same errors that contained the same numbers as well. Is there something wrong with the restore? When I restart the computer it runs fine and everything seems to be restore. The only difference I notice is that the /tmp permissions have changed and that there is now a file called "restoresymtable" that is . I am worried that these errors may have caused loss of information that won't be detected until later. I am a novice and would greatly appreciate a down to earth explanation on what is going on and any step-by-step way to fix the problem if it needs to be fixed.

Thanks,
Jerry
Avatar of TeRReF
TeRReF
Flag of Netherlands image

From the restore man page:

- expected next file , got
          A file that was not listed in the directory showed up.  This can
          occur when using a dump tape created on an active file system.
Avatar of jerrykobes
jerrykobes

ASKER

Shouldn't the "-L" on "dump -0 -a -L -f /backup/root.dump /" fix that problem?
Yes, but only if you created a .snap dir in the root of the filesystem BEFORE the dump as root.
If not, the -L option is ignored. Did you create that dir?
Nope, I didn't. Is there anything special I have to type when creating the .snap directory? Or is the command just "mkdir .snap"?
ASKER CERTIFIED SOLUTION
Avatar of TeRReF
TeRReF
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial