LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-17-2009, 12:25 PM   #1
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Rep: Reputation: 30
Tape Drive problems


I having a tape drive problems, where I can't backup using the tape drive, it show me a initialization of the tape failed. What is the possible cause of this kind of problems? The tape is damaged? Any troubleshooting guide on regards to tape drive in Solaris? Command and how to, really appreciate somebody there can help.
 
Old 04-17-2009, 05:43 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
So, what kind of tape drive? Internal, external? x86? SPARC? Brand of tapes? Age? How are you sending data to it? tar? ufsdump? Specific output & error messages? More information would be useful.

Typically, use mt to position, rewind, etc. and get the status of the drive/tape. Then tar, ufsdump, dd, Amanda to get data to the drive/tape.

Check /var/adm/messages to see error messages posted through syslog.

For some drives, such as internal DDS drives with a front bezel, check the lights. I don't remember off hand which is which, but there is a green blinking light for activity, another to the right that blinks yellow for accumulated errors and to indicate that you should use a cleaning tape. Newer drive types have fewer problems.

Assuming DDS, use a cleaning tape that isn't old or over-used. Then try a new tape. It could be the drive needed cleaning, or it could be that the tape was bad. When I was using DDS/3 drives, I relied on FUJI and SONY tapes. Some other brands weren't as reliable.

Of course, I could be just generating noise, because you might be using something totally different, or maybe it's an external drive and throwing SCSI errors. Please fill in the blanks.
 
Old 04-18-2009, 09:38 AM   #3
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by choogendyk View Post
So, what kind of tape drive? Internal, external? x86? SPARC? Brand of tapes? Age? How are you sending data to it? tar? ufsdump? Specific output & error messages? More information would be useful.

Typically, use mt to position, rewind, etc. and get the status of the drive/tape. Then tar, ufsdump, dd, Amanda to get data to the drive/tape.

Check /var/adm/messages to see error messages posted through syslog.

For some drives, such as internal DDS drives with a front bezel, check the lights. I don't remember off hand which is which, but there is a green blinking light for activity, another to the right that blinks yellow for accumulated errors and to indicate that you should use a cleaning tape. Newer drive types have fewer problems.

Assuming DDS, use a cleaning tape that isn't old or over-used. Then try a new tape. It could be the drive needed cleaning, or it could be that the tape was bad. When I was using DDS/3 drives, I relied on FUJI and SONY tapes. Some other brands weren't as reliable.

Of course, I could be just generating noise, because you might be using something totally different, or maybe it's an external drive and throwing SCSI errors. Please fill in the blanks.
Equipment: Sun StorageTek DAT 72 Tape Drive that connected to Solaris Sun Fire
Brand of Tapes: HP
Age: 4 months
Way of sending data: SCSI
Application in Solaris: Vendor specified backup application
Error Message: Fail to initialize

Please help, any command to check and troubleshoot?
 
Old 04-18-2009, 10:08 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Go back through my previous message.

Does mt work? (`man mt` for more detail if you aren't already familiar with it). `mt status` for starters.

Did you look through /var/adm/messages for any errors? In particular any tape errors, scsi errors, references to /dev/rmt/...

If you simply do a tar out to the tape (e.g. `tar -cvf /dev/rmt/0n /export/home/mydirectory`), does that work?

These steps are necessary just to make sure the operating system can address the tape drive. By the way, is this Solaris 8? 9? 10?

What is the vendor specified backup application? "Fail to initialize" must be an error coming from that application. While the error message might seem to imply that it found the drive and tried to access the tape, error messages can be obfuscating, and there are multiple other possible interpretations. Does that application have logs you can check or other test procedures to see if it is set up properly?
 
Old 04-18-2009, 11:58 AM   #5
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by choogendyk View Post
Go back through my previous message.

Does mt work? (`man mt` for more detail if you aren't already familiar with it). `mt status` for starters.

Did you look through /var/adm/messages for any errors? In particular any tape errors, scsi errors, references to /dev/rmt/...

If you simply do a tar out to the tape (e.g. `tar -cvf /dev/rmt/0n /export/home/mydirectory`), does that work?

These steps are necessary just to make sure the operating system can address the tape drive. By the way, is this Solaris 8? 9? 10?

What is the vendor specified backup application? "Fail to initialize" must be an error coming from that application. While the error message might seem to imply that it found the drive and tried to access the tape, error messages can be obfuscating, and there are multiple other possible interpretations. Does that application have logs you can check or other test procedures to see if it is set up properly?
I am using SPARC Solaris 10.

When I issued mt status, it give me the following,

Quote:
/dev/rmt/0n: No such file or directory
In the system, it doesn't have /rmt.
 
Old 04-18-2009, 12:17 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by Paris Heng View Post
I am using SPARC Solaris 10.

When I issued mt status, it give me the following,

Code:
/dev/rmt/0n: No such file or directory

In the system, it doesn't have /rmt.
That means that either...

1) Tape drive is not mounted and you have to manually mount it
2) The Solaris machine cannot see the SCSI device...maybe a driver issue?


What's the output of

Code:
svcs -a | grep volfs
Did you buy this from Sun? If so, then you should be able to go to sunsolve and submit a ticket.
 
Old 04-18-2009, 02:42 PM   #7
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by Paris Heng View Post
I am using SPARC Solaris 10.

When I issued mt status, it give me the following,

Code:
/dev/rmt/0n: No such file or directory
In the system, it doesn't have /rmt.
Just to clarify...

/dev/rmt/0n -- something in that path does not exist.

you specifically say "/rmt" does not exist. Was that a typo? Did you mean "/dev/rmt" does not exist? That would be weird. I have one Solaris SPARC system that has no internal or external tape drive, and it has /dev/rmt, although it is empty.

If you have /dev/rmt, but it is empty, that might mean you hooked up an external drive, but didn't bother doing the reconfigure reboot to get it into the device tree. You would do

# touch /reconfigure
# reboot

Then do `ls -l /dev/rmt` to see what's there. You could expect to see /dev/rmt/0n among others.

Did you install/connect this tape drive yourself?
 
Old 04-19-2009, 01:58 AM   #8
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by custangro View Post
That means that either...

1) Tape drive is not mounted and you have to manually mount it
2) The Solaris machine cannot see the SCSI device...maybe a driver issue?


What's the output of

Code:
svcs -a | grep volfs
Did you buy this from Sun? If so, then you should be able to go to sunsolve and submit a ticket.
See attached:

Click image for larger version

Name:	untitled.PNG
Views:	79
Size:	4.0 KB
ID:	488

Please assist, how to manually mount? How to check if is the case of SCSI is not working? Yes bought it from Sun, how my going to submit ticket to Sun? Please help.

Last edited by Paris Heng; 04-19-2009 at 04:24 AM.
 
Old 04-19-2009, 01:58 AM   #9
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by choogendyk View Post
Just to clarify...

/dev/rmt/0n -- something in that path does not exist.

you specifically say "/rmt" does not exist. Was that a typo? Did you mean "/dev/rmt" does not exist? That would be weird. I have one Solaris SPARC system that has no internal or external tape drive, and it has /dev/rmt, although it is empty.

If you have /dev/rmt, but it is empty, that might mean you hooked up an external drive, but didn't bother doing the reconfigure reboot to get it into the device tree. You would do

# touch /reconfigure
# reboot

Then do `ls -l /dev/rmt` to see what's there. You could expect to see /dev/rmt/0n among others.

Did you install/connect this tape drive yourself?
Sorry is rmt/ not exist. Yes I installed myself. See attached:

Click image for larger version

Name:	untitled.PNG
Views:	65
Size:	4.0 KB
ID:	489

Last edited by Paris Heng; 04-19-2009 at 02:02 AM.
 
Old 04-19-2009, 04:12 AM   #10
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Original Poster
Rep: Reputation: 30
Did the command like the following help?

Last edited by Paris Heng; 05-09-2009 at 03:40 AM.
 
Old 04-19-2009, 09:51 PM   #11
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by Paris Heng View Post
Did the command like the following help?
Did you do any/all of those commands in that sequence? That was really unnecessary, if so. Possibly, the `devfsadm -C tape` cleared out the /dev/rmt (read the man page for devfsadm), because there were no devices under it at that point. You should have only had to do the `touch /reconfigure; reboot` (notice there is no dot, and it is reconfigure, not configure).

If you haven't done any of them, and you have looked at /var/adm/messages (this is important) to confirm that you are not getting any errors there related to SCSI or tape, then just do `touch /reconfigure; reboot`.

After you have done that, then try `mt status`. Then go back and do the suggested testing to see that the tape drive works. And, please, take the time to read through the previous suggestions carefully and respond to them by answering them and providing output or error messages. This really shouldn't be that difficult to resolve.
 
  


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
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 07:13 AM
IDE Tape drive problems FC2 jonabyte Fedora 0 06-12-2005 08:50 AM
problems installing scsi tape drive craigb Linux - Hardware 8 12-09-2004 07:18 AM
Tape drive problems czarherr Linux - Hardware 2 09-22-2004 07:29 PM
Ide Tape drive problems edati Linux - General 9 02-26-2001 12:00 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:48 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