磁带机HP磁带机

hp磁带机  时间:2021-03-13  阅读:()

HP磁带机

There are several ways to use a tape machine on Linux, mainlythrough software such as Amanda and Tar.

Amanda provides the ability to provide remote centralizedbackup by setting the client side and the server side forremotecentralized storage. Tar is mostly used in a single machineenvironment to write data directly to a tape backup. For asingle node backup, simply use the Tar command for backup andrecovery.

The installation

For the current HP dat24/40 series of external SCSI tapemachines, all have automatic rollback functions. Take itoutside the SCSI bus and restart the server. After reboot, theexecution of the dmesgwill allowyou to see the new tapemachinedevice called /dev/st0.

Series: queue ef0d7a14, I/O limit of 4095 MB (mask 0 XFFFFFFFF)audit subsystem ver 0. 1 the initialized (scsi0: A: 3) : 10.000MB/s transfers (10.000 MHz, offset 15) Vendor: HP Model: C1537ARev: L805 Type: Sequential - Access ANSI SCSI revision: 02series: queue ef0e4614, I/O limit of 4095 MB (mask 0 XFFFFFFFF)Attached SCSI tape st0 at scsi0, channel 0, 3, id lun 0The tape operation

After loading the tape, you can do the following:

Rewind the tape to the starting position

Mt - f/dev/st0 rewind

Erase, erase the contents of the tape

Mt - f/dev/st0 erase

Note: erase work very slowly, and has damage to the tape, itis best not to perform, whenwriting data, can continue to writedata and cover the original data, and do not need to erase theaction. The new tape can be used immediately after it has beenopened, and it does not need to be erased.

Take the tape, roll the tape to the original position and thenpop up from the tape machine

Mt - f/dev/st0 offline

Data manipulation

The basic operations are as follows:

Column directory operations tar TVF/dev/st0

If there is no file on the tape, then the directorywill reportthe error, which has no relation and does not affect the useof the tape.

Root @ dev131 / root # tar TVF/dev/st0tar: / dev/st0: alwaysread: Input/output errortar:At the beginning of tape, quittingnowtar: the Error is not recoverable, exiting now root@dev131

/ root #

Write the data action tar CVF/dev/st0< to write the file name >There are two ways to write data: don't package it directly intothe file and package it to write the file. Each has itsadvantages and disadvantages. The method of not packagingdirectly into the file looks inefficient and complex, but canimprove the survival rate of the data. The tape is a linearstorage device, and all data is written next to the order. Whena point of tape is damaged, the rest of the tape can still beread, and the files can be read. If the method is packaged andcompressed, only one file is stored on the tape. Anywhere whenthe tape has malfunctioned can' t read, then the compressed filewill be lack of some details, even if it is a bit error, willalso result in CRC error can't extract the compressed filereport. So, if you're storing a lot of data, write it directly.If it is access to a small file, it is best to package it andadd a time tag to the file name.

For example, to write/root/test1.tar.gz to the tape andoverwrite the tape:

Tar CVF/dev/st0 test1. tar.gz

The speed of the tape is slower, for not a large file backup,wait a few seconds, and the write can be done. Using theparameter CVF will overwrite the existing files on this.Then list the files on the tape:

[root @dev131 / root] # tar TVF/dev/st0-rw-rw- r - root/root320 2006-1201. Tar.gz [root @dev131 / root] #

You can see the data written successfully.

Note: this command will only be written when the tape isentirely new, and the original data will be overridden on thesecond execution. In addition, using the tar command backup,the required backup file volume must be less than the capacityof a single disk of tape, which means a file cannot span twosets of tape. If this is the case, you can' t use the tar commandbackup, and you need to change the other backup programs to doso.

Continue to write the data tar RVF/dev/st0 < to write the filen ame >

Tape storage is a linear storage, and all data is written inturn. To not overwrite the contents of the front, use the RVFparameter to write the content when writing.

Tar RVF/dev/st0 test2. tar.gz

Once again, the RVF continues to write to other files:Tar RVF/dev/st0 test3. tar.gz

When the write is complete, check what files are on the tape:Root@dev131 /root#tar TVF/dev/st0-rw-r-r-320 root/root2006-12-01 09:29:02 test1. Tar. Gz -rw-r- r- 320 root/root

2006-12-01 09:44:19 test2. Tar. Gz -rw-r- r- 320 root/root2006-12-01 09:30:14 test3. Tar. Gz root @ dev131 / root #As you can see, the newly written files and the original filesare stored on the tape.

The linear storage feature of the tape makes it possible towrite the same file twice. For example, now the test3 file hasa file size change that is written to the tape again:Tar RVF/dev/st0 test3. tar.gz

Looking at the list of files, you can see the following fileson the tape:

Root@dev131 /root#tar TVF/dev/st0-rw-r-r-320 root/root2006-12-01 09:29:02 test1. Tar. Gz -rw-r- r- 320 root/root2006-12-01 09:30:14 test2. Tar. Gz -rw-r- r- 320 root/root2006-12-01 09:44:19 test3. Tar. Gz-rw-r-r-67085 root/root2006-12-01 09:44:19 test3. Tar. Gz root @ dev131 / root #Here you can see that there are two file names of the same nameon the tape. The two backup sizes of this file can be the sameor not the same.

Note: on tape if the file is written to the same times, therecovery time will be more troublesome, need to tape to documentstorage place, and then read the tape files stored in thecurrent position, more complicated to operate, speed is alsoslow. So it is not recommended to write the same file name ona tape. Before backing up, it is best to add a time tag to the

file name of the backup file so that you can find the backup.For example, the file name to be backed up istest-20061201-0930. tar.gz and test-20061201-0945.tar.gz,which is written to a tape. This makes it easier and faster toaccess and access operations when performing backup and restoreoperations.

Read the data tar XVF/dev/st0 < to read the file name >Before reading the data, check the content on the tape to getthe file name to be restored. For example, see the followingresults:

Root@dev131 /root#tar TVF/dev/st0-rw-r-r-320 root/root2006-12-01 09:29:02 test1. Tar. Gz -rw-r- r- 320 root/root2006-12-01 09:30:14 test2. Tar. Gz -rw-r- r- 320 root/root2006-12-01 09:44:19 test3. Tar. Gz root @ dev131 / root #Now restore the test3.tar.gz file, and execute the followingcommand:

Tar XVF/dev/st0 test3. tar.gz

After reading the data.

[root @dev131] # tar XVF/dev/st0 test3. tar.gz

You can then find the files that are read from the tape in thecurrent path:

[root @dev131 ~] # ls-l test3.tar.gz-rw-r -- r -- 1 root root

320 Dec 1 11: 12 test3. tar.gz

This completes the restore operation.

Using the tar command described above, you can use theTVF/CVF/RVF/XVF parameter to implement the read and writeoperation of the tape. The automatic backup can be implementedusing pre-written copy data scripts, combined with the tapemachine operation command, and placed in /etc/crontab.

妮妮云,美国cera CN2线路,VPS享3折优惠

近期联通CUVIP的线路(AS4837线路)非常火热,妮妮云也推出了这类线路的套餐以及优惠,目前到国内优质线路排行大致如下:电信CN2 GIA>联通AS9929>联通AS4837>电信CN2 GT>普通线路,AS4837线路比起前两的优势就是带宽比较大,相对便宜一些,所以大家才能看到这个线路的带宽都非常高。妮妮云互联目前云服务器开放抽奖活动,每天开通前10台享3折优惠,另外...

7月RAKsmart独立服务器和站群服务器多款促销 G口不限量更低

如果我们熟悉RAKsmart商家促销活动的应该是清楚的,每个月的活动看似基本上一致。但是有一些新品或者每个月还是有一些各自的特点的。比如七月份爆款I3-2120仅30美金、V4新品上市,活动期间5折、洛杉矶+硅谷+香港+日本站群恢复销售、G口不限流量服务器比六月份折扣力度更低。RAKsmart 商家这个月依旧还是以独立服务器和站群服务器为主。当然也包括有部分的低至1.99美元的VPS主机。第一、I...

NameCheap域名转入优惠再次来袭 搜罗今年到期域名续费

在上个月的时候也有记录到 NameCheap 域名注册商有发布域名转入促销活动的,那时候我也有帮助自己和公司的客户通过域名转入到NC服务商这样可以实现省钱续费的目的。上个月续费转入的时候是选择9月和10月份到期的域名,这不还有几个域名年底到期的,正好看到NameCheap商家再次发布转入优惠,所以打算把剩下的还有几个看看一并转入进来。活动截止到9月20日,如果我们需要转入域名的话可以准备起来。 N...

hp磁带机为你推荐
sherylsandberg这个文章什么意思 给个翻译好吗 谢谢了地陷裂口山崩地裂的意思百度关键词分析百度竞价关键词分析需要从哪些数据入手?m.2828dy.comwww.dy6868.com这个电影网怎么样?bbs2.99nets.com让(bbs www)*****.cn进入同一个站yinrentangweichentang万艾可正品的作用真的不错吗33tutu.com33gan.com改成什么了pp43.com登录www.bdnpxzl.com怎么进入网站后台啊59ddd.com网站找不到了怎么办啊汴京清谈都城汴京,数百万家,尽仰石炭,无一燃薪者的翻译
香港主机租用 中文域名交易中心 net主机 stablehost tier 20g硬盘 美国php空间 好看的桌面背景图片 服务器怎么绑定域名 搜狗12306抢票助手 百度云1t 免费cdn 最漂亮的qq空间 raid10 东莞idc 便宜空间 万网主机 免费稳定空间 1美元 腾讯数据库 更多