- 论坛徽章:
- 0
|
众所周知,硬盘是一台服务器最容易出问题的一环,所以及早发现问题是非常重要的,即使你有RAID的情况下。硬盘检测是一项可实施的操作。
tune2fs是一个可供管理员调整查看ext2/3的命令
[root@local ]#tune2fs -l /dev/sda1tune2fs 1.39 (29-May-2006)Filesystem volume name: /bootLast mounted on: Filesystem UUID: b812bc29-d5da-4702-a9ad-2aec515047d7Filesystem magic number: 0xEF53Filesystem revision #: 1 (dynamic)Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_superDefault mount options: user_xattr aclFilesystem state: cleanErrors behavior: ContinueFilesystem OS type: LinuxInode count: 32128Block count: 128488Reserved block count: 6424Free blocks: 110880Free inodes: 32092First block: 1Block size: 1024Fragment size: 1024Reserved GDT blocks: 256Blocks per group: 8192Fragments per group: 8192Inodes per group: 2008Inode blocks per group: 251Filesystem created: Mon Jan 19 22:42:01 2009Last mount time: Thu Mar 5 18:38:16 2009Last write time: Thu Mar 5 18:38:16 2009Mount count: 18Maximum mount count: -1Last checked: Mon Jan 19 22:42:01 2009Check interval: 0 ()Reserved blocks uid: 0 (user root)Reserved blocks gid: 0 (group root)First inode: 11Inode size: 128Journal inode: 8Default directory hash: teaDirectory Hash Seed: efe9d15e-6ed4-4082-b5d3-5f9897ee6535Journal backup: inode blocks
Last checked: Mon Jan 19 22:42:01 2009你可以看到硬盘最后一次自检的时间
我们可以用如下方法进行开机强行自检:
在每个分区或者lv的根目录,比如:
touch /forcefsck
对于服务器来说,这个还是必要的,毕竟服务器重启的次数不多。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88799/showart_1860592.html |
|