1 00:00:00,000 --> 00:00:11,520 As an administrator, you will also need to keep track of available disk space on your 2 00:00:11,520 --> 00:00:16,600 disks. So let's have a look at the commands that are involved. To start with, there is 3 00:00:16,600 --> 00:00:21,799 the df command. Df shows the amount of space that is available on mounted devices. It has 4 00:00:21,799 --> 00:00:27,040 different options to determine how you want to see it displayed. Then there is du, which 5 00:00:27,040 --> 00:00:32,400 stands for disk usage. It's giving a summary, and the nice thing about it is that you can 6 00:00:32,400 --> 00:00:37,439 see how much files you've got in a specific directory. Now, you should notice that these 7 00:00:37,439 --> 00:00:42,320 utilities don't work very well on thin provisioned storage, and that is because thin provisioned 8 00:00:42,320 --> 00:00:48,480 storage is pretending to offer more storage than is really available. So you might see 9 00:00:48,480 --> 00:00:55,200 20 GB available, where in reality, after writing 5 GB, your thin provisioned storage might 10 00:00:55,200 --> 00:01:03,480 be full. Let me demonstrate these tools. So let's use df –h to start with. I like 11 00:01:03,480 --> 00:01:09,160 the option –h, because –h is giving a human-readable format. So here we can see 12 00:01:09,160 --> 00:01:14,639 the most important storage device, which is the LVM Logical Volume Root on the volume 13 00:01:14,639 --> 00:01:21,519 group CS, and it has 13 GB available. Otherwise, we can see that there is the boot device with 14 00:01:21,519 --> 00:01:29,599 606 MB available. I just said gigabyte. Really, it's gibibyte, because gibi, mebi, and so on 15 00:01:29,599 --> 00:01:36,000 is the default display in anything regarding your storage. Now, if you want to see how much 16 00:01:36,000 --> 00:01:44,879 files in a directory, use du –hs on USR, for instance. Then it needs to calculate a little 17 00:01:44,879 --> 00:01:51,839 bit, and here we can see that USR in total has 3.8 GB of storage available. And that's 18 00:01:51,839 --> 00:01:53,839 how you monitor available disk space.