RedhatLinux Enterprise Edition

Source: Internet
Author: User
Tags rewind
Article Title: RedhatLinux enterprise RedhatLinux tape drive simple operation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In Linux, there are multiple ways to use a tape drive, mainly through software such as Amanda and Tar.

Amanda provides the remote centralized backup function, which enables remote centralized storage and backup by setting the client and server respectively. Tar is mainly used to directly write data to the tape for backup in a single-host environment. For single-node backup, you only need to simply use the Tar command for backup and recovery.

Install

The HP DAT24/40 series external SCSI tape drives of current manufacturers all provide automatic back-to-volume functions. Connect it to the external SCSI bus and restart the server. After the reboot, run the dmesg command to view the new drive device/dev/st0.

Blk: queue ef0d7a14, I/O limit 4095 Mb (mask 0 xffffffff)

Audit subsystem ver 0.1 initialized

(Scsi0: A: 3): 10.000 MB/s transfers (10.000 MHz, offset 15)

Vendor: HP Model: C1537A Rev: L805

Type: Sequential-Access ansi scsi revision: 02

Blk: queue ef0e4614, I/O limit 4095 Mb (mask 0 xffffffff)

Attached scsi tape st0 at scsi0, channel 0, id 3, lun 0

  Tape operation

After attaching a tape, perform the following operations:

Rewind to roll the tape to the starting position

Mt-f/dev/st0 rewind

Erase, erase the content on the tape

Mt-f/dev/st0 erase

Note: The erasure operation is very slow and has damage to the tape. It is recommended that you do not execute it. When the data is full, you can continue to write data and overwrite the original data without performing the erasure operation. The new tape can be used immediately after it is encapsulated and does not need to be erased.

Out-of-band, roll the tape to the initial position and then pop up from the tape drive

Mt? F/dev/st0 offline

Data Operations

The basic operations are as follows:

1. Operate tar tvf/dev/st0 in the column directory

If there are no files on the tape, the column directory will report an error. This error does not affect the use of the tape.

[1] [2] [3] [4] Next page

Related Article

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.