- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Error on BACKUP recording pass
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 12:48 AM
тАО09-27-2004 12:48 AM
The daily backup is done via a batch job. The command procedure contains the following:
$ ON ERROR THEN GOTO ERROR
The log file contains the following:
%BACKUP-I-STARTRECORD, starting backup date recording pass
$ ERROR:
This indicates that an error was generated during the recording pass.
Following is the BACKUP command being used:
$ BACKUP/NOREW/NOASS/IGNORE=(INTER,LABEL)/LOG/REC/MEDIA=COMPA/BLOCK=65535 -
/EXCLUDE=[VAXDSM.JOURNAL]*.* -
D0:[VAXDSM...]*.* MKC500:D0.BCK/SAVE
The user executing the job has the following privs:
Authorized Privileges:
CMKRNL LOG_IO NETMBX OPER PHY_IO SYSPRV
TMPMBX
Default Privileges:
CMKRNL LOG_IO NETMBX OPER PHY_IO SYSPRV
TMPMBX
Can someone shed some light why this is occurrig?
The backup, nevertheless, appears to be complete, but we are bothered by the job aborting and not completing successfully.
Thanks in advance !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:19 AM
тАО09-27-2004 01:19 AM
Re: Error on BACKUP recording pass
What exactly would you like yo know?
Thanks,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:24 AM
тАО09-27-2004 01:24 AM
Re: Error on BACKUP recording pass
Please post your backup command procedure here (in notepad) if that is not very big. You can also post your log file here.
Thanks & regards,
Lokesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:38 AM
тАО09-27-2004 01:38 AM
Re: Error on BACKUP recording pass
$ SET VER
$! 07-MAR-2004 - Dismount command change to keep the tape in the drive. Alon.
$ set proc/priv=all
$ ON ERROR THEN GOTO ERROR
$
$ DAY = F$CVTIME("TODAY",,"WEEKDAY")
$! IF DAY .EQS. "Monday" THEN GOTO LOGOUT
$! IF DAY .EQS. "Wednesday" THEN GOTO LOGOUT
$! IF DAY .EQS. "Thursday" THEN GOTO LOGOUT
$ IF DAY .EQS. "Saturday" THEN GOTO LOGOUT
$
$! 13-jun-2004 Delaying was canceled due to Sami's request. Alon.
$! WAIT 01:00:00
$ COPY SYS$STARTUP:AMITAL.COM D0:[VAXDSM]*.*
$ PU/KEEP=3 D0:[VAXDSM...]*.*/exclude=a.prn
$ PU/KEEP=14 D0:[VAXDSM]A.PRN
$ SH TIME
$
$!!!!! MAIL REPORT FOR NESS HELP-DESK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$ curr_time = f$extract(0,20,f$time())
$ today = f$cvtime("today",,"weekday")
$ if TODAY .eqs. "Monday"
$ then
$ open/write/error=AFTR_MSG1 bcktime d0:[vaxdsm.ness]backup_time.o
ut
$ else
$ open/append/error=AFTR_MSG1 bcktime d0:[vaxdsm.ness]backup_time.
out
$ endif
$ write bcktime ""
$ write bcktime "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
$ write bcktime "Backup started at ''curr_time'"
$ close bcktime
$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$ AFTR_MSG1:
$
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]STOP.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]STOP1.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]STOP2.IN ^VOLINH
$
$! changing daylight time to winter/summer time. Alon.
$!====================================================
$ if f$search("d0:[vaxdsm.ness]daylight_time.com") .nes. ""
$ then
$ @d0:[vaxdsm.ness]daylight_time.com
$ endif
$
$ ALLOC MKC500:
$ day = f$cvtime(f$time(),,"day")
$ month = f$cvtime(f$time(),,"month")
$ year = f$extract(2,2,f$cvtime(f$time(),,"year"))
$ bckdate = day+month+year
$ init/media=compact MKC500: 'bckdate'
$!
$! 27-DEC-2001 label will be written to Ness log file for reports. Alon Jacob
$ open/append/error=AFTR_LABEL bcklbl d0:[vaxdsm.ness]backup_time.out
$ write bcklbl "Tape label initiated to ''bckdate'"
$ close bcklbl
$ AFTR_LABEL:
$
$! 24-APR-2003. Backup will create a seperate save-set for each disk. Alon.
$! 13-jun-2004. Journal files will be saved to a seperate save-set to enable
$! earlier opening of DSM. Alon.
$!
$ BACKUP/NOREW/NOASS/IGNORE=(INTER,LABEL)/LOG/REC/MEDIA=COMPA/BLOCK=65535 -
D1:[VAXDSM...]*.* MKC500:D1.BCK/SAVE
$ BACKUP/NOREW/NOASS/IGNORE=(INTER,LABEL)/LOG/REC/MEDIA=COMPA/BLOCK=65535 -
D0:[VAXDSM.JOURNAL]*.* MKC500:JRNL.BCK/SAVE
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START1.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START2.IN ^VOLINH
$ BACKUP/NOREW/NOASS/IGNORE=(INTER,LABEL)/LOG/REC/MEDIA=COMPA/BLOCK=65535 -
/EXCLUDE=[VAXDSM.JOURNAL]*.* -
D0:[VAXDSM...]*.* MKC500:D0.BCK/SAVE
$
$ DISM/NOUNLOAD MKC500:
$ DEALL MKC500:
$
$!!!!! MAIL REPORT FOR NESS HELP-DESK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$ curr_time = f$extract(0,20,f$time())
$ open/append/error=AFTR_MSG2 bcktime d0:[vaxdsm.ness]backup_time.out
$ write bcktime "Backup finished at ''curr_time'"
$ close bcktime
$
$ AFTR_MSG2:
$! SUBMIT D0:[VAXDSM]MAILGIB
$ SUBM/LOG=D0:[VAXDSM.NESS]SEND_BACKUP_LOG.LOG D0:[VAXDSM.NESS]SEND_BACKUP_LOG.C
OM
$ LO
$
$ ERROR:
$ERROR:
$ Added the following lines to get a more meaningful error 27-09-2004 Cb.
$ ss = $STATUS
$ WRITE SYS$OUTPUT "Error ''F$MESSAGE(ss)'"
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START1.IN ^VOLINH
$ DSM/ENV=VAXDSM/UCI=MGR/INPUT=D0:[VAXDSM]START2.IN ^VOLINH
$! SUBMIT D0:[VAXDSM]MAILGIB
$
$!!!!! MAIL REPORT FOR NESS HELP-DESK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$ curr_time = f$extract(0,20,f$time())
$ open/append/error=AFTR_MSG3 bcktime d0:[vaxdsm.ness]backup_time.out
$ write bcktime "Backup aborted at ''curr_time' ! ! !"
$ close bcktime
$
$ AFTR_MSG3:
$ SUBM/LOG=D0:[VAXDSM.NESS]SEND_BACKUP_LOG.LOG D0:[VAXDSM.NESS]SEND_BACKUP_LOG.C
OM
$
$ DISM/NOUNLOAD MKC500:
$ DEALL MKC500:
$
$ EXIT
$
$ LOGOUT:
$ SUBM/LOG=D0:[VAXDSM.NESS]SEND_BACKUP_LOG.LOG D0:[VAXDSM.NESS]SEND_BACKUP_LOG.C
OM
$ LO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:51 AM
тАО09-27-2004 01:51 AM
Re: Error on BACKUP recording pass
$ ss = $STATUS
$ WRITE SYS$OUTPUT "Error ''F$MESSAGE(ss)'"
Thanks & regards,
Lokesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 01:58 AM
тАО09-27-2004 01:58 AM
Re: Error on BACKUP recording pass
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 02:14 AM
тАО09-27-2004 02:14 AM
Re: Error on BACKUP recording pass
I just added that this afternoon, so I won't get any output for this until tomorrow morning.
Thanks,
Chaim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 03:11 AM
тАО09-27-2004 03:11 AM
Re: Error on BACKUP recording pass
I am not claiming that I found THE error, but
Authorized Privileges:
CMKRNL LOG_IO NETMBX OPER PHY_IO SYSPRV
TMPMBX
Default Privileges:
CMKRNL LOG_IO NETMBX OPER PHY_IO SYSPRV
TMPMBX
You are missing "READALL";
and if this account is used ONLY for BACKUP,
then CMKR,LOG_,OPER,PHY_, and SYSP are overkill.
READALL should perhaps carry a better name of BACKUPPER or somthing like that.
In your case specifically, if you have on your disk only ONE file without write permission for SYSTEM, then /RECORD will encounter an error trying to write the backup recording date. The description of the READALL privilege mentions just this specific reason for using READALL. (sorry, at home now, no pointer to the doc, but it is (at least) in the Guide to system security, in the chapter that discusses each individual privilege).
hth,
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 03:29 AM
тАО09-27-2004 03:29 AM
Re: Error on BACKUP recording pass
From VMS online help:
BACKUP
/RECORD
Command Qualifier
Records the current date and time in the BACKUP date field of
each file header record once a file is successfully saved or
copied. If you do not specify the /RECORD qualifier, BACKUP does
not change the BACKUP date field of each processed file. Observe
the following restrictions:
o The /RECORD qualifier is valid only with Files-11 Structure
Level 2 volumes.
o To use the /RECORD qualifier you must either own the file or
have SYSPRV privileges.
o You cannot use the /RECORD qualifier with the /DELETE
o You can use the /RECORD qualifier in BACKUP save or copy
operations only.
Thanks & regards,
Lokesh