Overview of Storage Measurement
Storage measurement tools help administrators and developers analyze disk performance, capacity, and usage in Linux systems.
1. df (Disk Free)
Displays filesystem disk space usage
## Basic usage
df -h
## Show filesystem type
df -T
## Display inodes information
df -i
2. du (Disk Usage)
Estimates file and directory space consumption
## Summarize directory space
du -sh /home
## List detailed usage
du -h --max-depth=1 /var
3. iostat
Monitors system input/output storage device statistics
## Basic iostat usage
iostat
## Detailed device statistics
iostat -x 2 3
4. iotop
Interactive I/O monitoring tool
## Require installation
sudo apt install iotop
## Run iotop
sudo iotop
5. hdparm
Disk information and performance testing
## View disk information
sudo hdparm -I /dev/sda
## Test disk read performance
sudo hdparm -t /dev/sda
Tool |
Purpose |
Key Features |
df |
Filesystem space |
Quick overview |
du |
Directory usage |
Detailed breakdown |
iostat |
I/O statistics |
Performance metrics |
iotop |
Process I/O |
Real-time monitoring |
Measurement Workflow
graph TD
A[Identify Storage Issue] --> B[Select Appropriate Tool]
B --> C[Collect Measurements]
C --> D[Analyze Results]
D --> E[Take Corrective Action]
LabEx Recommendation
LabEx provides interactive Linux environments for practicing storage measurement techniques and understanding tool usage in real-world scenarios.
Best Practices
- Regularly monitor storage
- Understand tool capabilities
- Combine multiple tools
- Interpret results contextually