VMware Cloud Community
keyboardninja
Contributor
Contributor

How to check free space on an internal SD card?

I've got ESXi v.5 running on a 4GB internal SD card installed into an hp dl380 g7 server.  Everything works great, but I just can't figure out how to see the internal SD card as a storage entitiy and therefore check the free space on the card.  I am considering setting ESXi v.5 to setup logging on the SD card, but that seems awfully risky without being able to monitor the free space...

Any ideas on how to do this?  I was hoping vCenter would detect it as a storage and show me the capacity and free space, but no such luck.

Thanks!

0 Kudos
5 Replies
nielse
Expert
Expert

Have you tried 'df -h' via ssh?

@nielsengelen - http://foonet.be - VCP4/5
0 Kudos
keyboardninja
Contributor
Contributor

Yeah.  It lists the iSCSI datastores & 3 vfat volumes that are 249mb each... confused.

0 Kudos
GaneshNetworks

vmkvsitools hwinfo --disk

If the above command is not working, try to get help for "vmkvsitools hwinfo". You can get disk related command over there. Good Luck ! ! !

~GaneshNetworks™~ If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
AndreTheGiant
Immortal
Immortal

The SD layout is quite fixed... so don't worry to much.

See: http://vinfrastructure.it/en/2011/12/esxi-partitions-layout-of-system-disk/

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
dkleeman2
Contributor
Contributor

The three VFAT partitions are correct for an SD card installation. A hard disk installation will also have a 4 GB scratch partition for logs etc..

You can list your disk devices by listing /vmfs/devices/disks/ (ls -lh /vmfs/devices/disks/). This will list all attached disks and the SD card will look something like this:

-rw-------    1 root     root         3.7G Aug 28 15:28 mpx.vmhba32:C0:T0:L0
-rw-------    1 root     root         4.0M Aug 28 15:28 mpx.vmhba32:C0:T0:L0:1
-rw-------    1 root     root       250.0M Aug 28 15:28 mpx.vmhba32:C0:T0:L0:5
-rw-------    1 root     root       250.0M Aug 28 15:28 mpx.vmhba32:C0:T0:L0:6
-rw-------    1 root     root       110.0M Aug 28 15:28 mpx.vmhba32:C0:T0:L0:7
-rw-------    1 root     root       286.0M Aug 28 15:28 mpx.vmhba32:C0:T0:L0:8

This device (mpx.vmhbaXX:C0:T0:L0) will not appear in the GUI, which is annoying. If you are not sure which device is the SD card then the command esxcli storage core device list will make it pretty clear.

Daniel

0 Kudos