Re: mounting/identifying a new tape drive
On Thu, Feb 03, 2005 at 11:53:36AM -0500, Gil Naveh wrote: Hello, I have a Solaris 9 box and we bought a new tape drive model Certance LTO-2. Currently, I am trying to identify the tape drive using amtapetype command but it does not work. Let me go a step back and describe what I did so far. I connected the new tape drive to our Solaris 9 server and I restarted Solaris. Next in order to see that the server identified the new hardware I typed: #iostat -En and received the following output regarding the tape drive: # rmt/0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 # Vendor: CERTANCE Product: ULTRIUM 2Revision: 1703 Serial No: 5150-400 Finally, I want to run the amtapetype to identify the tape type definition but was enable to do so! JHL GENERAL RULE #1 Never, Never touch amanda commands until your hardware works with system commands! Make sure you can use things like mt, dd, tar, ufsdump, cat, mtx, ... with your drive/changer before adding the added complexity of the amanda layer. When I typed: #amtapetype: /dev/rmt I received the following error message: #amtapetype: /dev/rmt: rewinding tape: Inappropriate ioctl for device On Solaris, /dev/rmt is a directory, so clearly tape commands are inappropriate. When I typed: # amtapetype: /dev/rmt/0 OR #amtapetype -f /dev/rst13 OR #amtapetype -f /dev/nrst13 The output is : # amtapetype: could not open /dev/nst13: No such file or directory And I presume the /dev/rmt directory is empty? Any idea why I am getting those error messages and whether I miss a step in defining a new tape drive, or any command that describe where the new tape drive is mounted? For a tape drive to work on Solaris there must be an appropriate entry in the st (Scsi Tape) driver configuration file /kernel/drv/st.conf. On my Solaris 9 system (x86, but it should not matter) there are no entries for 'certance' or for 'ultrium 2' drives. Sometimes I've installed drives that had instructions to edit the file to add driver configuration information for the new drive. Your's didn't? Was it listed by the vendor as Solaris supported? I'm assuming that your new drive is the only drive on the system. If that is a bad assumption, don't do the following. Remove all the symbolic link entries in /dev/rmt and we will recreate them if the system can configure the driver for your tapedrive. rm -f /dev/rmt/* devfsadm -c tape If the directory /dev/rmt is still empty, the system doesn't know how to work with your tape drive and there is nothing amanda can do about it. You have to get it working with the system first. If the above failed, you may also get a driver failed to attach if you run the command devfsadm -i st. I.e., the st driver could not find a device it could work with. This is propably a silly question but I am stuck so any help is welcome... You did follow the Certance installation instructions for Solaris OS right? -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: mounting/identifying a new tape drive
On Thu, Feb 03, 2005 at 12:47:34PM -0500, Jon LaBadie wrote: rm -f /dev/rmt/* devfsadm -c tape Does that do (the tape-related subset of) the same thing as a reconfiguration boot, i.e. with -r? -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / The animal that coils in a circle is the serpent; that's why so many cults and myths of the serpent exist, because it's hard to represent the return of the sun by the coiling of a hippopotamus. - Umberto Eco, Foucault's Pendulum
Re: mounting/identifying a new tape drive
On Thu, Feb 03, 2005 at 01:18:44PM -0500, Eric Siegerman wrote: On Thu, Feb 03, 2005 at 12:47:34PM -0500, Jon LaBadie wrote: rm -f /dev/rmt/* devfsadm -c tape Does that do (the tape-related subset of) the same thing as a reconfiguration boot, i.e. with -r? Eric, I believe that -C -c tape does the equiv of -r on reboot but only for tape devices. -c for create, -C for cleanup. -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / The animal that coils in a circle is the serpent; that's why so many cults and myths of the serpent exist, because it's hard to represent the return of the sun by the coiling of a hippopotamus. - Umberto Eco, Foucault's Pendulum --- Brian R Cuttler [EMAIL PROTECTED] Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773
Re: mounting/identifying a new tape drive
On Thu, Feb 03, 2005 at 12:47:34PM -0500, Jon LaBadie wrote: On Thu, Feb 03, 2005 at 11:53:36AM -0500, Gil Naveh wrote: Hello, I have a Solaris 9 box and we bought a new tape drive model Certance LTO-2. Currently, I am trying to identify the tape drive using amtapetype command but it does not work. For a tape drive to work on Solaris there must be an appropriate entry in the st (Scsi Tape) driver configuration file /kernel/drv/st.conf. On my Solaris 9 system (x86, but it should not matter) there are no entries for 'certance' or for 'ultrium 2' drives. Sometimes I've installed drives that had instructions to edit the file to add driver configuration information for the new drive. Your's didn't? Was it listed by the vendor as Solaris supported? You should normally only need to edit st.conf for drive types not natively supported by the driver. LTO-2 has had native support in Solaris 9 since Jan 2003 (introduced in patch 113324-03, which was obsoleted by 113277-08).
RE: mounting/identifying a new tape drive
Great, Thanks much for the help :) According to the manufacture I have to add in the file st.conf the tape device configuration and then reboot -r. But do I realy have to reboot -r? or does typing devfsadm -c tape would be enough? After modifying the file dt.conf according to manufacture spec I tried: rm -f /dev/rmt/* devfsadm -c tape but I don't think it identified the new tape drive... mt -f /dev/rmt/0n I got: /dev/rmt/0n: no tape loaded or drive offline Rebooting the server is a little painful - users has to logout etc. Thx, gil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Cuttler Sent: Thursday, February 03, 2005 1:34 PM To: Eric Siegerman Cc: Amanda-Users Subject: Re: mounting/identifying a new tape drive On Thu, Feb 03, 2005 at 01:18:44PM -0500, Eric Siegerman wrote: On Thu, Feb 03, 2005 at 12:47:34PM -0500, Jon LaBadie wrote: rm -f /dev/rmt/* devfsadm -c tape Does that do (the tape-related subset of) the same thing as a reconfiguration boot, i.e. with -r? Eric, I believe that -C -c tape does the equiv of -r on reboot but only for tape devices. -c for create, -C for cleanup. -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / The animal that coils in a circle is the serpent; that's why so many cults and myths of the serpent exist, because it's hard to represent the return of the sun by the coiling of a hippopotamus. - Umberto Eco, Foucault's Pendulum --- Brian R Cuttler [EMAIL PROTECTED] Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773
Re: mounting/identifying a new tape drive
On Thu, Feb 03, 2005 at 03:02:36PM -0500, Gil Naveh wrote: but I don't think it identified the new tape drive... mt -f /dev/rmt/0n I got: /dev/rmt/0n: no tape loaded or drive offline On the contrary, I think that means your devfsadm command *did* work. You're now getting a tape-specific error message, instead of a generic one; that means the system now understands that /dev/rmt/0n is in fact a tape drive. So, taking the message at face value ... Was there a tape loaded? Was the drive online? -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / The animal that coils in a circle is the serpent; that's why so many cults and myths of the serpent exist, because it's hard to represent the return of the sun by the coiling of a hippopotamus. - Umberto Eco, Foucault's Pendulum
RE: mounting/identifying a new tape drive
YE, thank you Eric,Jon, and Brian :) It's the first time I'm doing it so I needed some help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Eric Siegerman Sent: Thursday, February 03, 2005 4:03 PM To: Amanda-Users Subject: Re: mounting/identifying a new tape drive On Thu, Feb 03, 2005 at 03:02:36PM -0500, Gil Naveh wrote: but I don't think it identified the new tape drive... mt -f /dev/rmt/0n I got: /dev/rmt/0n: no tape loaded or drive offline On the contrary, I think that means your devfsadm command *did* work. You're now getting a tape-specific error message, instead of a generic one; that means the system now understands that /dev/rmt/0n is in fact a tape drive. So, taking the message at face value ... Was there a tape loaded? Was the drive online? -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / The animal that coils in a circle is the serpent; that's why so many cults and myths of the serpent exist, because it's hard to represent the return of the sun by the coiling of a hippopotamus. - Umberto Eco, Foucault's Pendulum