Koozali.org: home of the SME Server

backup/restore issues

John Bennett

backup/restore issues
« on: May 21, 2001, 01:29:36 PM »
I am having what I think are backup and potential restore issues.  I wanted to verify that my backups were actually good.  I referenced Darrel May's info at netsourced.com, particularly the flexbackup info. I started issuing the follwing commands

1.  flexbackup -toc

Result:

[root@jbesmith /root]# flexbackup -toc

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| Trying "mt defblksize" instead of "mt setblk"
Error setting block size
Neither of these commands worked:
  mt -f /dev/nht0 setblk 0
  mt -f /dev/nht0 defblksize 0
[root@jbesmith /root]# flexbackup -toc

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| ERROR: This tape doesn't have an index! (use -erase?)
|------------------------------------------------


2.  mkdir /root/flexbackup
     cd /root/flexbackup
     /bin/mt -f "/dev/nht0" rewind
     /bin/mt -f "/dev/nht0" fsf 1
     /usr/bin/flexbackup -list > /dev/null
     /bin/ls -l /root/flexbackup/flexbackup.list.log
     /bin/mt -f /dev/nht0 rewind
     /usr/bin/pico /root/flexbackup/flexbackup.list.log

Result:

|------------------------------------------------
| Reading from current tape position
|------------------------------------------------
At block 6.
|------------------------------------------------
| buffer -m 3m -s 10k -u 100 -t -p 75 -B -i /dev/nht0 | gzip -dq | restore -t \
|  -v -b 10 -f -
|------------------------------------------------
Kilobytes Out 20

gzip: stdin: not in gzip format
restore: Tape is not a dump tape
Verify tape and initialize maps
End-of-tape encountered
|------------------------------------------------
At block 8.
|------------------------------------------------


3.  Now everyday, the cronjob sends me the following info.  Which I thought was telling me that my backups were good.  But, instead it doesn't seem like they are good at all.

Here is the info from the cron job


flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| Doing level 0 backup of all using dump
| Retensioning tape...
| Rewinding & erasing tape...
| Creating index key 200105210203.25
| Tape #0
| Filesystems = / /boot
|------------------------------------------------
At block 5.
|------------------------------------------------
| File number 1, index key 200105210203.25
| Backup of: /
| Date of this level 0 backup: Mon May 21 02:03:34 2001
| Date of last level 0 backup: the epoch
|------------------------------------------------
| (dump -0 -b 10 -a -f - / | gzip -4) | buffer -m 3m -s 10k -u 100 -t -p 75 -B \
|  -o /dev/nht0
|------------------------------------------------
  DUMP: Date of this level 0 dump: Mon May 21 02:03:35 2001
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/hda6 (/) to standard output
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 387307 tape blocks.
  DUMP: Volume 1 started at: Mon May 21 02:03:50 2001
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 28.93% done, finished in 0:12
  DUMP: 57.43% done, finished in 0:07
  DUMP: 86.14% done, finished in 0:02
  DUMP: Volume 1 completed at: Mon May 21 02:22:25 2001
  DUMP: Volume 1 took 0:18:35
  DUMP: Volume 1 transfer rate: 376 KB/s
  DUMP: 419482 tape blocks (409.65MB)
  DUMP: finished in 1115 seconds, throughput 376 KBytes/sec
  DUMP: Date of this level 0 dump: Mon May 21 02:03:35 2001
  DUMP: Date this dump completed:  Mon May 21 02:22:25 2001
  DUMP: Average transfer rate: 376 KB/s
  DUMP: DUMP IS DONE
Kilobytes Out 123990
|------------------------------------------------
| Backup start: Mon May 21 02:03:34 2001
| Backup end:   Mon May 21 02:22:31 2001
|------------------------------------------------
At block 12405.
|------------------------------------------------
| File number 2, index key 200105210203.25
| Backup of: /boot
| Date of this level 0 backup: Mon May 21 02:22:41 2001
| Date of last level 0 backup: the epoch
|------------------------------------------------
| (dump -0 -b 10 -a -f - /boot | gzip -4) | buffer -m 3m -s 10k -u 100 -t -p \
|  75 -B -o /dev/nht0
|------------------------------------------------
  DUMP: Date of this level 0 dump: Mon May 21 02:22:42 2001
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/hda1 (/boot) to standard output
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3348 tape blocks.
  DUMP: Volume 1 started at: Mon May 21 02:22:43 2001
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Volume 1 completed at: Mon May 21 02:22:53 2001
  DUMP: Volume 1 took 0:00:10
  DUMP: Volume 1 transfer rate: 334 KB/s
  DUMP: 3340 tape blocks (3.26MB)
  DUMP: finished in 10 seconds, throughput 334 KBytes/sec
  DUMP: Date of this level 0 dump: Mon May 21 02:22:42 2001
  DUMP: Date this dump completed:  Mon May 21 02:22:53 2001
  DUMP: Average transfer rate: 334 KB/s
  DUMP: DUMP IS DONE
Kilobytes Out 2210
|------------------------------------------------
| Backup start: Mon May 21 02:22:41 2001
| Backup end:   Mon May 21 02:23:03 2001
|------------------------------------------------
At block 12627.
|------------------------------------------------
| Rewinding...
| Compressing log (all.0.20010521.gz)
| Linking all.latest.gz -> all.0.20010521.gz
|------------------------------------------------

File  Contents    (tape index 200105210203.25)
-----------------------------------------------
0  
1   level 0 / Mon May 21 02:03:34 2001 dump+gzip from jbesmith
2   level 0 /boot Mon May 21 02:22:41 2001 dump+gzip from jbesmith

4.  Lastly, if I issue the following commands for a interactive restore
cd /
   /bin/mt -f /dev/nht0 rewind
   /bin/mt -f /dev/nht0 fsf 1
   /usr/bin/flexbackup -restore
   /bin/mt -f /dev/nht0 rewind

I get the following

[root@jbesmith /]# flexbackup -restore

flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK

|------------------------------------------------
| Reading from current tape position
|------------------------------------------------
At block 0.
|------------------------------------------------
| buffer -m 3m -s 10k -u 100 -t -p 75 -B -i /dev/nht0 | gzip -dq | restore -i \
|  -v -b 10 -f -
|------------------------------------------------

gzip: stdin: not in gzip format
restore: Tape is not a dump tape
Verify tape and initialize maps
End-of-tape encountered
|------------------------------------------------
At block 7.
|------------------------------------------------



Please help me and tell me why I am apparently not getting good backups, and why the cron job says else.  Also, this was verified at another location that has e-smith 4.1.1 and they are getting the same thing.

Thanks,

JB

John Bennett

Re: backup/restore issues
« Reply #1 on: May 23, 2001, 08:46:52 AM »
For anyone that cares, it turns out if I change the block size to 64 all is good.