Disk usage.
Hello,
In a RAID system as below, How can I see the free space of specific HDD? Code:
# df Code:
# ls /dev/sdy |
Find out which filesystems, logical volumes, RAID devices etc. use /dev/sdy, then find out how much space they occupy. I would use commands like lsblk, blkid, mdadm.
By the way, what do you mean by "free space"? /dev/sdy could be entirely used up by a RAID device. Half of that RAID device might be occupied by a logical volume. The filesystem on that logical volume is, say, 80% full. How much free space is on /dev/sdy? You can say no free space, since /dev/sdy is entirely used up by the RAID. Or you could say 50%, because half of the RAID device is free. Or 40%. Which free space do you mean? |
Quote:
The output is: Code:
# blkid |
Quote:
|
This article may help: https://www.linuxjournal.com/article/2597
Note that df lists not just physical devices, but also virtual ones, such as, for example, tmpfs. |
All times are GMT -5. The time now is 02:43 PM. |