In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to solve the Linux disk quota configuration problem, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know about it.
1. Check if the quota package is installed
# rpm-Q quota
two。 Modify the configuration file "fstab" to add "usrquota" and "grpquota" to the settings in the partition installation where you need to configure quota.
# vi / etc/fstab
LABEL=//ext3 defaults,usrquota,grpquota 1 1
3. Re-hang on the file system
The correct configuration of the "fstab" file needs to be re-hung on the file system, so that the configuration of the file system takes effect. For the setting of the root partition, the easiest way is to restart the system.
# reboot
4. After restarting the system, create a quota file for users and groups:
# quotacheck-cmug /
Quota files are automatically created in the root directory of the partition file system
5. For the sake of doing experiments, you can temporarily create a user: aaa
Set a quota for this user
6. Set a quota for the user aaa. In practical applications, it is generally only for the size of the most disk used by the user, and there is no need to set the number of files for the user. The hard limit should be greater than the soft limit. In order to facilitate verification of the user's use of the quota, only the number of files is set for the user:
Edquota-u aaa
You can use edquota-g group name if you set it to the foot.
7. Check the consistency of the quota system (this step can be omitted)
# quotacheck-mfvug /
8. Start the quota entry:
Quotaon-avug
9. The quota step is almost complete. Use quota-u aaa to check the quota for the user aaa.
Thank you for reading this article carefully. I hope the article "how to solve the problem of Linux disk quota configuration" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.