How to increase the number of inode disks in Linux

Source: Internet
Author: User
Most of the information about inode is translated as an index node. in the ext3 file system, adjust the inodenumber of the disk. Here we only adjust the inodenumber parameter. if you want to adjust inodesize or blocksize, you can use the mkfs. ext3 command. System kernel version: 2.4.21-321. Uninstall the file system # umount/data02. Most of the words inode for file system creation are translated as index nodes. in the ext3 file system, adjust the disk inode number. Here we only adjust the inode number parameter. if you want to adjust inode size or blocksize, you can use the mkfs. ext3 command.
System kernel version: 2.4.21-32
1. Detach a file system
#> Umount/data0
2. Create a file system and specify the number of inode nodes
#> Mkfs. ext3/dev/sda6-N "inode node count"
3. Modify the fstab file
#> Vi/etc/fstab
/Dev/sda6/data0 ext3 defaults 1 2
4. mount the file system
#> Mount-
4. View the modified inode parameters
#> Dumpe2fs-h/dev/sda6 | grep node
[Note] Adjusting the inode number will format the disk. before executing the operation, make sure that there is no important data on the disk or back up the data first.
Introduction to inode-related parameters of mkfs. ext3
-I bytes-per-inode
Specify the bytes/inode ratio. mke2fs creates an inode
Every bytes-per-inode bytes of space on the disk. The larger
The bytes-per-inode ratio, the fewer inodes will be created.
This value generally shouldn ?? T be smaller than the blocksize
The filesystem, since then too contains inodes will be made. Be
Warned that is not possible to expand the number of inodes on
Filesystem after it is created, so be careful deciding the cor-
Rect value for this parameter.
-N number-of-inodes
Overrides the default calculation of the number of inodes that
Shocould be reserved for the filesystem (which is based on
Number of blocks and the bytes-per-inode ratio). This allows
The user to specify the number of desired inodes directly.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.