I received a warning that my root volume is running out of space. Indeed
sudo ssm list
gives me
Volume Pool Volume size FS FS size Free Type Mount point
-------------------------------------------------------------------------------------------------------------
/dev/centos/root centos 60.00 GB ext4 60.00 GB 3.02 GB linear /
/dev/centos/swap centos 31.75 GB linear
/dev/centos/lv-tmp centos 9.00 GB ext4 9.00 GB 8.03 GB linear /var/tmp
/dev/centos/lv_common centos 93.00 GB ext4 93.00 GB 86.71 GB linear /common
/dev/centos/lv_local centos 4.00 GB ext4 4.00 GB 3.60 GB linear /local
/dev/centos/lv_acme centos 93.00 GB ext4 93.00 GB 68.88 GB linear /acme
/dev/centos/home centos 100.00 GB ext4 100.00 GB 68.15 GB linear /home
What I want is to see a view of the sizes of the directories on the affected root volume, perhaps in a tree view. I have tried a lot of different approaches, and they just don't seem to give me that information. Variations of du and df just don't seem to give the right info. I tried moving a large folder in /data to the /acme directory, and change the folder to a soft link, but it didn't make any difference for some reason. Various tools like Disk Usage Analyzer give conflicting information, k4dirstat doesn't let me select the volume, baobab gives still different conflicting information and doesn't show free space.
Any suggestions on how to see the directory sizes of a logical volume?
Follow-up:
It turns out that the problem was that after I moved the large folder in the /data folder and replaced it with a soft link, for some reason ssm list
wasn't updating its information. df shows that moving the folder did indeed have an effect. So I don't know the answer to my question yet (though I could try installing tree per al mamun's suggestion below), but as a practical matter, the problem is solved, and I will know to be suspicious of ssm in such situations.
du
is your friend here. Nevertheless, you can try the tool proposed in answers to this question on U&L, that should give you a tree with sizes. If it's of no help, in order to get helpful answers here I think you'll have to narrow your definition of "the right info". – fra-san Nov 02 '18 at 18:55