# cat /etc/redhat-release
CentOS release 5.6 (Final)
# uname -a
Linux 115-68-23-47 2.6.39.1 #1 SMP Thu Jun 9 09:05:06 KST 2011 x86_64 x86_64 x86_64 GNU/Linux
¡Ø ÁÖÀÇ»çÇ×
Ä¿³Î¿¡¼ EXT4 È°¼ºÈµÇ¾î ÀÖ¾î¾ß ÇÑ´Ù.
¾ÈµÇ¾îÀÖÀ½ Ä¿³ÎÄÄÆÄÀÏÀ» ÅëÇØ È°¼ºÈ
# grep EXT4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_DEBUG=y
ÇÊ¿äÇÑ Åø ¼³Ä¡
# yum -y install e4fsprogs
¸¶¿îÆ® Á¤º¸È®ÀÎ
# mount
...............
...............
/dev/sdb1 on /STORAGE_DISK type ext3 (rw,nosuid,nodev,noatime)
º¯È¯ÇÏ·Á´Â ¸¶¿îÆ® ´ÙÀ̹ٽº ÇØÁ¦
# umount /dev/sdb1
ÆÄÀϽýºÅÛ ¼³Á¤°ª º¯°æ
tune4fs : ext2 / ext3 / ext4 ÆÄÀÏ ½Ã½ºÅÛ¿¡¼ Á¶Á¤ °¡´ÉÇÑ ÆÄÀÏ ½Ã½ºÅÛ ¸Å°³ º¯¼ö¸¦ Á¶Á¤
# tune4fs -O extents,uninit_bg,dir_index /dev/sdb1
tune4fs 1.41.12 (17-May-2010)
Please run e4fsck on the filesystem.
¡Ø ¿É¼Ç¼³¸í
- extents (È®Àå) : ºñÆ®¸Ê ¸ÅÇÎ ¹üÀ§¸¦ »ç¿ëÇÏ´Â ÆÄÀϽýºÅÛ »ç¿ë°¡´É
- uninit_bg : µð½ºÅ©ÀÇ »ç¿ëºÎºÐÀ» È®ÀÎÇÏ¿© ÆÄÀϽýºÅÛ °Ë»ç½Ã°£ ÁÙÀÓ
Allow the kernel to initialize bitmaps and inode tables and keep a high watermark for the unused inodes in a filesystem, to reduce e2fsck(8) time. This first e2fsck run after enabling this feature will take the full time, but subsequent e2fsck runs will take only a fraction of the original time, depending on how full the file system is. After setting or clearing
- dir_index : Å«µð·ºÅ丮¿¡ ºü¸¥ ¿¢¼¼¼¸¦ À§ÇØ b-trees Çؽ¬¸¦ »ç¿ë
Use hashed b-trees to speed up lookups in large directories.
ÆÄÀϽýºÅÛ °Ë»ç
# e4fsck -fDC0 /dev/sdb1
e4fsck 1.41.12 (17-May-2010)
One or more block group descriptor checksums are invalid. Fix<y>? yes
Group descriptor 0 checksum is invalid. FIXED.
Group descriptor 1 checksum is invalid. FIXED.
Group descriptor 2 checksum is invalid. FIXED.
Group descriptor 3 checksum is invalid. FIXED.
Group descriptor 4 checksum is invalid. FIXED.
Group descriptor 5 checksum is invalid. FIXED.
............
............
Pass 1: Checking inodes, blocks, and sizes
STORAGE_DISK : |== - 5.1%
Error reading block 13762897 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 19726652 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes
Force rewrite<y>? yes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/STORAGE_DISK: ***** FILE SYSTEM WAS MODIFIED *****
/STORAGE_DISK: 26/31260672 files (0.0% non-contiguous), 14444953/31258465 blocks
¡Ø -a Mount all filesystems (of the given types) mentioned in fstab.