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