能源采矿系统

为什么系统的逻辑日志为什么不能自动产生?

系统显示逻辑日志和备份的地点都是/home/informix/etc/backupcat onconfig.prod | grep -i tape# ontape Tape Device Configuration Parameters# TAPEDEV      - The tape device path for backups. To use standard# TAPEBLK     &...显示全部
系统显示逻辑日志和备份的地点都是/home/informix/etc/backup

cat onconfig.prod | grep -i tape
# ontape Tape Device Configuration Parameters
# TAPEDEV      - The tape device path for backups. To use standard
# TAPEBLK      - The tape block size, in KB, for backups
# TAPESIZE     - The maximum amount of data to put on one backup
#                tape. Acceptable values are 0 (unlimited) or any
#                positive integral multiple of TAPEBLK.
TAPEDEV /home/informix/etc/backup
TAPEBLK 32
TAPESIZE 0
# ontape Logial Log Tape Device Configuration Parameters
# LTAPEDEV     - The tape device path for logical logs
# LTAPEBLK     - The tape block size, in KB, for backing up logical
# LTAPESIZE    - The maximum amount of data to put on one logical
#                log tape. Acceptable values are 0 (unlimited) or any
#                positive integral multiple of LTAPEBLK.
LTAPEDEV /home/informix/etc/backup
LTAPEBLK 32
LTAPESIZE 0

然后多产生几个逻辑日志

onmode -l
onmode -c
onmode -l
onmode -c

但是 很奇怪,为什么没有日志产生?

/home/informix/etc/backup>pwd
/home/informix/etc/backup
ls显示的是空

  使用ontape -a可以产生日志备份
ontape -a

Performing automatic backup of logical logs.

File created: /home/informix/etc/backup/ldz_0_Log0000000940
File created: /home/informix/etc/backup/ldz_0_Log0000000941
File created: /home/informix/etc/backup/ldz_0_Log0000000942
File created: /home/informix/etc/backup/ldz_0_Log0000000943
Do you want to back up the current logical log? (y/n) y
File created: /home/informix/etc/backup/ldz_0_Log0000000944

但是我想让系统的逻辑日志满的时候会自定归档日志到/home/informix/etc/backup中,于是使用onmode -l ,onmode -c来手动切日志,发现无法产生日志收起
参与10

查看其它 9 个回答liuli98的回答

liuli98liuli98采购代理/经理琉璃
回复 2# antyison


    ALARMPROGRAM /home/informix/etc/logfull.sh
STORAGE_FULL_ALARM 600,3
SYSALARMPROGRAM $INFORMIXDIR/etc/evidence.sh


cat logfull.sh

PROG=`basename $0`
USER_LIST=informix
BACKUP_CMD="onbar -b -l"
EXIT_STATUS=0

EVENT_SEVERITY=$1
EVENT_CLASS=$2
EVENT_MSG="$3"
EVENT_ADD_TEXT="$4"
EVENT_FILE="$5"

case "$EVENT_CLASS" in
        23)     
                # onbar assumes no operator is present,
                # so all messages are written to the activity
                # log and there shouldn't be any output, but
                # send everything to /dev/null just in case
                $BACKUP_CMD 2>&1 >> /dev/null
                EXIT_STATUS=$?
                ;;

# One program is shared by all event alarms.  If this ever gets expanded to
# handle more than just archive events, uncomment the following:
        *)
#               EXIT_STATUS=1
        ;;
esac

exit $EXIT_STATUS



informix:/home/informix/etc/backup>onbar -b -l
informix:/home/informix/etc/backup>ls

没有产生日志

informix:/home/informix/etc/backup>onmode -c
informix:/home/informix/etc/backup>onmode -l


informix:/home/informix/etc/backup>onstat -l

IBM Informix Dynamic Server Version 11.50.FC6     -- On-Line -- Up 00:06:46 -- 568608 Kbytes

Physical Logging
Buffer bufused  bufsize  numpages   numwrits   pages/io
  P-2  10       32       25         2          12.50
      phybegin         physize    phypos     phyused    %used   
      3:53             122500     33341      10         0.01   

Logical Logging
Buffer bufused  bufsize  numrecs    numpages   numwrits   recs/pages pages/io
  L-2  0        16       137        20         19         6.8        1.1     
        Subsystem    numrecs    Log Space used
        OLDRSAM      134        15124         
        HA           3          132           

address          number   flags    uniqid   begin                size     used    %used
700000010631f98  1        U------  945      29:53              524288        9     0.00
700000010776f50  2        U------  946      29:524341          524288      202     0.04
700000010776fb8  3        U-----L  947      29:1048629         524288       10     0.00
70000001075df50  53       U---C--  948      29:1572917         524288        4     0.00
70000001075dfb8  54       U-B----  944      29:2097205         524288       27     0.01
5 active, 5 total

ldz:informix:/home/informix/etc/backup>ls

还是没有产生日志
能源采矿 · 2013-02-18
浏览1291

回答者

liuli98
采购代理/经理琉璃

liuli98 最近回答过的问题

回答状态

  • 发布时间:2013-02-18
  • 关注会员:0 人
  • 回答浏览:1291
  • X社区推广