Fork me on GitHub

文件系统

命令

 

e2fsck
e2fsck - check a Linux ext2/ext3/ext4 file system

==============================================
resize2fs
resize2fs - ext2/ext3/ext4 file system resizer

It can be used to enlarge or shrink an unmounted file system located on device

If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel and the file system supports on-line resizing.

Modern Linux 2.6 kernels will support on-line resize for file systems mounted using ext3 and ext4;
ext3 file systems will require the use of file systems with the resize_inode feature enabled.

Filesystem features: resize_inode

==============================================
tune2fs -l /dev/sda3
tune2fs - adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems
-l List the contents of the filesystem superblock, including the current values of the parameters that can be set via this program.


For a detailed description of the file system features, please see the man page ext4(5).

 

==============================================
所有可以设置的文件系统参数
[root@cu-dbs-152 ~]# tune2fs -l /dev/sda3
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          4cad5860-c0ba-46a6-809c-7d2d7adcc743
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              5496832
Block count:              21968640
Reserved block count:     1098432
Free blocks:              10631227
Free inodes:              5347877
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1018
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Wed Jun 26 17:09:07 2019
Last mount time:          Thu Jul 11 18:25:57 2019
Last write time:          Wed Jun 26 17:21:58 2019
Mount count:              13
Maximum mount count:      -1
Last checked:             Wed Jun 26 17:09:07 2019
Check interval:           0 (<none>)
Lifetime writes:          196 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      357d1294-fa68-4e15-9039-25ee1becdfaf
Journal backup:           inode blocks

 

posted on 2019-07-11 18:51  阳光-源泉  阅读(274)  评论(0编辑  收藏  举报

导航