cancel
Showing results for 
Search instead for 
Did you mean: 

Backup issue

Sunny123_1
Esteemed Contributor

Backup issue

Hi

I want to automated backup thrugh SAM with cron.Follwoing are the contents

00 00 * * 0,2-6 /usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0mn /etc/sam/br/graphFDAa18538 rprawdzi Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup


All is OK but SAM is showing CORRUPT AUTOMATED BACKUP

When I changed ulimit to unlimited then that error was gone but there is new error

Error output (stderr) from command "/usr/sam/lbin/br_get_cron
awk: Input line BRACKET, MTG-S4A/S4V cannot be longer than 3,000bytes
The input line number is 1.
The source line number is 44.

Please suggest on this

Regards
Sunny
16 REPLIES
Steven E. Protter
Exalted Contributor

Re: Backup issue

Shalom Sunny,

I would suggest a sam patch.

http://itrc.hp.com
patch database
search for sam.

A sam script is issuing an illegal awk command. That is a software fault and I'd be surprised there would not be a fix for it.

Unless you want to debug the awk command. That would be fin.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi SEP

I have running old OS i.e 11.0 is there available any SAM patch you are saying about?

Also i have tried latest awk patch but no luck.

Regards
Sunny
Hakki Aydin Ucar
Honored Contributor

Re: Backup issue

OldSchool
Honored Contributor

Re: Backup issue

I've also seen similar error when the gnu versions of grep and awk were installed on an 11.0 box, and they were in the PATH prior to the ones in std HPUX
TwoProc
Honored Contributor

Re: Backup issue

for a quick workaround...

put
usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0mn /etc/sam/br/graphFDAa18538 rprawdzi Y 1 N > /var/sam/SAM_br_msgs 2>&1 #sambackup

in a file somewhere and make it executable...

then in cron...

0 00 * * 0,2-6 /mypath/mycommand >/dev/null 2>&1

It's how I would recommend doing all your cronjobs anyways... makes it easier to keep all of your error logs from cron jobs whereever you'd like, and not necessarily in root's mail box.



We are the people our parents warned us about --Jimmy Buffett
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi SEP

I have installed latest patch but same error is coming

oldschool

What you have taken action on this error??

I have also done backup manually but no luck.
It is completed but same error on SAM is coming

I have installed following patches

PHCO_27521 -- AWK
PHCO_31879 -- SAM
PHCO_29380 -- SAM(dependent Patch)

Regards
Sunny
Dennis Handly
Acclaimed Contributor

Re: Backup issue

>I have installed latest patch but same error is coming

You may want to add "set -x" to a copy of /usr/sam/lbin/br_backup so you can trace what's happening and find which awk script.
Dennis Handly
Acclaimed Contributor

Re: Backup issue

Oops also meant to say this:

>awk: Input line BRACKET, MTG-S4A/S4V cannot be longer than 3,000bytes

Does this data mean anything to you?

>SEP: A sam script is issuing an illegal awk command.

It looks more like sam is using awk on the wrong file, one with lines more than 3000 bytes.
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi Dennis

I am trying to take backup throgh SAM as i said earlier.This is some one of the file system backup. We are using SAT tape.


Regards
Sunny

Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi

Sorry it is DAT tape.


Regards
Sunny
Dennis Handly
Acclaimed Contributor

Re: Backup issue

>This is some one of the file system backup.

Are you saying that the text "BRACKET, MTG-S4A/S4V" comes from some data file you are trying to back up?

By adding "set -x" may give you a clue who is calling awk and with what files.
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi Dennis

How to use set -x??



I am going at SAM then backup and recovery then automated backup then the error comes.


Regards
Sunny
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi All

Refer attachment for screen shots of error.

Regards
Sunny
Sunny123_1
Esteemed Contributor

Re: Backup issue

Hi

I have also the error in event.log.Refer attachment

Regards
Sunny
OldSchool
Honored Contributor

Re: Backup issue

while the two attachments don't show anything regarding the error messages you've been talking about, did you notice that that it did report an I/O error on /dev/rmt/0mn

the Event Monitor report was very specific in stating the tape drive has failed.

I'd check cabling and terminators. run Library & Tape Tools or STM/CSTM and test it, or do what it told you and have the drive replaced.

Once you get that fixed, you can worry about backups......but I believe that your other issues will go away once it can actually *perform* the requested backup.
Dennis Handly
Acclaimed Contributor

Re: Backup issue

>How to use set -x?

I'm assume you are still trying to solve your crontab problem with /usr/sam/lbin/br_backup?

Make a copy and add the line "set -x" to the script, near the top.

>I am going at SAM then backup and recovery

Have you given up on br_backup?