磁带机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.

HostKvm开年促销:香港国际/美国洛杉矶VPS七折,其他机房八折

HostKvm也发布了开年促销方案,针对香港国际和美国洛杉矶两个机房的VPS主机提供7折优惠码,其他机房业务提供8折优惠码。商家成立于2013年,提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,均为国内直连或优化线路,延迟较低,适合建站或者远程办公等。下面列出几款主机配置信息。美国洛杉矶套餐:美国 US-Plan1CPU:1core内存:2GB硬盘...

酷番云78元台湾精品CN2 2核 1G 60G SSD硬盘

酷番云怎么样?酷番云就不讲太多了,介绍过很多次,老牌商家完事,最近有不少小伙伴,一直问我台湾VPS,比较难找好的商家,台湾VPS本来就比较少,也介绍了不少商家,线路都不是很好,有些需求支持Windows是比较少的,这里我们就给大家测评下 酷番云的台湾VPS,支持多个版本Linux和Windows操作系统,提供了CN2线路,并且还是原生IP,更惊喜的是提供的是无限流量。有需求的可以试试。可以看到回程...

Hostigger不限流量VPS年20美元

Hostigger 主机商在前面的文章中也有介绍过几次,这个商家运营时间是有一些年份,只不过在我们圈内好像之前出现的次数不多。最近这段时间商家有提供不限流量的VPS主机,逐渐的慢慢被人认识到。在前面的介绍到他们提供的机房还是比较多的,比如土耳其、美国等。今天看到Hostigger 商家居然改动挺大的,原来蛮好的域名居然这次连带官方域名都更换掉去掉一个G(Hostiger )。估摸着这个域名也是之前...

hp磁带机为你推荐
美国互联网瘫痪美国掐断中国互联网怎么办,我们如何解决?是否有后招?微信回应封杀钉钉微信永久封号了!求大神们指点下怎么解封啊!access数据库ACCESS数据库有什么用关键字什么叫关键词嘀动网手机一键通用来干嘛呢?xyq.163.cbg.com梦幻CBG的网站是什么。同ip网站同IP的两个网站,做单向链接,会不会被K掉??103838.com39052.com这电影网支持网页观看吗?www.ijinshan.com金山毒霸的网站是多少dadi.tvapple TV 功能介绍
郑州服务器租用 域名服务器上存放着internet主机的 linuxapache虚拟主机 koss godaddy域名优惠码 中国智能物流骨干网 数字域名 流量计费 1g空间 linux服务器维护 vip购优惠 环聊 移动服务器托管 lamp怎么读 金主 群英网络 阿里云邮箱申请 卡巴斯基试用版下载 netvigator 密钥索引 更多