Koozali.org: home of the SME Server

HELP!! Restore from tape problem

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #15 on: August 16, 2005, 08:28:38 PM »
Quote from: "stian"
Ok. But it has something to do with the dump and tar-format in both servers? Doesnt it?


No. One issue is dump/tar format. The other is whether the restore command recognised the "-o" command line argument.

Please don't try to interpret so much. We'll solve your problem more quickly if you just report accurately what you are trying to do and what is happening instead.

Quote

I have tried to do a backup and restore on 6.0, 6.0.1 and 6.5rc1. It always give me errors when I try to restore.


OK, then the software isn't functioning correctly and you should report bugs. Unless the symptoms are exactly the same, then you should report separate bugs for each. The developers can merge the bugs if they turn out to be the same problem.

Quote

But why do the restore-function in server-manager use dump when the backup-function use tar?


A good question. We need to find that out. It should be auto-detecting the format of the backup and using the correct type during restore. Please provide details in the bug tracker, and we'll investigate from there.

Quote

And about the uncompatible dump RPM under 6.5RC1: As mentioned before, I have done no modifications to the distro before doing this. Clean installs.


OK, then 6.5RC1 has a bug. Followup to the bug tracker, please.

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #16 on: August 17, 2005, 01:01:51 PM »
Thanks! I will send bug reports for all versions separately. I also got an error for 7.0alpha when running backup. Im sorry if my postings were confusing sometimes...  :-?

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
HELP!! Restore from tape problem
« Reply #17 on: November 09, 2005, 10:25:47 AM »
In the weekend I did a fresh install of 6.01 did the yum updates and started doing tape backups. I have attempted a restore from tape on the same server after another fresh install with no updates installed and it has failed. Below is the start of the log.

On reading through this forum entry I have tried running these commands and have been able to see that the information is actually on the tape.

mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 1
flexbackup -list

I have checked the entry in /etc/flexbackup.conf

What does this line in your /etc/flexbackup.conf file show:
$type = 'tar';

And it shows tar

I have attempted a restore with it set to tar and also dump.

I am using a scsi tape drive sony sdt 7000.

If you require more info please ask.


flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
Nov  9 21:40:32 keane-dmz e-smith[2290]: /etc/flexbackup.conf syntax OK
Nov  9 21:40:32 keane-dmz e-smith[2290]: (override) type = dump
Nov  9 21:40:32 keane-dmz e-smith[2290]:
Nov  9 21:40:32 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:32 keane-dmz e-smith[2290]: | Checking 'buffer' on this machine... Ok
Nov  9 21:40:32 keane-dmz e-smith[2290]: | Checking /bin/sh on this machine... bash2
Nov  9 21:40:32 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:32 keane-dmz e-smith[2290]: | Logging output to "flexbackup.extract.200511092140.log"
Nov  9 21:40:32 keane-dmz e-smith[2290]: | Reading from CURRENT TAPE POSITION
Nov  9 21:40:32 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:32 keane-dmz e-smith[2290]: At block 1.
Nov  9 21:40:32 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:32 keane-dmz e-smith[2290]: | Extracting files listed in /tmp/restore.2291
Nov  9 21:40:32 keane-dmz e-smith[2290]: | buffer -m 3m -s 10k -u 100 -t -p 75 -B -i "/dev/nst0" | gzip -dq |
Nov  9 21:40:32 keane-dmz e-smith[2290]: |   restore -x^I-b 10 -o -f - home/e-smith etc/e-smith/templates-custom
Nov  9 21:40:32 keane-dmz e-smith[2290]: |   etc/e-smith/templates-user-custom etc/ssh root etc/passwd etc/shadow
Nov  9 21:40:32 keane-dmz e-smith[2290]: |   etc/group etc/gshadow etc/samba/smbpasswd etc/smbpasswd
Nov  9 21:40:32 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:32 keane-dmz e-smith[2290]: restore: cannot open /dev/tty: No such device or address
Nov  9 21:40:36 keane-dmz e-smith[2290]: restore: Tape is not a dump tape
Nov  9 21:40:36 keane-dmz e-smith[2290]:
Nov  9 21:40:36 keane-dmz e-smith[2290]: gzip: stdout: Broken pipe
Nov  9 21:40:36 keane-dmz e-smith[2290]: buffer (writer): write of data failed: Success
Nov  9 21:40:36 keane-dmz e-smith[2290]: bytes to write=10240, bytes written=4096, total written         30K
Nov  9 21:40:36 keane-dmz e-smith[2290]: |------------------------------------------------------------
Nov  9 21:40:36 keane-dmz e-smith[2290]: At block 237.
Nov  9 21:40:36 keane-dmz e-smith[2290]: |------------------------------------------------------------


Thanks in advance for any help.

Tony
...

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #18 on: November 09, 2005, 10:36:36 AM »
Maybe this help: I found that I had to do a backup on a fresh install BEFORE I could do a restore. If you have another blank tape I think you should try that. Then after the backup of the fresh installation, insert the tape with the backup an do a restore. That helped for me.

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
HELP!! Restore from tape problem
« Reply #19 on: November 09, 2005, 10:41:31 AM »
Thanks for that I have a backup underway now.

Tony
...

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
HELP!! Restore from tape problem
« Reply #20 on: November 09, 2005, 08:50:24 PM »
OK so I have performed a backup to tape and then managed to restore from my original tape.

All seems to be OK apart from not being able to view any of the restored mail. I believe this may be a permissions issue.

I will look at this later tonight.

Thanks

Tony
...

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
HELP!! Restore from tape problem
« Reply #21 on: November 09, 2005, 09:22:14 PM »
This Bug Report may be relevant

"Tape restore gets ownership wrong for "Maildir""
http://no.longer.valid/mantis/bug_view_page.php?bug_id=0000191
............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #22 on: November 17, 2005, 05:21:43 AM »
Quote from: "stian"
Maybe this help: I found that I had to do a backup on a fresh install BEFORE I could do a restore.


Please report that as a bug.