Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email message from AIX

Status
Not open for further replies.

Edward999

Programmer
Dec 26, 2002
112
MY

Hi I'm using AIX 4.3 and i'm new to AIX. I keep getting this message and i don't know what to do.

I really have no idea what is this.

Please help.Thanks for any reply


Message 1:
From daemon Wed Dec 7 05:01:07 2005
Date: Wed, 7 Dec 2005 05:01:07 +0800
From: daemon
To: root

backup: 0511-089 Cannot open /dev/rmt0.1: The device is not ready for operation.
Mount volume 1 on /dev/rmt0.1.
Press Enter to continue.

*****************************************************************
cron: The previous message is the standard output
and standard error of one of the cron commands.

 
It's asking you to put a tape in the drive. Presumably you have a script in cron to do a backup at 5:00 am, and this is it's output if it can't find a tape in the drive. Either put a tape in the drive or edit out the backup job until you're ready to reinstate it (be aware of the possible ramifications of not having a backup though!).

You should be able to see your backup job in the crontab using crontab -l

Post back if you think we can be of more help.
 

Thanks for your fast response. Can i know how to change my cron job script? I try to type crontab -l i get the following. Thanks again for any reply

/ # crontab -l
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
01 4 * * * /etc/lpp/diagnostics/bin/test_batt 1>/dev/null 2>/dev/null
01 3 * * * /etc/lpp/diagnostics/bin/run_ela 1>/dev/null 2>/dev/null
0 5 * * * /var/spool/cron/crontabs/bkupdaily >> /usr/spool/cron/crontabse
#0 5 * * * /var/spool/cron/crontabs/bkupmthly >> /usr/spool/cron/crontabe
#0 5 * * * /var/spool/cron/crontabs/bkupmthly > /dev/console
#0 6 4 7 * /var/spool/cron/crontabs/bkupweekly > /dev/console
#0 10 * * * /var/spool/cron/crontabs/bkupfull > /dev/console
#0 6 * * * /var/spool/cron/crontabs/adhoc > /dev/console
#35 4 * * * /mm7016t/simon/run_putcp > /dev/null
#0 6,7,9,11,14,17,19 * * 1-6 /mmdb/geisbt/tcp/tcpcom > /dev/console
0 7 * * * /usr/spool/cron/crontabs/zipup > /dev/console
#59 12 1 5 * /bin/touch /etc/nologin > /dev/console
#0 18 1 5 * /bin/rm /etc/nologin > /dev/console
#0 10,12,15,18 * * 1-5 /intervan/edia/scripts/ediavan > /dev/console
#0 18 * * 1-5 /intervan/edia/scripts/ediavan > /dev/console
#0 15 * * 6 /intervan/edia/scripts/ediavan > /dev/console
#0 12 * * 0 /intervan/edia/scripts/ediavan > /dev/console
#0 10 * * 1-5 /intervan/sc/scripts/scftp > /dev/console
#0 9,12,15 * * 2 /usr/spool/cron/crontabs/chgtape > /dev/console


 
You would either edit (vi) the script /var/spool/cron/crontabs/bkupdaily or edit the crontab file itself (crontab -e) and comment out the /var/spool/cron/crontabs/bkupdaily line. You might want to do

crontab -l > ${HOME}/crontab.save.${LOGNAME}.YYYYMMDD

to have a backup copy in case you jumble up the crontab -e editing session.

I can only second Ken's thought on not having a periodic backup though.


HTH,

p5wizard
 
The line:

0 5 * * * /var/spool/cron/crontabs/bkupdaily >> /usr/spool/cron/crontabse

appears to be causing the message. It runs the bkupdaily job) every day at 5:00 am. If there is no tape present in the drive, you will receive the email you posted earlier.

To edit your crontab you have two options:

1. Issue a crontab -e to open a vi session using the existing cron and arrow down to the beginning of the line containing the entry. Then type i followed by # to comment out the entry so that it will no longer be read. Then press ESC followed by :wq to write the new version of the crontab.

2. If you're unsure, a safer option is to edit a copy of the existing crontab and only activating it when you're happy with your edit. cd to the directory containing the crontab, assuming this is root's crontab, this is /var/spool/cron/crontabs

Copy the file cp -p root root.new

vi root.new to make the change as in 1. above.

When happy with the change issue the command crontab root.new to pick up the new setting and overwite the existing version.

As I mention above, disabling this will leave you with no backup, so perhaps matters should be rectified in your procedures to make sure a tape is in the drive so that the backup can be taken. Hope this helps.
 

Thanks you very much to both of you. Really appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top