These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for 500GB drive fitted, only 50GB showing in Virtualmin on the new forum.
Hi all,
I have set up an HP Proline server with a 500GB drive with Centos 6.2 and Virtualmin 3.97.
Having restored a few servers from backups, I have noticed that I am nearly out of disk space. Virtualmin reports "Local disk space 49.69 GB total, 46.74 GB used"
The output of df -h is:
Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_vm1-lv_root 50G 45G 2.6G 95% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/sda1 485M 51M 409M 12% /boot
Any ideas how I can start to troubleshoot where my other 450GB went?
Howdy,
Are you under the impression that your server only has one drive, and that drive is 500GB?
Or are there multiple drives?
Out of curiosity, what output do you receive if you run this command:
fdisk -l /dev/sda
Hi Eric,
I'm under the impression that there is only one drive and that drive is 500GB. Unless there's another drive in there that was not mentioned in the server spec. Doubt that though - it's one of those rackmounting Proline servers where all the drive bays are accessible from the front, and there's certainly only one drive there, and it's certainly 500GB.
Output of fdisk -l /dev/sda is :
I can see from that output that it is recognising the 500GB drive. Do I have a partitioning issue, do you think?
Howdy,
It looks like you're running LVM there... your partition is setup for 500GB, but the LVM volume that's mounted is only 50GB.
So that suggests that there's either another volume group, or that the currently mounted volume group was never setup for the full space.
You can use vgscan and vgdisplay to figure that out.
There's documentation on using those commands on CentOS here:
http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/VG_disp...
Thanks very much Eric. From that link, I was able to expand my logical volume and then do an online update to the filesystem. I've added 200GB to the available space, thereby keeping 250GB in case I ever need it for something else.
And I learned a whole lot about VLM along the way.
For anyone finding this thread in the future, I first expanded the logical volume by:
Which extends that logical volume by 200GB. Once that's done, it's also necessary to extend the associated filesystem to match. The ideal way to do this is to unmount the volume first, but of course if, as in my setup, your system is booted from that volume, that's not an option, so you have to do an online update. This is done by running:
(Or whatever the name of your filesystem is.)
This online update takes a while; adding 200GB to mine took about 20 mins.