?
Solved

FreeBSD 6.0 restore issues

Posted on 2006-07-14
5
Medium Priority
?
316 Views
Last Modified: 2013-11-22
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
0
Comment
Question by:jerrykobes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:TeRReF
ID: 17134047
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.
0
 

Author Comment

by:jerrykobes
ID: 17135216
Shouldn't the "-L" on "dump -0 -a -L -f /backup/root.dump /" fix that problem?
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 17136418
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?
0
 

Author Comment

by:jerrykobes
ID: 17140447
Nope, I didn't. Is there anything special I have to type when creating the .snap directory? Or is the command just "mkdir .snap"?
0
 
LVL 29

Accepted Solution

by:
TeRReF earned 2000 total points
ID: 17141517
Well, follow these steps (as root):
cd /
mkdir .snap
chown root:operator
chmod 770

That should do it. But like I said, unfortunately, it should have been done before the dump...

Don't get me wrong, things might just work fine in your current situation since you said that things are working, but I cannot guarantee it.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question