能源采矿系统

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

系统显示逻辑日志和备份的地点都是/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 个回答lgceo的回答

lgceolgceo系统运维工程师成都市人人乐商品配销有限公司
IBM Informix Dynamic Server Version 11.50.FC5  

ontape
usage:
{ -a [-d]  |
  -c  |
  -l [-C | -X] [-d]  |
  -p [-e] [-rename {-f |
               -p -o -n -o ...}]
     [-t STDIO [-v]] [-d]  |
  -S [-d]  |
  -r [-rename {-f |
               -p -o -n -o ...}]
     [-D DBspace_list] [-t STDIO [-v]] [-d]  |
  -s [[-L archive_level][-F]] [-A database_list] [-B database_list]
     [-N database_list] [-U database_list] [-t STDIO [-v]] [-d]  }

-a Automatic backup of logical logs
-c Continuous backup of logical logs
-d non-interactive mode for back up to or restore from a directory
-l Logical restore
-p [-e] Physical restore (-e for external physical restore)
-r Full restore DBspaces/BLOBspaces as listed
-s Archive full system
-A set the following database(s) to ansi logging
-B set the following database(s) to buffered logging
-C continuous logical log restore
-F Backup without updating archive information (useful for HDR, cloning etc.)
-N set the following database(s) to no logging
-S Salvage logical logs only
-U set the following database(s) to unbuffered logging
-X finish continuous logical log restore and bring server to quiescent mode

-rename rename chunks during cold restore
  with -rename options :
    -f pathname of file containing list of mapped
                  chunk pathnames and offsets
    -p old pathname of chunk
    -o old offset of chunk
    -n new pathname of chunk
    -o new offset of chunk
-t STDIO  Backup to standard output or restore from standard input
-v Write informational message to standard error during a backup to standard
   output or restore from standard input

Program over.
零售/批发 · 2013-06-17
浏览1330

回答者

lgceo
系统运维工程师成都市人人乐商品配销有限公司
擅长领域: 服务器数据库Linux

lgceo 最近回答过的问题

回答状态

  • 发布时间:2013-06-17
  • 关注会员:0 人
  • 回答浏览:1330
  • X社区推广