SCO installation and backup of the tape drive under Unix

Source: Internet
Author: User
Tags array sybase backup
unix| Backup
SCO installation and backup of the tape drive under UNIX (i)

Use tape drive to back up data for work reasons. In the implementation process summed up a number of experience for your reference.

The server is IBM PC Server 250 (Dual-machine + array cabinet), the operating system is SCO UnixWare 7.1.1, because it is the financial system, also installed a dual-computer software GDS, SYBASE11.9.4 and financial system applications are installed on the disk array, there are now two application libraries: Mbfewkdb,mbfehisdb, now to back up the two libraries to the tape drive.

One. Installation of the tape drive



1, SCSI information query:

Sdiconfig-l

All SCSI devices and SCSI numbers are listed



0:0,7,0:hba: (adsb,2) Adaptec PCI SCSI

0,0,0:DISK:IBM-ESXSST318305LC! #B244

0,8,0:HBA:IBM AUSAV1S2 0

1:0,7,0:hba: (adsb,1) Adaptec PCI SCSI

0,0,0:disk:accuraid960u2w

2:0,7,0:hba: (ide,1) Generic Esdi/ide/ata

0,0,0:cdrom:liteon CD-ROM ltn486s YUS5



The first 3 lines are SCSI devices, 7th are SCSI cards, No. 0 is the hard drive, and 8th is also a SCSI device.

The tape drive that is connected to the SCSI card cannot use these 3 numbers, generally using 5,6.



4th, line 52 is another SCSI card.



6th, 72 lines are IDE cards, respectively, connected to the hard drive and CDROM.





2, the installation of the tape drive

Shutdown.

Set the number on the tape drive to an idle number and connect to the SCSI connector.

Reboot, a new file/dev/rmt/ctape1 will appear and can be used.



To back up files to a tape drive: Tar cvf/dev/rmt/ctape1 filenames

Displays a list of files on the tape drive: Tar tvf/dev/rmt/ctape1

Copying files from a tape drive: Tar xvf/dev/rmt/ctape1



Note that the size of the tape drive and the capacity of the tape must match.





3, add the tape drive device to the Sybase backup device:

Sp_adddumpdevice dev_name "/dev/rmt/ctape1"



Two. Backup of tape drive

Scounix Tape Drive Common backup command on Sybase:
Syntax
DUMP DATABASE database_name
To Stripe_device [at Backup_server_name]
[Density = Density_value,
BlockSize = Number_bytes,
Capacity = Number_kilobytes,
Dumpvolume = Volume_Name,
FILE = file_name]
[Stripe on Stripe_device [at Backup_server_name]
[Density = Density_value,
BlockSize = Number_bytes,
Capacity = Number_kilobytes,
Dumpvolume = Volume_Name,
FILE = file_name]]
[[Stripe on Stripe_device [at Backup_server_name]
[Density = Density_value,
BlockSize = Number_bytes,
Capacity = Number_kilobytes,
Dumpvolume = Volume_Name,
FILE = file_name]] ...]
[With {
Density = Density_value,
BlockSize = Number_bytes,
Capacity = Number_kilobytes,
Dumpvolume = Volume_Name,
File = file_name,
[Dismount | nodismount],
[Nounload | unload],
Retaindays = Number_days,
[Noinit | init],
Notify = {Client | operator_console}
} ]
1, dump MBFEWKDB library to tape device:
Dump database mbfewkdb to "/dev/ctype1"
Tape cannot be overwritten in 2 or 14 days:
Dump database mbfewkdb to "/dev/ctype1" with retaindays=14
3, overwrite the original data on the tape:
Dump database mbfewkdb to "/dev/ctype1" with Init





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.