- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- tape backup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2011 07:20 PM
11-23-2011 07:20 PM
hi,
I try to take backup in dat drive. When i give the command for backup it says backup is complete. i also see the file status in the tape drive using tar cokmmand. but i run the command 'mt -f /dev/st0 status' it shows 0 file number in the tape. i attached a screenshot of that. please help me to solve the issue.
regards,
Arafat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2011 08:29 PM
11-23-2011 08:29 PM
SolutionYou're using the "/dev/st0" device, which includes the auto-rewind feature.
As soon as your "tar -czf /dev/st0 /tmp/abedin/file" command completes, the tape driver will automatically rewind the tape back to the very beginning of tape (= to position: file number 0, block number 0). This might be useful for some purposes, but it can be very confusing to people not familiar with classic Unix tape devices.
You might want to use the no-auto-rewind device "/dev/nst0" instead in all your tape-related commands.
After "tar -czf /dev/nst0 /tmp/abedin/file", the command "mt -f /dev/nst0 status" should return non-zero block & file numbers.
The file and block numbers are not totals: they are a count of tape files and blocks the drive has seen so far starting from the beginning of the tape. (It would be impossible for the tape drive to know the total number of files on the tape without first reading the whole tape from the beginning to the end. It is generally not possible/not worth the effort to place an updateable "directory" of tape contents to the beginning of tape.)
One "tar -czf ..." session will be just one "tape file", even if it will contain multiple files: as far as the tape drive is concerned, it is a single tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2011 08:31 PM
11-23-2011 08:31 PM
Re: tape backup
>I run the command 'mt -f /dev/st0 status' it shows 0 file number in the tape.
Are you using a no rewind device?
>I attached a screenshot of that.
(Text is worth more than any picture. ;-)
It is better to attach a text file so we can grep/edit it.)