- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tape drive issue . ..
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
Forums
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
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
08-13-2008 09:33 PM
08-13-2008 09:33 PM
We are trying to connect ultrim external tape drive in a HP Unix 11.11 server, we got some error as below.
ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
tape 5 0/0/1/0.1.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/c0t1d0BEST /dev/rmt/c0t1d0BESTb /dev/rmt/c0t1d0BESTn /dev/rmt/c0t1d0BESTnb
tape 4 0/1/3/0.4.13.255.14.1.0 stape CLAIMED DEVICE IBM ULT3580-TD3
/dev/rmt/4m /dev/rmt/4mn /dev/rmt/c51t1d0BEST /dev/rmt/c51t1d0BESTn
/dev/rmt/4mb /dev/rmt/4mnb /dev/rmt/c51t1d0BESTb /dev/rmt/c51t1d0BESTnb
tape 3 0/1/3/0.4.19.255.14.8.0 stape CLAIMED DEVICE IBM ULT3580-TD3
/dev/rmt/3m /dev/rmt/3mn /dev/rmt/c49t8d0BEST /dev/rmt/c49t8d0BESTn
/dev/rmt/3mb /dev/rmt/3mnb /dev/rmt/c49t8d0BESTb /dev/rmt/c49t8d0BESTnb
In this output, you can see that in first tape drive it is not showing hardware path to use in backup.
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd318000 Failed open - st_san_safe enabled
0/0/1/0.1 tgt
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
0/0/1/0.1.0 stape
SCSI TAPE: dev = 0xcd001000 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd331080 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd001080 Failed open - st_san_safe enabled
0/0/1/0.1.0 stape
This is the dmesg, as we tried to reconnect the tape drive. and this tape drive is working in another server properly.
We have checked the value of st_san_safe parameter in kernel, it's "1"
We have tried to remove the hardware path and again installed with the help of insf. still the same output.
Please suggest how to proceed with this. . .
Regards,
Piyush Mathiya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:15 PM
08-13-2008 10:15 PM
Re: Tape drive issue . ..
Please provide following info
# model
# ioscan -fn
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:17 PM
08-13-2008 10:17 PM
Re: Tape drive issue . ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:25 PM
08-13-2008 10:25 PM
Re: Tape drive issue . ..
Check the /var/opt/resmon/log/event.log
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:26 PM
08-13-2008 10:26 PM
Re: Tape drive issue . ..
When a host application is writing data to a tape, another tape command like mt(1) could be issued from a different host to the same device using a device file without the
no-rewind-on-close option (i.e rewind-on-close). This second command would issue a rewind-on-close to the drive between writes (of the first host) causing the tape toreposition to beginning of tape (BOT). The first host that is writing to the drive would have no knowledge thatthe tape was repositioned and it would then continue
writing from the BOT, effectively overwriting the previously written data.
Resolution:
This patch introduces a kernel tuneable called "st_san_safe" which has a default state of DISABLED when this patch is installed. When st_san_safe is enabled by
setting "st_san_safe=1", this forces the stape driver to fail all opens to device files which do not have the no-rewind-on-close option with the errno "EINVAL". The stape driver will also log an entry into the syslog like the following:
vmunix: SCSI TAPE: dev = 0xcd002000 Failed open - st_san_safe enabled
When st_san_safe is enabled, mksf(1M) will only create new device files with a no-rewind-on-close option. The mksf(1M) command will fail with an error indicating an
invalid option was provided in the command line arguments. With st_san_safe enabled, lssf(1M) will not fully decode the density attribute of a tape special device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:33 PM
08-13-2008 10:33 PM
Re: Tape drive issue . ..
Can you please suggest, which patch need to install for that, to install it, it require reboot? as we have already changed the value of st_san_safe parameter to "1"
From where I can download this patch. . .
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:44 PM
08-13-2008 10:44 PM
Re: Tape drive issue . ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:49 PM
08-13-2008 10:49 PM
Re: Tape drive issue . ..
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:58 PM
08-13-2008 10:58 PM
SolutionIt's not totally clear what your problem here is...
You must already have the patch which adds st_san_safe as otherwise you wouldn't see that kernel parameter at all.
The behaviour of st_san_safe is very simple... it stops you from opening rewind-on-close device files for all devices of type stape.
So in your output above for example it would stop you using /dev/rmt/4m and /dev/rmt/3m as they are rewind-on-close devices, but you can still use /dev/rmt/3mn and /dev/rmt/4mn.
However I'm guessing your problem is that for the first tape drive (The HP one rather than the IBM one), your problem is that you're not seeing the expected /dev/rmt/5mn listed in the output of ioscan yes?
This is probably just because you have some old device files hanging around in /dev/rmt which have prevented insf from creating the correct new device files. To fix this, do the following:
1. Run the command:
lssf /dev/rmt/* | grep \?\?\?
This will list old tape device files that no longer have a physical device associated with them.
2. Delete all the device files that you get from the lssf command listed above (you're supposed to use rmsf to do this, but rm is fine too)
3. Run the following command to regenerate any missing device files:
insf -e
4. Repeat your ioscan and see if you can see your device correctly now.
But of course remember that you *must* use the no-rewind-on-close device files (such as /dev/rmt/5mn) as long as you have st_san_safe set to 1.
Incidentally and not related to your problem, I note that the other devices are IBM tape drives, yet you are using the HP stape device driver. For most implementations I see with IBM tape drives, customers tend to get better results with IBM's own atdd device driver available from here:
ftp://ftp.software.ibm.com/storage/devdrvr/HPUX/11i_PCI/
(as you are on 11.11 I expect you'd get the 3.x version)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 11:11 PM
08-13-2008 11:11 PM
Re: Tape drive issue . ..
Thanks for you answer...
Once I logged into the server, will check and reply.
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 11:55 PM
08-13-2008 11:55 PM
Re: Tape drive issue . ..
HTH
Duncan
I am an HPE Employee
