°Ô½Ã¹° 1,369°Ç
   
ext3 --> ext4 ÆÄÀϽýºÅÛ º¯È¯
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-10-06 (¿ù) 11:31 Á¶È¸ : 12818
±ÛÁÖ¼Ò :
                                
¡Ø ÆÄÀϽýºÅÛ¿¡ µû¸¥ ¼º´ÉÇâ»ó °ü·Ã ÀÚ·á
ext4 ÆÄÀϽýºÅÛÀÌ  ext3 ÆÄÀϽýºÅÛ°ú ºñ±³ÇØ Àбâ¿Í ¾²±â ¼Óµµ ¸ðµÎ °³¼±



ext2 / ext3 / ext4 ÆÄÀϽýºÅÛ“u Ư¡ Âü°í 


µ¥ÀÌŸ Read / Write ¼Óµµ °³¼±¿¡ µû¸¥ ½ºÅ丮Áö µð¹ÙÀ̽ºÂÊ ÆÄÀϽýºÅÛ º¯È¯

# 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

 ¡Ø ¿É¼Ç¼³¸í 
- f      Force checking even if the file system seems clean.
- D     Optimize  directories  in  filesystem
- C     ÆÄÀϽýºÅÛ °Ë»ç ¸ð´ÏÅ͸µ
- 0      No errors


# /etc/fstab ¼öÁ¤
LABEL=/STORAGE_DISK      /STORAGE_DISK            ext4    defaults,noatime,nodev,nosuid        1 2

# mount -a
 ¡Ø  -a     Mount all filesystems (of the given types) mentioned in fstab.

# mount 
...............
...............
/dev/sdb1 on /STORAGE_DISK type ext4 (rw,nosuid,nodev,noatime)


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.