Linux inodeその2

同じディスクのinode値を変更させた結果(/homeで実験)。

※オプション何も付けない(-i 16384?)
> mkfs.ext4 /dev/mapper/VolGroup-disk1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
11517952 inodes, 46041088 blocks
2302054 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1406 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

> df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
1310720 42462 1268258 4% /
tmpfs 369556 1 369555 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
/dev/mapper/VolGroup-disk1 11517952 11 11517941 1% /home

> df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
20511356 1479208 17983572 8% /
tmpfs 1478224 0 1478224 0% /dev/shm
/dev/sda1 487652 48198 413854 11% /boot
/dev/mapper/VolGroup-disk1 181141824 60804 171872804 1% /home

> dumpe2fs -h /dev/mapper/VolGroup-disk1
dumpe2fs 1.41.12 (17-May-2010)
Filesystem volume name:
Last mounted on:
Filesystem UUID: 8aea38ed-3c7a-4cfa-8bfc-a4ce34b7bf0a
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: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 11517952
Block count: 46041088
Reserved block count: 2302054
Free blocks: 45270255
Free inodes: 11517941
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1013
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Fri Feb 20 11:00:27 2015
Last mount time: Fri Feb 20 11:04:44 2015
Last write time: Fri Feb 20 11:04:44 2015
Mount count: 1
Maximum mount count: 30
Last checked: Fri Feb 20 11:00:27 2015
Check interval: 15552000 (6 months)
Next check after: Wed Aug 19 11:00:27 2015
Lifetime writes: 2945 MB
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: f9c3a673-1d2b-48b5-aeb1-60ee276efbea
Journal backup: inode blocks
Journal features: (none)
Journal size: 128M
Journal length: 32768
Journal sequence: 0x00000001
Journal start: 0

※mkfs.ext4 -i 4096 /dev/mapper/VolGroup-disk1

> mkfs.ext4 -i 4096 /dev/mapper/VolGroup-disk1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
46049312 inodes, 46041088 blocks
2302054 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4298112000
1406 block groups
32760 blocks per group, 32760 fragments per group
32752 inodes per group
Superblock backups stored on blocks:
32760, 98280, 163800, 229320, 294840, 819000, 884520, 1605240, 2653560,
4095000, 7960680, 11236680, 20475000, 23882040

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

>df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
1310720 42462 1268258 4% /
tmpfs 369556 1 369555 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
/dev/mapper/VolGroup-disk1 46049312 11 46049301 1% /home

>df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
20511356 1479224 17983556 8% /
tmpfs 1478224 0 1478224 0% /dev/shm
/dev/sda1 487652 48198 413854 11% /boot
/dev/mapper/VolGroup-disk1 172508984 60864 163239904 1% /home

> dumpe2fs -h /dev/mapper/VolGroup-disk1
dumpe2fs 1.41.12 (17-May-2010)
Filesystem volume name:
Last mounted on:
Filesystem UUID: 48b188f8-2a04-4505-b838-d6ff9c6e4c6a
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: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 46049312
Block count: 46041088
Reserved block count: 2302054
Free blocks: 43112030
Free inodes: 46049301
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1014
Blocks per group: 32760
Fragments per group: 32760
Inodes per group: 32752
Inode blocks per group: 2047
Flex block group size: 16
Filesystem created: Fri Feb 20 11:06:42 2015
Last mount time: Fri Feb 20 11:21:34 2015
Last write time: Fri Feb 20 11:21:34 2015
Mount count: 1
Maximum mount count: 30
Last checked: Fri Feb 20 11:06:42 2015
Check interval: 15552000 (6 months)
Next check after: Wed Aug 19 11:06:42 2015
Lifetime writes: 11 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: 69b12c4f-c9a0-45c9-85b6-72a533ea33e4
Journal backup: inode blocks
Journal features: (none)
Journal size: 128M
Journal length: 32768
Journal sequence: 0x00000001
Journal start: 0

※mkfs.ext4 -i 8192 /dev/mapper/VolGroup-disk1

> mkfs.ext4 -i 8192 /dev/mapper/VolGroup-disk1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
23035904 inodes, 46041088 blocks
2302054 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1406 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

> df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
1310720 42462 1268258 4% /
tmpfs 369556 1 369555 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
/dev/mapper/VolGroup-disk1 23035904 11 23035893 1% /home

> df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
20511356 1479240 17983540 8% /
tmpfs 1478224 0 1478224 0% /dev/shm
/dev/sda1 487652 48198 413854 11% /boot
/dev/mapper/VolGroup-disk1 178262336 60804 168993316 1% /home

> dumpe2fs -h /dev/mapper/VolGroup-disk1
dumpe2fs 1.41.12 (17-May-2010)
Filesystem volume name:
Last mounted on:
Filesystem UUID: 391bd5e7-fad9-4602-9b96-b165e6987e39
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: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 23035904
Block count: 46041088
Reserved block count: 2302054
Free blocks: 44550383
Free inodes: 23035893
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1013
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 1024
Flex block group size: 16
Filesystem created: Fri Feb 20 11:23:28 2015
Last mount time: Fri Feb 20 11:36:33 2015
Last write time: Fri Feb 20 11:36:33 2015
Mount count: 1
Maximum mount count: 35
Last checked: Fri Feb 20 11:23:28 2015
Check interval: 15552000 (6 months)
Next check after: Wed Aug 19 11:23:28 2015
Lifetime writes: 5757 MB
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: f7915573-466d-4f92-9117-6e5311df92e3
Journal backup: inode blocks
Journal features: (none)
Journal size: 128M
Journal length: 32768
Journal sequence: 0x00000001
Journal start: 0