Adjust the system inode quantity

Source: Internet
Author: User

The inode node records important information such as the file type, size, permission, owner, number of file connections, Creation Time, and update time, another important thing is to point to the data block pointer.

In general, no special configuration is required. If there are many files to store, you need to configure them. Sometimes the disk space is available but files cannot be stored, probably because the number of inode nodes is not enough.

View the inode quantity:

df -iFilesystem            Inodes   IUsed   IFree IUse% Mounted on/dev/sda2            3276800   49969 3226831    2% /tmpfs                 100000    4535   95465    5% /dev/shm/dev/sda1              32768      39   32729    1% /boot/dev/sda5            14467072   77478 14389594    1% /data1/dev/sdb1            18276352   65447 18210905    1% /data2

You can see the total number of inodes in each partition, which are used and idle.

To adjust the number of inode nodes, perform the following steps:

1. Detach a File System
Umount/data0
2. Create a file system and specify the number of inode nodes
Mkfs. ext3/dev/sda6-N 18276352
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.

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.