VMware Cloud Community
SebastiaNet
Contributor
Contributor
Jump to solution

disk size not displayed properly

Good morning. There is something I do not understand when using the "df" command - it does not display all my disc(s).

What I see is

=======================================================================

# uname -a Linux lab007 2.4.21-37.0.2.ELvmnix #1 Mon Sep 25 22:18:34 PDT 2006 i686 i686 i386 GNU/Linux # df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/sda2 4919 1332 3338 29% / /dev/sda1 99 31 64 33% /boot none 131 0 131 0% /dev/shm /dev/sda6 1962 122 1741 7% /var/log #

=======================================================================

But my VM images are using a lot of disk, of course :

=======================================================================

[root@bcnlab007 volumes]# <span class="il">du -m 35871 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM1 25611 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM2 64551 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM3 22535 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM4 17425 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM5 30721 ./484dbd6e-9301ae68-dbf3-00145ebc743e/VM6 223968 ./484dbd6e-9301ae68-dbf3-00145ebc743e 20481 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VM7 55321 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VM8 22995 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VM9 20491 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VMA 102522 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VMB 22493 ./49ba8ea4-b1fecc90-c959-00145ebc743e/VMC 245024 ./49ba8ea4-b1fecc90-c959-00145ebc743e 468992 .

=======================================================================

What is the reason the "df" command does not display those 468 GB ?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

You must use vdf command.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
4 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

You must use vdf command.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
SebastiaNet
Contributor
Contributor
Jump to solution

Thanks a lot, Andre.

The logical continuation comes now :

if "df" command has been replaced by "vdf", what other "linux-type" comands have been replaced at ESX ?

Or even better - is there any documentation about them ?

I can see /usr/sbin/ is full of esx-like commands .... where are they documented ?

Thanks a lot for your support.

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

First remember that the Service Console is just a "virtual machine".

So some info does not represent the real info (free, cat /proc/cpuinfo, df, ..).

You have extra VMware command (the VMware CLI) to manage the hypervisor and reach the real infos.

So df is simple the Linux command and display the partition in the Linux environment.

The vdf command is the VMware command that display also the VMFS partition.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
wila
Immortal
Immortal
Jump to solution

Hi,

if "df" command has been replaced by "vdf", what other "linux-type" comands have been replaced at ESX ?

It is not a replacement, but an extension. The ESX Console has the normal linux commands it has inherited from the RHEL OS it is based on.

Besides those commands there are also specific commands for managing the ESX host.

From the sounds of it you managed to find most commands already in /usr/sbin

Or even better - is there any documentation about them ?

All those commands have man pages. So you can just type

man vdf

to get the standard documentation.

There are a number of 3rd party links and pages that describe the commands.

Check the external links at the bottom of this page to get a start:

http://www.vi-toolkit.com/wiki/index.php/ESX_CLI_Commands



--

Wil

_____________________________________________________

Visit the VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva