LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-31-2005, 04:10 AM   #1
xian_hu
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
tape write count


Hi all!

Is there any way to tell about a scsi tape, that how many times was is written? I am thinking about replace my DDS4 tapes, as it is recommended to do so after 100 rewrites. I want to know if the tapes have reached this number.

Thx: Krisztian
 
Old 04-01-2005, 09:32 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
To my knowledge no tapes record how many times they've been overwritten. However, depending on the backup schedule that you use with those tapes, if you know when they were purchased you can guesstimate approx how many times they've been rewritten. For example if they tapes are rewritten daily, and you bought them at the beginning of the year, then they're coming up fast on that 100 mark. Similarly, if they're used on a weekly basis and they're about 2 years old, they're due.

If you're unsure, replace them. If you have doubts or can't trust your backups, why take the risk. Good luck with it and welcome to LQ -- J.W.
 
Old 04-01-2005, 10:00 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You either keep records yourself or you have a software package that does that for you.

If you have a script that does your backups, issue "mt -f /dev/nst0 status" (or whatever tape device you're using) just before doing the backup and again when it's done. Then grep for the string "Soft error count since last status=N" (well, only search for the string up to the "=") in the result of the second "mt status" command. If you see that N is non-zero, that's probably a good-enough indicator that the backup is questionable and it's time to replace the tape.

It's good that you are thinking of monitoring that. My backup script was warning me about errors that occurred during the session. Next thing I know I'm ejecting the tape (manually which was odd since the script does a "mt rewoffl" once the backup is done) and part of it is hanging outside the cartridge and flapping in the breeze. Used that cartridge one time too many.
 
  


Reply



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
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Should posts in general count on your post count? Joey.Dale General 16 01-27-2004 01:31 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
Err if I tray Write Date To CD-Write Sn4s Linux - Newbie 2 07-23-2003 08:53 PM
dd: bs=2X , count=?X adam_boz Linux - General 3 10-27-2002 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:57 AM.

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