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
[ 本帖最后由 p3505 于 2009-11-16 23:46 编辑 ]作者: happer_xc 时间: 2009-11-17 08:58
还有,每次备份前要创建出
/backup/databackup/Tapebackup/tapedev
和
/backup/databackup/Tapebackup/ltapedev
这两个文件。作者: wysfenghuo007 时间: 2009-11-17 09:08
首先感谢楼上高手的回答。我改了以下大小,还是出错。另外,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)
运行显示如下错误:
[informix@wangysh etc]$ 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作者: p3505 时间: 2009-11-17 09:40 标题: 回复 #4 wysfenghuo007 的帖子 Sorry, 上次說錯了, TAPESIZE 不夠大會出現 Tape is full 和 mount tape 2
[informix@gt2 dbbk]$ 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
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 ...作者: wysfenghuo007 时间: 2009-11-17 11:44
好了,问题解决了,感谢Strack兄弟作者: hanner_cheung 时间: 2010-01-06 15:54
樓上的仁兄:不知最後發現是什麽趙成不能正常執行寫入操作?作者: yunzhongyue 时间: 2010-01-07 09:39