- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar cannot open /dev/rmt/0mn
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
Discussions
Discussions
Forums
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
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
тАО04-04-2008 03:37 AM
тАО04-04-2008 03:37 AM
Re: tar cannot open /dev/rmt/0mn
could you post the output of
# file /dev/rmt/0m
# ll /dev/rmt/0m
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 03:38 AM
тАО04-04-2008 03:38 AM
Re: tar cannot open /dev/rmt/0mn
it shows me list of file in tape .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 03:43 AM
тАО04-04-2008 03:43 AM
Re: tar cannot open /dev/rmt/0mn
# file /dev/rmt/0m
/dev/rmt/0m: character special (205/143360)
# ll /dev/rmt/0m
crwxrwxrwx 2 bin bin 205 0x023000 Apr 5 05:31 /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 03:56 AM
тАО04-04-2008 03:56 AM
Re: tar cannot open /dev/rmt/0mn
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 05:36 AM
тАО04-04-2008 05:36 AM
Re: tar cannot open /dev/rmt/0mn
In this case it was a .txt file. I later realized it was ioscan -funC tape if that made a difference.
One advantage of .txt attachments is that you do see the proper spacing.
>Being a HP-UX bigot, I browse on hp-ux
I too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2008 07:40 PM
тАО04-05-2008 07:40 PM
Re: tar cannot open /dev/rmt/0mn
As yu can read the content from the tape, and not write to it, the first thing that comes to my mind, just the may Mark has said "Is the tape write protected"? In most cases it is, so may be your problem is solved. If it is not write protected, let us know.
Cheers,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2008 01:20 AM
тАО08-06-2008 01:20 AM
Re: tar cannot open /dev/rmt/0mn
Hope this solution will solve your problem.
#ioscan -fnC tape
go to the /dev/rmt/ dir and delete all special files listed (be sure that you are in /dev/rmt/ directory).
Note: make sure about your tape device path after hitting above command:
#cd /dev/rmt
#rmsf -H
#ioscan -fnC tape
#insf -H 1/0/1/0/0/0.3.0 ....... path example
All the best
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2014 08:27 AM - edited тАО07-11-2014 08:30 AM
тАО07-11-2014 08:27 AM - edited тАО07-11-2014 08:30 AM
Re: tar cannot open /dev/rmt/0mn
I encountered this issue also and tried google and came across the thread, I tried all the abv suggested but nothing worked
Putting info here in case somebody googling for it.
my case was I was trying to do a solaris ufsdump from my sun server to a hpux server connect to a LTO3 tape drive.
ssh usgs0131_bk ufsdump 0ucf - /ist | dd bs=126b of=/dev/rmt/0mn
on the solaris server it kept saying cannot open /dev/rmt/0mn
So by elimination I tried troubleshoot on hpux server and tried using tar command and got the same error.
There's a useful command you need to know and that's mt, when I ran the mt command it showed it was write-protected. Basically I later learnt from another colleague that my LTO3 drive is not backward compatiable to LTO1 cartridge and that was the problem.
-- This is what you should see
root@USGS0127[/]#mt -f /dev/rmt/0mn stat
Drive: HP Ultrium 3-SCSI
Format:
Status: [41114400] BOT online compression immediate-report-mode
File: 0
Block: 0
-- I got the write protect message using LTO1 cartirdge even though it wasn't write protected
root@USGS0127[/]#mt -f /dev/rmt/0mn stat
Drive: HP Ultrium 3-SCSI
Format:
Status: [41114400] Write-Protected immediate-report-mode
File: 0
Block: 0
After I changed to the correct tape LTO3 or LTO2 it work
root@USGS0127[/]#ssh usgs0131_bk ufsdump 0ucf - /ist | dd bs=126b of=/dev/rmt/0mn
DUMP: Date of this level 0 dump: Fri Jul 11 23:18:06 2014
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/md/rdsk/d3 (usgs0131:/ist) to standard output.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 63 Kilobyte records
DUMP: Estimated 5145510 blocks (2512.46MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 5145460 blocks (2512.43MB) on 1 volume at 9080 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 0 dump on Fri Jul 11 23:18:06 2014
0+346148 records in
0+346148 records out
root@USGS0127[/]#
- Tags:
- mt
- « Previous
-
- 1
- 2
- Next »