<?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: Full Backup problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449342#M10407</link>
    <description>The issue with fbackup failures is that the new exit code of '4' is not&lt;BR /&gt;correctly recognized by SAM as a completion code. Fbackup introduced the exit&lt;BR /&gt;code of 4 with HP-UX release 11.0.  This exit code was also introduced at 10.20&lt;BR /&gt;via an fbackup patch of PHCO_18135.&lt;BR /&gt; According to the man fbackup(1M) page, the four valid exit codes are:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RETURN VALUE&lt;BR /&gt;------------&lt;BR /&gt;&lt;BR /&gt;fbackup returns one of the following values:&lt;BR /&gt;&lt;BR /&gt;0 upon normal completion.&lt;BR /&gt;1 if it is interrupted but allowed to save its state for possible restart.&lt;BR /&gt;2 if any error conditions prevent the session from completing.&lt;BR /&gt;4 if any warning conditions are encountered.&lt;BR /&gt;&lt;BR /&gt;If warnings occur, the operator should verify the fbackup logs to justify the&lt;BR /&gt;sanity of the backup taken.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With an exit code of 4, the backup completes but the fbackup logs should be&lt;BR /&gt;checked for errors.&lt;BR /&gt;&lt;BR /&gt;This issue will be corrected in the next HP-UX 11.0 SAM patch due to be released&lt;BR /&gt;around 02/00.  A workaround is also available at this time.  It requires editing&lt;BR /&gt;the /usr/sam/lbin/br_backup script to recognize exit code 4 correctly.  The&lt;BR /&gt;steps to edit this script are:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1.  cd /usr/sam/lbin&lt;BR /&gt;2.  cp br_backup br_backup.bak&lt;BR /&gt;3.  vi br_backup&lt;BR /&gt;4.  :se_nu           ***  This allows you to see the line numbers.  ***&lt;BR /&gt;5.  Move down to line #329&lt;BR /&gt;6.  Edit the code from:&lt;BR /&gt;&lt;BR /&gt;                            329  if [ "$exit_code" = "0" ]&lt;BR /&gt;&lt;BR /&gt;             to:&lt;BR /&gt;&lt;BR /&gt;                            329  if [ "$exit_code" = "0" -o "$exit_code" = "4" ]&lt;BR /&gt;&lt;BR /&gt;7.  :qw!&lt;BR /&gt;&lt;BR /&gt;Then try the backup again and see if it completes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HOW TO VERIFY THE BACKUP IS COMPLETE:&lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;To verify that the backup was successful, either create an index of the tape&lt;BR /&gt;with the frecover command:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       frecover -Nrosv -f /dev/rmt/0m &amp;gt; /tmp/index 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;This command reads the whole tape and creates alist of all the files&lt;BR /&gt;successfully backed up on the tape using device file /dev/rmt/0m, creating the&lt;BR /&gt;list in the file called 'index' in the /tmp directory.&lt;BR /&gt;&lt;BR /&gt;Or, you can use the -vN options with the frecover command.  The '-v' option is&lt;BR /&gt;verbose mode, so it prints everything to the screen.  '-N' prevents frecover&lt;BR /&gt;from recovering any files to disk.  It simply goes through the motions as if it&lt;BR /&gt;is.  The command is:&lt;BR /&gt;&lt;BR /&gt;                   frecover -vN /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;The most common cause of an exit code of 4 is the use of a new tape or a tape&lt;BR /&gt;that does not contain an fbackup header from a previous backup. When fbackup&lt;BR /&gt;begins on a new tape, it recognizes this and gives a warning as it generates the&lt;BR /&gt;proper tape headers. In this case, the exit code 4 can generally be assumed to&lt;BR /&gt;be a success.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Oct 2000 11:46:17 GMT</pubDate>
    <dc:creator>Alex Glennie</dc:creator>
    <dc:date>2000-10-02T11:46:17Z</dc:date>
    <item>
      <title>Full Backup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449340#M10405</link>
      <description>Could anyone assist me in analyzing the following error found in /var/adm/log/br_log when I scheduled a full system backup. Thanks.&lt;BR /&gt;&lt;BR /&gt;Full backup started on cnms : Sat Sep 30 16:00:00 SST 2000 (Scheduled Backup)&lt;BR /&gt;{ fbackup -0 -u    -g /etc/sam/br/graphPCAa04397 -I /var/sam/log/br_index.full -&lt;BR /&gt;c /etc/sam/br/fbackup_config -d /var/adm/fbackupfiles/dates -f /dev/rmt/0m } 2&amp;gt;&amp;amp;&lt;BR /&gt;1 &lt;BR /&gt;Full backup failed on cnms : Sat Sep 30 16:44:17 SST 2000 .&lt;BR /&gt;Exit code = 4&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2000 11:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449340#M10405</guid>
      <dc:creator>karen_poon</dc:creator>
      <dc:date>2000-10-02T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Full Backup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449341#M10406</link>
      <description>An exit status of 4 from fbackup means that there have been warnings issued. This is almost bound to happen as certain OS files will be in use when fbackup tries to copy them to tape.&lt;BR /&gt;&lt;BR /&gt;Try adding the -v (verbose) flag to fbackup so that you can see what the errors were.&lt;BR /&gt;&lt;BR /&gt;They are probably log files that you need not worry about.</description>
      <pubDate>Mon, 02 Oct 2000 11:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449341#M10406</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-02T11:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Full Backup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449342#M10407</link>
      <description>The issue with fbackup failures is that the new exit code of '4' is not&lt;BR /&gt;correctly recognized by SAM as a completion code. Fbackup introduced the exit&lt;BR /&gt;code of 4 with HP-UX release 11.0.  This exit code was also introduced at 10.20&lt;BR /&gt;via an fbackup patch of PHCO_18135.&lt;BR /&gt; According to the man fbackup(1M) page, the four valid exit codes are:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RETURN VALUE&lt;BR /&gt;------------&lt;BR /&gt;&lt;BR /&gt;fbackup returns one of the following values:&lt;BR /&gt;&lt;BR /&gt;0 upon normal completion.&lt;BR /&gt;1 if it is interrupted but allowed to save its state for possible restart.&lt;BR /&gt;2 if any error conditions prevent the session from completing.&lt;BR /&gt;4 if any warning conditions are encountered.&lt;BR /&gt;&lt;BR /&gt;If warnings occur, the operator should verify the fbackup logs to justify the&lt;BR /&gt;sanity of the backup taken.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With an exit code of 4, the backup completes but the fbackup logs should be&lt;BR /&gt;checked for errors.&lt;BR /&gt;&lt;BR /&gt;This issue will be corrected in the next HP-UX 11.0 SAM patch due to be released&lt;BR /&gt;around 02/00.  A workaround is also available at this time.  It requires editing&lt;BR /&gt;the /usr/sam/lbin/br_backup script to recognize exit code 4 correctly.  The&lt;BR /&gt;steps to edit this script are:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1.  cd /usr/sam/lbin&lt;BR /&gt;2.  cp br_backup br_backup.bak&lt;BR /&gt;3.  vi br_backup&lt;BR /&gt;4.  :se_nu           ***  This allows you to see the line numbers.  ***&lt;BR /&gt;5.  Move down to line #329&lt;BR /&gt;6.  Edit the code from:&lt;BR /&gt;&lt;BR /&gt;                            329  if [ "$exit_code" = "0" ]&lt;BR /&gt;&lt;BR /&gt;             to:&lt;BR /&gt;&lt;BR /&gt;                            329  if [ "$exit_code" = "0" -o "$exit_code" = "4" ]&lt;BR /&gt;&lt;BR /&gt;7.  :qw!&lt;BR /&gt;&lt;BR /&gt;Then try the backup again and see if it completes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HOW TO VERIFY THE BACKUP IS COMPLETE:&lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;To verify that the backup was successful, either create an index of the tape&lt;BR /&gt;with the frecover command:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       frecover -Nrosv -f /dev/rmt/0m &amp;gt; /tmp/index 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;This command reads the whole tape and creates alist of all the files&lt;BR /&gt;successfully backed up on the tape using device file /dev/rmt/0m, creating the&lt;BR /&gt;list in the file called 'index' in the /tmp directory.&lt;BR /&gt;&lt;BR /&gt;Or, you can use the -vN options with the frecover command.  The '-v' option is&lt;BR /&gt;verbose mode, so it prints everything to the screen.  '-N' prevents frecover&lt;BR /&gt;from recovering any files to disk.  It simply goes through the motions as if it&lt;BR /&gt;is.  The command is:&lt;BR /&gt;&lt;BR /&gt;                   frecover -vN /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;The most common cause of an exit code of 4 is the use of a new tape or a tape&lt;BR /&gt;that does not contain an fbackup header from a previous backup. When fbackup&lt;BR /&gt;begins on a new tape, it recognizes this and gives a warning as it generates the&lt;BR /&gt;proper tape headers. In this case, the exit code 4 can generally be assumed to&lt;BR /&gt;be a success.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2000 11:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449342#M10407</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-10-02T11:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Full Backup problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449343#M10408</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This is indeed an annoying problem.&lt;BR /&gt;&lt;BR /&gt;The way I prefer to circumvent this is to setup my own script for fbackup (rather than using SAM).  The script runs fbackup using the verbose (-v) mode to generate status messages.  Messages from fbackup (one for each file backed up) are redirected into a log file.  At the end of the backup, the script does a grep on the log, mailing the grep results to root for quick examination.  This grep is as follows:&lt;BR /&gt;&lt;BR /&gt;# grep -e "WARNING:" -e "was active" -e "was not" -e "unable to stat" &amp;gt; $WARNINGS&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Oct 2000 12:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/full-backup-problem/m-p/2449343#M10408</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-02T12:35:07Z</dc:date>
    </item>
  </channel>
</rss>

