Koozali.org: home of the SME Server

HELP!! Restore from tape problem

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« on: June 13, 2005, 02:02:54 PM »
Im running 6.5rc1. When I try to do a restore from tape, it finished after a few seconds, and no files are restored.

"A system restore has completed
It began at: Mon Jun 13 13:56:06 2005
and finished at: Mon Jun 13 13:57:02 2005"

There should be about 40gig of data on the tape. I have 2 separate tapes, and none of the will restore... Any suggestions? How can I copy the gz-file from the tape and unpack it manually?

Hope anyone can help me....

Heres the latest backup log.

flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
/etc/flexbackup.conf syntax OK

|------------------------------------------------------------
| Checking 'buffer' on this machine... Ok
| Checking /bin/sh on this machine... bash2
|------------------------------------------------------------
| Doing level 0 backup of set all using tar
| All sets = full (1 tapes)
| Rewinding & erasing tape...
| Creating index key 200506082100
| Backup set full (/ /boot)
| Tape #0
|------------------------------------------------------------
At block 2.
|------------------------------------------------------------
| File number 1, tape index 200506082100
| Backup of: /
| Date of this level 0 backup: Wed Jun 08 21:00:24 2005
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/" && find . -depth -xdev ! -type s ! -regex "news/articles" ! -regex
|   ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 / Wed Jun 08 21:00:24 2005 tar+gzip from smeserver65rc1"
|   --sparse --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s
|   10k -u 100 -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 28002119680 (26GB, 657kB/s)
Kilobytes Out 20529230
|------------------------------------------------------------
| Backup start: Wed Jun 08 21:00:24 2005
| Backup end:   Thu Jun 09 08:33:57 2005
|------------------------------------------------------------
At block 2052926.
|------------------------------------------------------------
| File number 2, tape index 200506082100
| Backup of: /boot
| Date of this level 0 backup: Thu Jun 09 08:34:07 2005
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/boot" && find . -depth -xdev ! -type s ! -regex "news/articles" !
|   -regex ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 /boot Thu Jun 09 08:34:07 2005 tar+gzip from smeserver65rc1"
|   --sparse --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s
|   10k -u 100 -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 10362880 (9.9MB, 1.5MB/s)
Kilobytes Out 5580
|------------------------------------------------------------
| Backup start: Thu Jun 09 08:34:07 2005
| Backup end:   Thu Jun 09 08:34:21 2005
|------------------------------------------------------------
At block 2053485.
|------------------------------------------------------------
| Rewinding...
| Removing old level 0 log of all (dated 200506012100)
| Compressing log (all.0.200506082100.gz)
| Linking all.latest.gz -> all.0.200506082100.gz
|------------------------------------------------------------

File  Contents    (tape index 200506082100)
---------------------------------------------
0    <tape index key>
1    level 0 / Wed Jun 08 21:00:24 2005 tar+gzip from smeserver65rc1
2    level 0 /boot Thu Jun 09 08:34:07 2005 tar+gzip from smeserver65rc1

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
HELP!! Restore from tape problem
« Reply #1 on: June 14, 2005, 02:44:16 AM »
First what do your logs say?  /var/log/messages
What type of tape drive?  Have you ever tested to make sure a restore has ever worked?  Verify that you can see data by doing this:

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

JB
......

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #2 on: June 14, 2005, 03:47:11 PM »
I have an Exabyte VXA-2. I have been tested before.  I cannot run the command to verify the tape right now, cause I have not installed it into the new server yet. I managed to copy over all data on the crashed disk with a rescue disk... Puh....  :-) Heres the log around the restore-operation:

smeserver65rc1 ldap: slapd shutdown succeeded
Jun 13 13:24:49 smeserver65rc1 esmith::event[2533]: Stopping slapd: [   OK   ]^M
Jun 13 13:24:49 smeserver65rc1 esmith::event[2533]: Creating LDIF dump:  
Jun 13 13:24:49 smeserver65rc1 esmith::event[2533]: S25ldap-delete-dumps=action|Event|pre-restore|Action|S25ldap-delete-dumps|Start|1118661888 902752|End|1118661889 829422|Elapsed|0.92667
Jun 13 13:24:49 smeserver65rc1 esmith::event[2569]: Processing event: restore-tape  
Jun 13 13:24:49 smeserver65rc1 esmith::event[2569]: Running event handler: /etc/e-smith/events/restore-tape/S10tape-restore-flexbackup
Jun 13 13:24:50 smeserver65rc1 esmith::event[2569]: Name "cfg::set" used only once: possible typo at /etc/e-smith/events/restore-tape/S10tape-restore-flexbackup line 61.
Jun 13 13:24:50 smeserver65rc1 kernel: sym53c875-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 16)
Jun 13 13:24:55 smeserver65rc1 kernel: st0: Incorrect block size.
Jun 13 13:24:55 smeserver65rc1 kernel: sym53c875-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 16)
Jun 13 13:25:07 smeserver65rc1 esmith::event[2569]:  
Jun 13 13:25:07 smeserver65rc1 esmith::event[2569]: flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
Jun 13 13:25:07 smeserver65rc1 esmith::event[2569]: /etc/flexbackup.conf syntax OK
Jun 13 13:25:07 smeserver65rc1 esmith::event[2569]: (override) type = dump
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]:  
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Checking 'buffer' on this machine... Ok
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Checking /bin/sh on this machine... bash2
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Logging output to "flexbackup.extract.200506131325.log"
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Reading from CURRENT TAPE POSITION
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: At block 2.
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Extracting files listed in /tmp/restore.2570
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | buffer -m 3m -s 10k -u 100 -t -p 75 -B -i "/dev/nst0" | gzip -dq |
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   restore -x^I-b 10 -o -f - home/e-smith etc/e-smith/templates-custom
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/e-smith/templates-user-custom etc/ssh root etc/sudoers etc/passwd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/shadow etc/group etc/gshadow etc/samba/smbpasswd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/samba/secrets.tdb etc/smbpasswd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: restore: invalid option -- o
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: restore 0.4b27 (using libext2fs 1.27 of 8-Mar-2002)
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: usage:^Irestore -C [-clMvVy] [-b blocksize] [-D filesystem] [-f file]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-F script] [-L limit] [-s fileno]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^Irestore -i [-achlmMuvVy] [-A file] [-b blocksize] [-f file]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-F script] [-s fileno]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^Irestore -r [-clMuvVy] [-b blocksize] [-f file] [-F script]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-s fileno] [-T directory]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^Irestore -R [-clMuvVy] [-b blocksize] [-f file] [-F script]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-s fileno] [-T directory]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^Irestore -t [-chlMuvVy] [-A file] [-b blocksize] [-f file]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-F script] [-s fileno] [-X filelist] [file ...]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^Irestore -x [-achlmMuvVy] [-A file] [-b blocksize] [-f file]
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: ^I           [-F script] [-s fileno] [-X filelist] [file ...]
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]:  
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: gzip: stdout: Broken pipe
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: buffer (writer): write of data failed: Success
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: bytes to write=10240, bytes written=4096, total written         30K
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: At block 241.
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: S10tape-restore-flexbackup=action|Event|restore-tape|Action|S10tape-restore-flexbackup|Start|1118661889 917673|End|1118661913 350861|Elapsed|23.433188
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: Running event handler: /etc/e-smith/events/restore-tape/S50rewind-tape
Jun 13 13:25:13 smeserver65rc1 esmith::event[2569]: S50rewind-tape=action|Event|restore-tape|Action|S50rewind-tape|Start|1118661913 351392|End|1118661913 606401|Elapsed|0.255009
Jun 13 13:25:13 smeserver65rc1 esmith::event[2624]: Processing event: post-upgrade  
Jun 13 13:25:13 smeserver65rc1 esmith::event[2624]: Running event handler: /etc/e-smith/events/post-upgrade/S00initialize-default-databases
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: Found the following directories at /etc/e-smith/db:
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: .
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: ..
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: configuration
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: accounts
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: domains
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: hosts
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: networks
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: mailpatterns
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: Processing database configuration
Jun 13 13:25:14 smeserver65rc1 e-smith[2625]: Migrating existing database configuration
Jun 13 13:25:14 smeserver65rc1 /etc/e-smith/events/post-upgrade/S00initialize-default-databases[2625]: /home/e-smith/configuration: OLD lilo=service|AddressMode|linear|DefaultKernel|SMEServer-up
Jun 13 13:25:14 smeserver65rc1 /etc/e-smith/events/post-upgrade/S00initialize-default-databases[2625]: /home/e-smith/configuration: NEW lilo=service|AddressMode|linear
Jun 13 13:25:14 smeserver65rc1 root[2625]: Finished processing db configuration

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
HELP!! Restore from tape problem
« Reply #3 on: June 14, 2005, 06:56:11 PM »
The default backup type for 6.5 is tar.  Did/Have you changed this to dump?

Jun 13 13:25:07 smeserver65rc1 esmith::event[2569]: (override) type = dump

JB
......

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #4 on: June 14, 2005, 09:25:54 PM »
No, I havent done anything. It was a clean install.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
HELP!! Restore from tape problem
« Reply #5 on: June 14, 2005, 10:06:38 PM »
Quote from: "stian"
No, I havent done anything. It was a clean install.


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

If it says dump change to tar.  I am not home so i can try any of this out, but it looks like flexbackup is trying to us dump but the tape format may be tar.  Then do a /sbin/e-smith/expand-template /etc/flexbackup.conf.  Look at your flexbackup line again.  If the last line has changed from dump to tar, then there is a template file or maybe a DB entry that is set to dump.  

If you have no other add-ons installed and this was a stock install, then flexbackup should be default set to use tar.

If it was set to dump, you could try manually changing to to tar and see if your restore works.

Reaching on something and just trying to help,
JB
......

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #6 on: June 15, 2005, 09:31:11 AM »
It says tar... Very strange this is.... Has there been any change in any 6.5 releases within this? So it could be that I am restoring to a different version than the backup is from?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #7 on: June 15, 2005, 06:22:19 PM »
Quote from: "stian"

...
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | Extracting files listed in /tmp/restore.2570
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: | buffer -m 3m -s 10k -u 100 -t -p 75 -B -i "/dev/nst0" | gzip -dq |
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   restore -x^I-b 10 -o -f - home/e-smith etc/e-smith/templates-custom
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/e-smith/templates-user-custom etc/ssh root etc/sudoers etc/passwd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/shadow etc/group etc/gshadow etc/samba/smbpasswd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |   etc/samba/secrets.tdb etc/smbpasswd
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: restore: invalid option -- o
...


Two problems. You have a tar format tape, but you are using "restore" which can only be used for dump format tapes. And you have the wrong version of the dump rpm, which hasn't been modified so that the restore command can be used completely non-interactively.

You need to configure flexbackup to use tar rather than dump before trying to restore.

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #8 on: August 15, 2005, 12:08:11 PM »
Now I have tried with the 6.0.1 version. Fresh install. Made some users and iBays. Copied over 20Gb to the server. Made a sucessfull backup.

flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
/etc/flexbackup.conf syntax OK

|------------------------------------------------------------
| Checking 'buffer' on this machine... Ok
| Checking /bin/sh on this machine... bash2
|------------------------------------------------------------
| Doing level 0 backup of set all using tar
| All sets = full (1 tapes)
| Rewinding & erasing tape...
| Found index key 200508132200, next file is 3
| Deleting record for 200508132200 file 0
| Deleting record for 200508132200 file 1
| Deleting record for 200508132200 file 2
|------------------------------------------------------------
| Creating index key 200508142200
| Backup set full (/ /boot)
| Tape #0
|------------------------------------------------------------
At block 2.
|------------------------------------------------------------
| File number 1, tape index 200508142200
| Backup of: /
| Date of this level 0 backup: Sun Aug 14 22:00:23 2005
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/" && find . -depth -xdev ! -type s ! -regex "news/articles" ! -regex
|   ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 / Sun Aug 14 22:00:23 2005 tar+gzip from smerver-ny" --sparse
|   --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s 10k -u 100
|   -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 24914585600 (23GB, 694kB/s)
Kilobytes Out 17483260
|------------------------------------------------------------
| Backup start: Sun Aug 14 22:00:23 2005
| Backup end:   Mon Aug 15 07:44:33 2005
|------------------------------------------------------------
At block 1748329.
|------------------------------------------------------------
| File number 2, tape index 200508142200
| Backup of: /boot
| Date of this level 0 backup: Mon Aug 15 07:44:43 2005
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/boot" && find . -depth -xdev ! -type s ! -regex "news/articles" !
|   -regex ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 /boot Mon Aug 15 07:44:43 2005 tar+gzip from smerver-ny"
|   --sparse --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s
|   10k -u 100 -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 10321920 (9.8MB, 1.6MB/s)
Kilobytes Out 5550
|------------------------------------------------------------
| Backup start: Mon Aug 15 07:44:43 2005
| Backup end:   Mon Aug 15 07:44:57 2005
|------------------------------------------------------------
At block 1748885.
|------------------------------------------------------------
| Rewinding...
| Removing old level 0 log of all (dated 200508132200)
| Compressing log (all.0.200508142200.gz)
| Linking all.latest.gz -> all.0.200508142200.gz
|------------------------------------------------------------

File  Contents    (tape index 200508142200)
---------------------------------------------
0    <tape index key>
1    level 0 / Sun Aug 14 22:00:23 2005 tar+gzip from smerver-ny
2    level 0 /boot Mon Aug 15 07:44:43 2005 tar+gzip from smerver-ny


Did a new fresh install. Tried to restore from tape. Same problem. Restore finnish after few seconds with no errors. Reboot. No files are restored...

smetest-dolen e-smith[2200]: flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
Aug 15 11:43:03 smetest-dolen e-smith[2200]: /etc/flexbackup.conf syntax OK
Aug 15 11:43:03 smetest-dolen e-smith[2200]: (override) type = dump
Aug 15 11:43:03 smetest-dolen e-smith[2200]:
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | Checking 'buffer' on this machine... Ok
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | Checking /bin/sh on this machine... bash2
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | Logging output to "flexbackup.extract.200508151143.log"
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | Reading from CURRENT TAPE POSITION
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:03 smetest-dolen e-smith[2200]: At block 2.
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | Extracting files listed in /tmp/restore.2201
Aug 15 11:43:03 smetest-dolen e-smith[2200]: | buffer -m 3m -s 10k -u 100 -t -p 75 -B -i "/dev/nst0" | gzip -dq |
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |   restore -x^I-b 10 -o -f - home/e-smith etc/e-smith/templates-custom
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |   etc/e-smith/templates-user-custom etc/ssh root etc/passwd etc/shadow
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |   etc/group etc/gshadow etc/samba/smbpasswd etc/smbpasswd
Aug 15 11:43:03 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:03 smetest-dolen e-smith[2200]: restore: cannot open /dev/tty: No such device or address
Aug 15 11:43:08 smetest-dolen e-smith[2200]: restore: Tape is not a dump tape
Aug 15 11:43:08 smetest-dolen e-smith[2200]:
Aug 15 11:43:08 smetest-dolen e-smith[2200]: gzip: stdout: Broken pipe
Aug 15 11:43:08 smetest-dolen e-smith[2200]: buffer (writer): write of data failed: Success
Aug 15 11:43:08 smetest-dolen e-smith[2200]: bytes to write=10240, bytes written=6144, total written         30K
Aug 15 11:43:08 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:08 smetest-dolen e-smith[2200]: At block 242.
Aug 15 11:43:08 smetest-dolen e-smith[2200]: |------------------------------------------------------------
Aug 15 11:43:08 smetest-dolen e-smith[2200]: S10tape-restore-flexbackup=action|Event|restore-tape|Action|S10tape-restore-flexbackup|Start|1124098964 744034|End|1124098988 783825|Elapsed|24.039791
Aug 15 11:43:08 smetest-dolen e-smith[2200]: Running event handler: /etc/e-smith/events/restore-tape/S50rewind-tape
Aug 15 11:43:13 smetest-dolen e-smith[2200]: S50rewind-tape=action|Event|restore-tape|Action|S50rewind-tape|Start|1124098988 784136|End|1124098993 147181|Elapsed|4.363045
Aug 15 11:43:13 smetest-dolen e-smith[2258]: Processing event: post-upgrade
Aug 15 11:43:13 smetest-dolen e-smith[2258]: Running event handler: /etc/e-smith/events/post-upgrade/S00initialize-default-databases
Aug 15 11:43:15 smetest-dolen e-smith[2258]: S00initialize-default-databases=action|Event|post-upgrade|Action|S00initialize-default-databases|Start|1124098993 375970|End|1124098995 610884|Elapsed|2.234914
Aug 15 11:43:15 smetest-dolen e-smith[2258]: Running event handler: /etc/e-smith/events/post-upgrade/S00merge-system-files
Aug 15 11:43:15 smetest-dolen e-smith[2258]: Preserving etc/passwd as etc/passwd.1124098995
Aug 15 11:43:15 smetest-dolen e-smith[2258]: Preserving etc/shadow as etc/shadow.1124098995
Aug 15 11:43:15 smetest-dolen e-smith[2258]: Preserving etc/group as etc/g

I can see that there is a conflict beetwen tar and dump here, but why is this? I have done no modifications to this install. Do I have to make one to make this work?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #9 on: August 15, 2005, 05:23:08 PM »
Quote from: "stian"

...
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: |------------------------------------------------------------
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: restore: invalid option -- o
Jun 13 13:25:08 smeserver65rc1 esmith::event[2569]: restore 0.4b27 (using libext2fs 1.27 of 8-Mar-2002)
Jun 13 13:25:08 smeserver65rc1
...


The "invalid" option means that you have a dump RPM installed which isn't compatible with e-smith-flexbackup. You need to use a version of dump/restore which includes Mitel modifications.

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #10 on: August 15, 2005, 06:27:11 PM »
Sorry for my lack of knowledge on this... What you are saying is that I have to make a modification to the sme-server distro to get the tape- backup and -restore to work? Should not the distro be ready for this?

Could you give me a description on what to do? Im a Linux newbie....  :-?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #11 on: August 16, 2005, 12:03:16 AM »
Quote from: "stian"
Sorry for my lack of knowledge on this... What you are saying is that I have to make a modification to the sme-server distro to get the tape- backup and -restore to work? Should not the distro be ready for this?


Yes, it should be.

If you haven't added or updated any packages since the base install of 6.5rc1, then there is a bug in 6.5rc1. You should report the bug in the Bug Tracker on this website.

Note that 6.5rc1 is a "Release Candidate" - it's not a released version.

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #12 on: August 16, 2005, 12:12:43 AM »
This was with the 6.0.1 version... But I had the exact same problem with 6.5rc1. Strange cause I remember testing this for some time ago, and then it was working. But I don not remember if that was with the 5.5 or 6.0.1 version...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Restore from tape problem
« Reply #13 on: August 16, 2005, 04:51:44 PM »
Quote from: "stian"
This was with the 6.0.1 version...


No it wasn't - not if the hostname of "smeserver65rc1" was accurate - see the logfile segment I quoted. Whichever version it was, you were using an incompatible restore program (from the dump RPM).

Quote

But I had the exact same problem with 6.5rc1.


If you had the exact same problem, you should be able to show us the same log file message.

I see two problems in what you have shown us:

1. Attempt to use dump to restore a tar backup under 6.0.1
2. Attumpt to use an uncompatible dump RPM under 6.5RC1.

Offline stian

  • ***
  • 64
  • +0/-0
HELP!! Restore from tape problem
« Reply #14 on: August 16, 2005, 07:11:31 PM »
Ok. But it has something to do with the dump and tar-format in both servers? Doesnt it? 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. Im using a vxa-2 tapestation. Maybe it is just me not getting this... But why do the restore-function in server-manager use dump when the backup-function use tar? 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.