使用ontape 备份数据到磁盘上,怎么设置?
我是如下设置的:# System Archive Tape Device
TAPEDEV /backup/databackup/Tapebackup/tapedev # Tape device path
TAPEBLK 32 # Tape block size (Kbytes)
TAPESIZE 10240 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /backup/databackup/Tapebackup/ltapedev # Log tape device path
LTAPEBLK 32 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape (Kbytes)
其中tapedev和ltapedev是以informix用户创建的,权限:660,但是我运行ontape -s -U geo3d出现如下错误:
Please enter the level of archive to be performed (0, 1, or 2) 0
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ...
could not write archive tape
把TAPEBLK,TAPESIZE,LTAPEBLK,LTAPESIZE屏蔽掉,也出错。把数据备份到磁盘具体怎么设置?
回复 #1 wysfenghuo007 的帖子
full backup "TAPESIZE 10240 "只有 10MB, 你的數據庫有這麼小哦?試一下 "TAPESIZE 4000000 "4GB, 不夠再放大.
[ 本帖最后由 p3505 于 2009-11-16 23:46 编辑 ] 还有,每次备份前要创建出
/backup/databackup/Tapebackup/tapedev
和
/backup/databackup/Tapebackup/ltapedev
这两个文件。 首先感谢楼上高手的回答。我改了以下大小,还是出错。另外,tapedev和ltapedev我都已经创建好了,是不是每次都要删除,然后重新创建。
我修改参数如下;
TAPEDEV /backup/databackup/Tapebackup/tapedev # Tape device path
TAPEBLK 32 # Tape block size (Kbytes)
TAPESIZE 10240000 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /backup/databackup/Tapebackup/ltapedev # Log tape device path
LTAPEBLK 32 # Log tape block size (Kbytes)
LTAPESIZE 10240000 # Max amount of data to put on log tape (Kbytes)
运行显示如下错误:
$ ontape -s -U geo3d
Please enter the level of archive to be performed (0, 1, or 2) 0
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ...
could not write archive tape.
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ...
怎么解决?
能不能留下个qq或者msn的,好向您请教,我是新手刚开始学informix
回复 #4 wysfenghuo007 的帖子
Sorry, 上次說錯了,TAPESIZE 不夠大會出現 Tape is full 和mount tape 2$ ontape -s -U gt2
Please enter the level of archive to be performed (0, 1, or 2) 0
Please mount tape 1 on /work2/dbbk/gt2.bup.001 and press Return to continue ...
Tape is full ...
Please label this tape as number 1 in the arc tape sequence.
This tape contains the following logical logs:
6518
Please mount tape 2 on /work2/dbbk/gt2.bup.001 and press Return to continue ... ?
=======================================================
再試二下.
1. su - informix ; cd /backup/databackup/Tapebackup/ ; touch abc.test
以 informix 身份登入, 切換到 Tapebackup 目錄; 隨便產生一個檔案看是否能產生, 若是不行, 可能是上層或是上上層目錄權限有問題
2. TAPEDEV /tmp/tapedev
touch /tmp/tapedev ; chown informix.informix /tmp/tapedev ; chmod 660 /tmp/tapedev
ontape -s -L 0
=======================================================
full db backup 好像是用 ontape -s -L 0 就好;
ontape -s -U geo3d ; 好像是說要把 geo3d 從 None log 改成 Log ; 這個好像只要剛建立新數據庫時才要做; 以後都不用做才是
=======================================================
msn:starcks2go@hotmail.com
[ 本帖最后由 p3505 于 2009-11-17 09:42 编辑 ] 我按照你说的,操作了以下,还是不行
下面是我的操作步骤:
$ touch xx
$ rm -rf *
$ cd ..
$ cd /
$ touch /backup/databackup/TapeBackup/tapedev
$ touch /backup/databackup/TapeBackup/ltapedev
$ chown informix:informix /backup/databackup/TapeBackup/tapedev
$ chowm informix:informix /backup/databackup/TapeBackup/ltapedev
-bash: chowm: command not found
$ chown informix:informix /backup/databackup/TapeBackup/ltapedev
$ chmod 660 /backup/databackup/TapeBackup/tapedev
$ chmod 660 /backup/databackup/TapeBackup/ltapedev
$ ontape -s -L 0
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ...
could not write archive tape.
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ...
could not write archive tape.
Please mount tape 1 on /backup/databackup/Tapebackup/tapedev and press Return to continue ... 好了,问题解决了,感谢Strack兄弟 樓上的仁兄:不知最後發現是什麽趙成不能正常執行寫入操作?:em15: 原帖由 hanner_cheung 于 2010-1-6 15:54 发表 http://bbs2.chinaunix.net/images/common/back.gif
樓上的仁兄:不知最後發現是什麽趙成不能正常執行寫入操作?:em15:
楼上东北的吧,还”赵成“ :mrgreen:
页:
[1]
2