星期一, 三月 05, 2007

smbfs/cifs for fs_backup

备份的目标比较大,压缩后的档案超过两个G,使用了 smbfs 文件系统:
sh# mount
//store/homes on /mnt/host type smbfs (rw,mand)
但是执行完全备份时出现如下报错:
sh# fs_backup at_pages

gzip: stdout: File too large
tar: /mnt/host/fs_backup/at_pages/at_pages.full.20070301-010003.tgz: Wrote only 2048 of 10240 bytes
tar: Error is not recoverable: exiting now

bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: File too large
Input file = (stdin), output file = (stdout)
tar: /mnt/host/fs_backup/at_pages/at_pages.full.20070301-145957.tgz: Wrote only 8192 of 10240 bytes
tar: Error is not recoverable: exiting now
首先看看本地备份是否会有问题,改变 datadir = /var/fs_backup,重新运行完全备份,没有问题。说明限制不再 gzip/bzip2 上面,只可能是 samba 的问题。

从查找资料的情况来看,时间上就是由于 smbfs 有 2GB 的限制,使用 cifs 来代替 smbfs 即可:
sh# mount
//store/homes on /mnt/host type cifs (rw,mand)
在 /etc/fstab 做相应更改就可以了。

没有评论: