On 4/4/07, <b class="gmail_sendername">Richard Riley</b> <<a href="mailto:rriley@procuri.com">rriley@procuri.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a nightly backup process that uses tar writing the output to a<br>file on an NFS mount. It had been working fine for weeks and suddenly<br>on Tuesday started failing with error code of 141. Anyone know where I<br>
can find out what the error code means. I have tried a google search<br>and looking at tar source code, both to no avail. I have another<br>machine running the exact same script also writing to NFS mount and is<br>experiencing no problems. The machine that has started failing is RHEL
<br>3. The second machine is running RHEL 4 and the NFS server is running<br>RHEL 4. They are manually kept up to date using up2date command. Here<br>is the script.<br><br>day=`date +%a`<br>if [ "$day" == "Sun" ]
<br> then<br> STAMP="Wk`date +%U`-$day`date +%m%d%H%M`"<br> else<br> STAMP="$day`date +%m%d%H%M`"<br>fi<br><br>logfile=/var/log/db-bkup/bkuplog-$STAMP<br>db_bkup_file=$bkup_hold_dir/`hostname`-db_bkup-$STAMP.tar.gz
<br><br># Stop mysql process to start backup, force flush to disk<br>/sbin/service mysql stop<br><br>echo "backup started at `date`" >$logfile<br>cd /home/<br><br># backup /var/lib/mysql to $db-bkup-file directory
<br>tar -czv --ignore-failed-read --totals mysql >$db_bkup_file 2>>$logfile<br>CODE=$?<br>if [ $CODE == 0 ]<br>then<br> echo "backup completed at `date`" >>$logfile<br>else<br> echo "Backup failed at `date` with error code ($CODE)" >>$logfile
<br>fi<br><br># Start mysql service again, will resync with master at this point<br>/sbin/service mysql start<br><br><br>The tar command is failing in the exact same place every time,<br>regardless of when run from cron or kicked off manually. I know this by
<br>the logfile which shows a list of all the files written. It appears to<br>be part way through a directory. If I run tar on that directory alone,<br>it completes fine. I can find no other error indicators.<br><br><br>
<br>Richard Riley<br>System Administrator<br><br>Procuri Inc.<br><a href="http://www.procuri.com">www.procuri.com</a></blockquote><div><br>Why are you asking about tar usage on this email list? Was this page not clear enough?
<br><br><a href="https://www.redhat.com/mailman/listinfo/rhn-users">https://www.redhat.com/mailman/listinfo/rhn-users</a><br> <br></div><br></div><br>