Differences between revisions 7 and 8
Revision 7 as of 2008-07-08 05:30:25
Size: 2534
Editor: JonCo
Comment:
Revision 8 as of 2008-07-08 05:47:57
Size: 2540
Editor: JonCo
Comment:
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
Backup command can take several values: '''Backup command can take several values:'''

Backup Problem

Scenario will be, full backup not working or control backup not working.

Few helpful tips:

  • Check if the media is faulty is faulty or there is lock in the media.
  • Check to see if the tape device is detected by the system. If not try to restart to detect it. Some time you need to reinstall the driver.
  • #ls –l /dev/st0 ( to check the drive)
  • tar ztvf /dev/st0 ( with the media inside the tape, if nothing shows then tape could be bad )
  • If driver problem (#lsmod >># rmmod aci…. >># insmod ac….. )

  • Run the backup script in test mode with tape inside the tape device but in test mode. (# /u/cc/binl/baksys –t)

Few cool commands

#mt –f /dev/st0 staus

#mt –f /dev/st0 erase

  • Normal backup error message

Tar:/dev/st0: cannot read: Input / output error

DAT72/DDS tape info

It is recommended that DAT72/DDS tapes are used up to 100 times (read, write) and then replaced. Since our backup script writes on the tapes and reads them back once a week, this translates to replacing the tapes once a year. The most common cause of the above error is dirty heads or bad media. Try a cleaning cartridge and then use new media as the old media may be contaminated. Retensioning the tape may also improve performance. The Heads should be cleaned with a Cleaning Tape when the drive light indicates (flashing amber light). Overusing cleaning tapes is bad for the drive heads as these are abrasive and would reduce the drive's lifetime.

Automating using cron

Sample line in root's cron:

0 23 * * * /cc/binl/bacint -s >/cc/LOG/bacint.out 2>&1The backup script takes the settings from Control's company details and determines how to back up.

Backup command can take several values:

zip - store on external usb drive

  • /mnt/zip has to be preconfigured in /etc/fstab and this is where the script will mount the drive to.

burn - burn on CD or DVD media

  • When using RW media, this has been tested to work only with DVD-RW media, for some unknown reason DVD+RW media does not get overwritten. It does go through the motions of writing to it, but this will fail verification and the old data remains. There is no problem with using blank media, both - and + work. No problem with write once discs too.
  • An undocumented switch "-use-the-force-luke" is needed for growisofs to force the script to overwrite the disc if there is already a filesystem in it.

cpio - use cpio and write to tape

tar - use tar and write to tape

Backup_Problem (last edited 2013-09-18 06:09:33 by localhost)