Back

Linux文件系统优化

关闭按时间判定是否运行fsck,系统时间万一改了呢?

tune2fs -i0 /dev/vgSVN/lvBackup

增大mount多少次后fsck,ext3默认是三十多次

tune2fs -c99 /dev/vgSVN/lvBackup

好了,改完了看看有没有生效

tune2fs -l /dev/vgSVN/lvBackup | egrep 'ount count|Last mounted'

编辑/etc/fstab,增加noatime选项

/dev/vgSVN/lvBackup /opt/backup ext3 defaults,noatime 1 2

对于nfs,增加 rsize=32768,wsize=32768,intr,noatime,已经挂载上的可以用remount选项

mount -t nfs -o remount,rsize=32768,wsize=32768,intr,noatime 192.168.0.123:/home/important/ftp_dest /opt/back/
comments powered by Disqus