In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to adjust the number of system inode in Linux. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
The inode node records important information such as file type, size, permissions, owner, number of file connections, creation time and update time, as well as pointers to data blocks.
In general, no special configuration is required. If there are a lot of files, configuration is required. Sometimes there is disk space left but files cannot be stored, perhaps because the number of inode nodes is not available.
View the number of inode:
The code is as follows:
Df-I
Filesystem Inodes IUsed IFree IUse% Mounted on
/ dev/sda2 3276800 49969 3226831 2%
Tmpfs 100000 4535 95465 5% / dev/shm
/ dev/sda1 32768 39 32729 / boot
/ dev/sda5 14467072 77478 14389594 1% / data1
/ dev/sdb1 18276352 65447 18210905 1% / data2
You can see the total number of inode for each partition, used and idle.
If you need to adjust the number of inode nodes, you need to take the following steps:
The code is as follows:
one. Unmount the file system
Umount / data0
two. Establish a file system and specify the number of inode nodes
Mkfs.ext3 / dev/sda6-N 18276352
three. Modify the fstab file
Vi / etc/fstab
/ dev/sda6 / data0 ext3 defaults 1 2
4. Mount the file system
Mount-a
four. View the modified inode parameters
Dumpe2fs-h / dev/sda6 | grep node
[note] adjusting the number of inode will format the disk. Make sure there is no important data on the disk or back up the data before execution.
On how to adjust the number of system inode in Linux to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.