LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2009, 04:45 AM   #1
TripleOne
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: Disabled
Check tape drive availability (full tape)


Hi Everyone,

I have a HP StoregeWorks DAT 72 tape drive and a pretty simple set of backup scripts from machines across my network. But my problem is with the tape recorder itself. I've written a quite nifty bash script to do the usual mt stuff like writing/reading/erasing etc. But i have yet to figure out how i can tell if the tape is full.

I know 'tar' gives a error message about tape drive beeing full when trying to write to it, but i don't want to do a "fake" write each time to check if I have to change tape.

My best bet was 'mt -f /dev/nst0 status' but it reports ONLINE even though tar reports that tape is full. Does anyone have experience with this?

My goal is to run a script from crontab each day to check if i need to switch tapes. The scriptwriting itself is not the problem. It's the checking if tape is full part.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to insert the DAT72 Tape in tape drive. peddip Red Hat 8 01-08-2009 10:27 AM
Tape Backups and How can i find out the Name (label) of the tape in the drive?? helptonewbie Linux - Newbie 2 10-27-2008 08:20 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 10:15 AM
HP T4 (t4000) 4/8gb Tape Drive not using full capacity k41184 Linux - Hardware 0 12-06-2005 09:05 PM
How to check a Python tape drive on Debian? avantman42 Linux - Hardware 4 03-14-2005 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration