- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar: cannot open /dev/rmt/0m
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
02-11-2008 05:35 PM
02-11-2008 05:35 PM
I am having trouble with a tape drive and was wondering if anyone might have some ideas.
when I execute a tar (or cpio or dd) I get an error:
# tar cvf /dev/rmt/0m /prd_db1/oracle/prd
tar: cannot open /dev/rmt/0m
dd returns
/dev/rmt/0m: Permission denied
and cpio returns:
cannot write in
I have already checked ioscan, the device is claimed:
# ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/1/1/1.1.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/0m /dev/rmt/c3t1d0BEST
/dev/rmt/0mb /dev/rmt/c3t1d0BESTb
/dev/rmt/0mn /dev/rmt/c3t1d0BESTn
/dev/rmt/0mnb /dev/rmt/c3t1d0BESTnb
I tried an
# rmsf -H 0/1/1/1.1.0
# insf -H 0/1/1/1.1.0
But this didn't fix the issue.
Also, there is a Data Protector 5.5 media agent on this server. I have checked that Data Protector is able to read and write to tapes in this device, which is strange since no other command works. I have disabled the device in DP, but even after doing that, none of the tar, dd or cpio commands work on the device.
I have also tried using /dev/rmt/0mn instead, but no change, that didn't work either.
Does anyone have any other ideas to fix this problem?
Thanks all!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 05:52 PM
02-11-2008 05:52 PM
Re: tar: cannot open /dev/rmt/0m
# mt -t /dev/rmt/0m fsf 1
fsf 1 failed: I/O error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 06:57 PM
02-11-2008 06:57 PM
Re: tar: cannot open /dev/rmt/0m
Looks like I found the reason for the errors, simple really. The tape operator inserted a tape that was write protected, and I just 'assumed' that it would be writable:
# mt -t /dev/rmt/0m status
Drive: HP Ultrium 2-SCSI
Format:
Status: [45114200] BOT write-protected online compression immediate-report-mode
File: 0
Block: 0
That's all it was. Will change write-protect tab and it should work after that.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 06:59 PM
02-11-2008 06:59 PM
Re: tar: cannot open /dev/rmt/0m
Do you have permission to open the device?
$ ll /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 10:55 PM
02-11-2008 10:55 PM