Suse linux installed in VMWare not using it's full diskspace

1

I have a linux server (SUSE Enterprise 11) installed in a virtual machine. Where preallocated disk space is given as 256 GB. But from the linux if I use df -h command it show this statistics:

Filesystem            Size  Used Avail Use% Mounted on
rootfs                 38G   33G  2.6G  93% /
udev                  3.9G  180K  3.9G   1% /dev
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/sda2              38G   33G  2.6G  93% /

From which it seem that the server has only about 40GB of disk space. I am wondering where the other 210GB went! Any idea?

Thanks in advance

sowrov

Posted 2012-03-30T04:40:00.020

Reputation: 321

1Did you run that command from the live CD? Are you using LVM? – Simon Sheehan – 2012-03-30T04:41:25.150

Live virtual machine – sowrov – 2012-03-30T04:42:14.630

So you booted into the live CD and ran this command? – Simon Sheehan – 2012-03-30T04:42:40.453

No, the server is up and running (i.e I am not using any live CD). – sowrov – 2012-03-30T04:44:33.107

Answers

2

Basically my problem was, lack of understanding the fact that allocating disk-space from the VMware does not mean that the disk space will be automatically taken up by linux os. It is like you have 250GB HD and you allocate only 40GB for linux and rest of the disk-space remain unused.
I found all the invisible Preallocated spaces as unused using cfdisk /dev/sda command. Now all I had to resize my sda2 drive with those spaces.

sowrov

Posted 2012-03-30T04:40:00.020

Reputation: 321

0

You've probably allocated the disk-space in a dynamic size allocation method, rather than a fixed size.

With dynamic size allocation, the VM software will allocate more space to the VM as it starts running out of the initial allocation, up to a maximum of the set limit (256 GB in your case).

Sathyajith Bhat

Posted 2012-03-30T04:40:00.020

Reputation: 58 436