- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: [Can't open /dev/tty to prompt for more media]
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-21-2005 08:34 PM
02-21-2005 08:34 PM
Thanks,
Eric Antunes
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:11 PM
02-21-2005 09:11 PM
Re: [Can't open /dev/tty to prompt for more media]
Seems your backup is too big to fit on one tape, and it is trying to open an interactive session to ask what you want to do...
Since its a batch...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:21 PM
02-21-2005 09:21 PM
Re: [Can't open /dev/tty to prompt for more media]
Just checked, and yes according to man tar:
"When end-of-tape is reached, tar prompts the user for a new special file and continues."
As you can see it is trying to prompt but you are in batch mode using cron!
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:28 PM
02-21-2005 09:28 PM
Re: [Can't open /dev/tty to prompt for more media]
How can it be a size issue if the database files have always the same size (19368000)? And sometimes it works fine and others not.
I've noticed that this tape drive never asks for the cleaning tape, is it normal??
Thanks,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:31 PM
02-21-2005 09:31 PM
Re: [Can't open /dev/tty to prompt for more media]
(a) Are you using hardware compression or software compression?
(b) Are you using the same device name? (some devices support compression, others don't)
(c) switches on the device itself (enable or disable) compression.
(d) are you using the same length tape each time?
Just my 2cents worth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:34 PM
02-21-2005 09:34 PM
Solution(another 2cents worth)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:44 PM
02-21-2005 09:44 PM
Re: [Can't open /dev/tty to prompt for more media]
rmt/0m should compress, and therefore the result may vary according to what is in the table spaces. You will notice this with full exports, depending when it can almost vary by almost 40% while you see always the same size if you look at disk occupation.
I suppose here lies your problem. about the tape I dont know what type you are using but usually they have some leds indicating a urgent need for cleaning, the next step beeing refusing to write...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:48 PM
02-21-2005 09:48 PM
Re: [Can't open /dev/tty to prompt for more media]
(a) Are you using hardware compression or software compression? R: I think it's hardware since the compression led is on. But how can I be certain?
(b) Are you using the same device name? (some devices support compression, others don't)? R: I always use /dev/rmt/0m...
(c) switches on the device itself (enable or disable) compression. R: Enables...
(d) are you using the same length tape each time? R: Yes
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:54 PM
02-21-2005 09:54 PM
Re: [Can't open /dev/tty to prompt for more media]
e.g.
Drive: Quantum DLT4700
Format: DLT 81633 bpi 64 tracks compressed (40 GB)
Status: [41118384] BOT online compression immediate-report-mode
File: 0
Block: 0
Shows my device has hardware compression enabled. (I think)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 09:56 PM
02-21-2005 09:56 PM
Re: [Can't open /dev/tty to prompt for more media]
I understand this compression variable. But I thought those hp dlt IV data cartdrige tapes I'm using would support 40Gb in compressed mode and 20Gb in non-compressed mode...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 10:06 PM
02-21-2005 10:06 PM
Re: [Can't open /dev/tty to prompt for more media]
I'm going to check this in the afternoon since I'm now backing up the files again to see if it works.
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 01:53 AM
02-22-2005 01:53 AM
Re: [Can't open /dev/tty to prompt for more media]
Drive: QUANTUM DLT8000
Format:
Status: [41118985] BOT online compression immediate-report-mode
File: 0
Block: 0
It seems to have no format defined...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 01:57 AM
02-22-2005 01:57 AM
Re: [Can't open /dev/tty to prompt for more media]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:04 AM
02-22-2005 02:04 AM
Re: [Can't open /dev/tty to prompt for more media]
I don't know whether this will help ...
To perform a Basic Health Check (BHC) test from the DLT8000 front panel:
Press and hold the Density Select button until the top two Density Indicators LEDs (1.0/15.0 & 20.0) on the left side of the panel light up.
Release the the Density Select button and press it once.
Result: The top two indicators should start to flash in unison to indicate that the BHC test has been started.
BHC PASS
The top four density LEDs will light and remain solid for approximately five seconds then will return to their original state.
BHC FAIL
The top four Density Indicators will flash in unison for approximately five seconds then will return to their original state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:08 AM
02-22-2005 02:08 AM
Re: [Can't open /dev/tty to prompt for more media]
When figuring tape usage, it is best to figure based on the tapes native capacity (20GB in this case) and if you get better than that, then consider yourself lucky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:27 AM
02-22-2005 02:27 AM
Re: [Can't open /dev/tty to prompt for more media]
I got a BHC FAIL since the top density indicators have flashed for a few seconds... Now what??
Thanks Patrick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:33 AM
02-22-2005 02:33 AM
Re: [Can't open /dev/tty to prompt for more media]
Just to see, I added 2 lines in my root cronfile with :
1) ulimit
2) ulimit -a
Here is the output:
more ulimit.cron
unlimited
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 02:43 AM
02-22-2005 02:43 AM
Re: [Can't open /dev/tty to prompt for more media]
Do you see any errors in syslog?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:12 AM
02-22-2005 03:12 AM
Re: [Can't open /dev/tty to prompt for more media]
I think this can be the real problem (look at my "ulimit" and "ulimit -a" values):
unlimited
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 524288
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:23 AM
02-22-2005 03:23 AM
Re: [Can't open /dev/tty to prompt for more media]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:25 AM
02-22-2005 03:25 AM
Re: [Can't open /dev/tty to prompt for more media]
Yes, at the time cron gave the error, I've got this on syslog.log:
Feb 22 07:32:22 hp440 EMS [2503]: ------ EMS Event Notification ------ Value: "CRITICAL (5)" for Resource
: "/storage/events/tapes/SCSI_tape/0_7_0_0.3.0" (Threshold: >= " 3") Execute the following command
to obtain event details: /opt/resmon/bin/resdata -R 164036610 -r /storage/events/tapes/SCSI_tape/0_7_0_0.
3.0 -n 164036611 -a
And running the resdata command as it is said, I get the file in attachment but this may be a consequence of the error at cron, don't you think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:27 AM
02-22-2005 03:27 AM
Re: [Can't open /dev/tty to prompt for more media]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:38 AM
02-22-2005 03:38 AM
Re: [Can't open /dev/tty to prompt for more media]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:43 AM
02-22-2005 03:43 AM
Re: [Can't open /dev/tty to prompt for more media]
You could try to diagnose after switching off/on again the device with this tool to see if there were any evolution...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2005 03:56 AM
02-22-2005 03:56 AM
Re: [Can't open /dev/tty to prompt for more media]
Don't you think that my "ulimit -a" data (524288 kbytes) is to low? What is ulimit anyway and why is it different with -a option??
I've already switched the tape driver before doing the backup by myself (without using cron). In stm, I get the following (Unit Attention at the last line...):
Log creation time: Tue Feb 22 16:49:37 2005
Hardware path: 0/7/0/0.3.0
Device Qualifier: QUANTUMDLT8000
Product ID: DLT8000 Hardware Path: 0/7/0/0.3.0
Device Type: SCSI Tape Logical Unit Number: 0
Vendor: QUANTUM Product Rev Level: 0255
Firmware Major Version: 85 Firmware Minor Version: 0
Read Errors Corrected: 0 Read Errors Uncorrected: 0
Write Errors Corrected: 0 Write Errors Uncorrected: 0
Tape Motion Hours: 1011 Power On Hours: 6747
Read Compression Ratio: 1.0 : 1 Write Compression Ratio: 1.0 : 1
Compression Status: Enabled
Serial Number: CXA32P2016
Drive Status: Unit Attention
Thanks,
Eric