<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: fbackup error output file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078271#M142102</link>
    <description>Bill,&lt;BR /&gt;&lt;BR /&gt; Thank you for responding. My most recent log looks like this:&lt;BR /&gt;Output from fbackup:&lt;BR /&gt;&lt;BR /&gt;br_backup: Invoking fbackup. See /var/sam/log/br_log for details.&lt;BR /&gt;fbackup(1004): session begins on Thu Jun 19 09:10:02 2008&lt;BR /&gt;fbackup(1517): /net not backed up - 'n' option (NFS) not specified &lt;BR /&gt;fbackup(3203): volume 1 has been used 12 time(s)&lt;BR /&gt;fbackup(3024): writing volume 1 to the output file /dev/rmt/1m&lt;BR /&gt;fbackup(3009): WARNING: File number 50389 (/ora2/prtlprod/data/undotbs_01.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50403 (/ora2/prtprod/data/prodphy_d_d03.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50404 (/ora2/prtprod/data/rbs_01.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50466 (/ora3/prtprod/data/system_02.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3003): normal EOT&lt;BR /&gt;fbackup(3316): enter '^[yY]' when volume 2 is ready on /dev/rmt/1m,&lt;BR /&gt; or '^[nN]' to discontinue:&lt;BR /&gt;fbackup(3004): writer aborting&lt;BR /&gt;fbackup(1002): Backup did not complete : Reader or Writer process exit &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My chgvol script kicks in at fbackup(3003). The operator inserts the next tape and I checked status using  st -f /dev/rmt/1m -s&lt;BR /&gt;returning "Device is OK and available".&lt;BR /&gt;&lt;BR /&gt;I ran the script that touches the tape_is_ready file. The chgvol script sees this and executes an exit 0. Shortly after I get the (3316) prompt and remaining messages dumped to the log. Do I need another parameter in my fbackup command such as -y ? Will including -y trump the chgvol script?</description>
    <pubDate>Thu, 19 Jun 2008 14:48:58 GMT</pubDate>
    <dc:creator>Steve Horvat</dc:creator>
    <dc:date>2008-06-19T14:48:58Z</dc:date>
    <item>
      <title>fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078258#M142089</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am doing a cron fbackup on to the tape and are wondering where this cron fbackup error output file located.  Can I specify this error log manually?  Thanks so much.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kelvin</description>
      <pubDate>Thu, 25 Sep 2003 09:06:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078258#M142089</guid>
      <dc:creator>Kelvin Yu</dc:creator>
      <dc:date>2003-09-25T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078259#M142090</link>
      <description>On your crontab entry just redirect standard error to a file. 2&amp;gt; /tmp/error.log</description>
      <pubDate>Thu, 25 Sep 2003 09:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078259#M142090</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2003-09-25T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078260#M142091</link>
      <description>Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;Since this is a cron job, in case of error occurs while backing up, how can I respond to the request that might arise, such as "would you like to enter a new output file?".  In our situation, if there are problems during backing up, the normal step is to exiting out and let me check that out later.&lt;BR /&gt;&lt;BR /&gt;How can I go about to do that?  Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kelvin</description>
      <pubDate>Fri, 26 Sep 2003 08:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078260#M142091</guid>
      <dc:creator>Kelvin Yu</dc:creator>
      <dc:date>2003-09-26T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078261#M142092</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;Check this link:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x3a1272106351d5118fef0090279cd0f9%2C00.html&amp;amp;admit=716493758+1064584447627+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x3a1272106351d5118fef0090279cd0f9%2C00.html&amp;amp;admit=716493758+1064584447627+28353475&lt;/A&gt;&lt;BR /&gt;As suggested by Sachin Patel, you could try to run "mt" command before the backup, for testing purposes. If all OK, then you can follow with the backup.&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Fri, 26 Sep 2003 08:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078261#M142092</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-26T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078262#M142093</link>
      <description>Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I did "mt" before I start the fbackup.  What I mean is error occurs while backing up.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kelvin</description>
      <pubDate>Fri, 26 Sep 2003 09:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078262#M142093</guid>
      <dc:creator>Kelvin Yu</dc:creator>
      <dc:date>2003-09-26T09:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078263#M142094</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;And what are the previous error messages before "would you like to enter a new output file"?&lt;BR /&gt;Have you tried to clean the drive, or use other tape?&lt;BR /&gt; &lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Fri, 26 Sep 2003 10:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078263#M142094</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-26T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078264#M142095</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;By default all cron event are sending at cron owner mailbox, where you can find a detail of the command execution. Also you can redirect the command output into your cron definition:&lt;BR /&gt;&lt;BR /&gt;30 9 * * * /PATH/your_scrip.sh 2&amp;gt; /PATH/debug.log&lt;BR /&gt;&lt;BR /&gt;or keep both of them (mail and debug file):&lt;BR /&gt;&lt;BR /&gt;30 9 * * * /PATH/your_scrip.sh 2&amp;gt;&amp;amp;1|tee -a /PATH/debug.log&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Fri, 26 Sep 2003 10:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078264#M142095</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-09-26T10:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078265#M142096</link>
      <description>Check /var/adm/cron/log.&lt;BR /&gt;* * * * * /usr/sbin/fbackup -options &amp;gt; /path/to/logfile (/tmp/fbackuplog, or whatever suits you) 2&amp;gt;&amp;amp;1 will redirect all messages to the logfile.&lt;BR /&gt;&lt;BR /&gt;But if you don't have one specified, check /var/adm/cron/log.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Sep 2003 10:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078265#M142096</guid>
      <dc:creator>Jon Mattatall</dc:creator>
      <dc:date>2003-09-26T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078266#M142097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for all the reply.&lt;BR /&gt;&lt;BR /&gt;I have re-directed the output &amp;amp; error to a log file.  However, while the fbackup is running, there is problem on the tape and the system will ask for "would you like to enter a new output file?".  Since this is a cron job, I would not be able to respond interactively.  Now, how can I respond to this question?  Since there is an error, I normally want to exit and let me check that out later.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kelvin</description>
      <pubDate>Fri, 26 Sep 2003 11:06:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078266#M142097</guid>
      <dc:creator>Kelvin Yu</dc:creator>
      <dc:date>2003-09-26T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078267#M142098</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I think that your best option here is to solve the problem that generates the message ""would you like to enter a new output file?".&lt;BR /&gt;But now I'm not sure if I understand your question correctly. You don't want to respond automatically to that question, since you don't know the problem that has caused it.&lt;BR /&gt;So, you only want to exit at the precise moment of the error and check that out later, with something like an script "tailing" the errorlog and aborting the fbackup when that message appears?&lt;BR /&gt;Or probably I'm absolutely wrong ...&lt;BR /&gt;&lt;BR /&gt;Anyway, could you please post all the error log?&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Fri, 26 Sep 2003 12:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078267#M142098</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-26T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078268#M142099</link>
      <description>I tink what you mean is that fbackup may run out of tape and pauses to ask for another tape. This is how the chgvol option works. Always specify a configuration file as the default parameters are designed for (very old) reel-to-reel drives, and specify a script to run when fbackup runs out of tape. This script would have to alert the operator to insert a new tape, then acknowledge the tape change to the script which then starts fbackup to continue. Since it is doubtful that an operator would simply stare at a console all night, the script will have to reach a signalling device, perhaps a pager or cellphone with text capability. Signalling the script can be done with traps and user signals.</description>
      <pubDate>Fri, 26 Sep 2003 19:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078268#M142099</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-09-26T19:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078269#M142100</link>
      <description>Will fbackup automatically resume after the script is notified that a tape has been inserted or is there a command that must be issued?&lt;BR /&gt; &lt;BR /&gt;In other words, if the script is looking for a tape_is_ready file that the operator creates with another script once a new tape is inserted. Do I need to issue a command for fbackup to resume other than an exit 0 to get out of the chgvol script?</description>
      <pubDate>Thu, 19 Jun 2008 11:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078269#M142100</guid>
      <dc:creator>Steve Horvat</dc:creator>
      <dc:date>2008-06-19T11:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078270#M142101</link>
      <description>&amp;gt; Will fbackup automatically resume after the script is notified that a tape has been inserted or is there a command that must be issued?&lt;BR /&gt; &lt;BR /&gt;Yes, fbackup calls the chgvol sript. What happens inside that script is what you will define. An exit 0 tells fbackup to continue. &lt;BR /&gt; &lt;BR /&gt;&amp;gt; Do I need to issue a command for fbackup to resume other than an exit 0 to get out of the chgvol script?&lt;BR /&gt; &lt;BR /&gt;No. However, be very careful to test the chgvol script using the batch command to emulate cron. Asume the very worst: the operator will popout the current tape and then put in a write-protected tape. Test the status of the new tape (mt ... status). The operator will also put the same tape back in again. But by design, fbackup looks at the header on the tape and will discover it is a previous tape in this set. fbackup will issue an error message and run your chgvol script again.</description>
      <pubDate>Thu, 19 Jun 2008 14:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078270#M142101</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-06-19T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078271#M142102</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt; Thank you for responding. My most recent log looks like this:&lt;BR /&gt;Output from fbackup:&lt;BR /&gt;&lt;BR /&gt;br_backup: Invoking fbackup. See /var/sam/log/br_log for details.&lt;BR /&gt;fbackup(1004): session begins on Thu Jun 19 09:10:02 2008&lt;BR /&gt;fbackup(1517): /net not backed up - 'n' option (NFS) not specified &lt;BR /&gt;fbackup(3203): volume 1 has been used 12 time(s)&lt;BR /&gt;fbackup(3024): writing volume 1 to the output file /dev/rmt/1m&lt;BR /&gt;fbackup(3009): WARNING: File number 50389 (/ora2/prtlprod/data/undotbs_01.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50403 (/ora2/prtprod/data/prodphy_d_d03.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50404 (/ora2/prtprod/data/rbs_01.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3009): WARNING: File number 50466 (/ora3/prtprod/data/system_02.dbf)&lt;BR /&gt;   was not successfully backed up&lt;BR /&gt;fbackup(3003): normal EOT&lt;BR /&gt;fbackup(3316): enter '^[yY]' when volume 2 is ready on /dev/rmt/1m,&lt;BR /&gt; or '^[nN]' to discontinue:&lt;BR /&gt;fbackup(3004): writer aborting&lt;BR /&gt;fbackup(1002): Backup did not complete : Reader or Writer process exit &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My chgvol script kicks in at fbackup(3003). The operator inserts the next tape and I checked status using  st -f /dev/rmt/1m -s&lt;BR /&gt;returning "Device is OK and available".&lt;BR /&gt;&lt;BR /&gt;I ran the script that touches the tape_is_ready file. The chgvol script sees this and executes an exit 0. Shortly after I get the (3316) prompt and remaining messages dumped to the log. Do I need another parameter in my fbackup command such as -y ? Will including -y trump the chgvol script?</description>
      <pubDate>Thu, 19 Jun 2008 14:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078271#M142102</guid>
      <dc:creator>Steve Horvat</dc:creator>
      <dc:date>2008-06-19T14:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup error output file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078272#M142103</link>
      <description>It looks like you are using SAM:&lt;BR /&gt; &lt;BR /&gt;&amp;gt; br_backup: &lt;BR /&gt; &lt;BR /&gt;You will need a config file which normally isn't an option in SAM. Here is a typical config file:&lt;BR /&gt; &lt;BR /&gt;blocksperrecord 4096&lt;BR /&gt;records 64&lt;BR /&gt;checkpointfreq 4096&lt;BR /&gt;readerprocesses 6&lt;BR /&gt;maxretries 5&lt;BR /&gt;retrylimit 5000000&lt;BR /&gt;maxvoluses 200&lt;BR /&gt;filesperfsm 2000&lt;BR /&gt;chgvol /full/path/to/chgvol.sh&lt;BR /&gt; &lt;BR /&gt;Be sure to use a fullpath to the script and make sure it is executable by the user running fbackup. Make sure the script returns a zero return code (exit 0). Also, make sure you use the values above -- you'll get at from 30% to 200% improvement in speed.&lt;BR /&gt; &lt;BR /&gt;Your chgvol script will have to monitor the tape status because it is run as soon as the tape starts to rewind. So it will take a while before the tape is ready to be ejected. Then monitor the tape to see when the new one is ready. Once true, use exit 0</description>
      <pubDate>Fri, 20 Jun 2008 00:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-error-output-file/m-p/3078272#M142103</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-06-20T00:21:18Z</dc:date>
    </item>
  </channel>
</rss>

