In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to check the usage of hard disk on CVM? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
How does the CVM check the usage of the hard disk? In the Linux system of CVM, the df command is used to display the hard disk usage of each file system, including the total capacity of the hard disk partition where the file system resides, the used capacity, the remaining capacity, and so on.
The data related to the whole file system is saved in Super block (super block), and the data read by the df command is almost all aimed at the whole file system, so the df command mainly reads the data from the Super block of each file system.
The basic format of the df command is:
[root@localhost ~] # df [option] [directory or file name]
Several common options for the df command, as well as their respective roles:
Options-a displays all file system information, including system-specific / proc, / sysfs and other file systems;-m displays capacity in MB;-k displays capacity in KB, default in KB;-h displays capacity in KB, MB, or GB units that people are used to; and-T displays the file system name of the partition. -I is not displayed by the hard disk capacity, but by the number of inode.
The following examples are illustrated
[root@localhost ~] # dfFilesystem 1K-blocks Used Available Use% Mounted on/dev/hdc2 9920624 3823112 5585444 41% / / dev/hdc3 4956316 141376 4559108 4% / home/dev/hdc1 101086 11126 84741 12% / boottmpfs 371332 0 371332 0 / dev/shm
The default df command without any options will display all the file system information in the system in KB units.
The answer to the question about how to check the usage of the hard disk on the CVM is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.