Submitted by jflesher on Thu, 02/09/2012 - 23:38
Local disk space should show active partition size, as well as hard drive space.
The home directory is in a partition of its own, in a stanard install of VMWare, there for, most of the hard drive space is allocated from this partition, so the local disk space which includes the root system and other partitions, should be listed seperate to give a better understanding of which partitions size you are looking at, instead of just combining them as if they are one hard drive; which can be very misleading, causeing me to assume I had more space, when in fact that partition was full, crashing all the web sites on the server.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Fri, 02/10/2012 - 12:56 Comment #1
You can actually limit which filesystems are included in the local disk space count, at System Settings -> Virtualmin Configuration -> Status collection -> Filesystems to include in local disk space.
Submitted by jflesher on Fri, 02/10/2012 - 13:58 Comment #2
This looks like what I need, but I must be doing something wrong.
I tried puting this in: /dev/mapper/vg_domainname-lv_home
Did the refresh, Re-Check Configuration, not sure what else to try.
I did not see a change, it shows: Local disk space 112.32 GB total, 67.36 GB
but just to be clear about what this function does:
Filesystems to include in local disk space By default the System Information page will display disk space on all local filesystems. However, this option allows you to enter a space-separate list of mount points to only check instead. This can be useful if for example you only care about usage on /home.
After changing this setting you will need to click Refresh system information on the System Information page.
Did I enter in the correct filesystem? If so, why didn't it change to: Local disk space 68.32 GB total, 67.36 GB
Below is fdisk and fstab info
[root@domainname ~]# fdisk -l
Disk /dev/sda: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003ac48
Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 15666 125316096 8e Linux LVM
Disk /dev/mapper/vg_domainname-lv_root: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@domainname ~]# cat /etc/fstab
dev/mapper/vg_domainname-lv_root / ext4 defaults 1 1 UUID=da76b446-626c-462f-836e-3dd49326dc96 /boot ext4 defaults 1 2 /dev/mapper/vg_domainname-lv_home /home ext4 grpquota,usrquota,rw 0 2 /dev/mapper/vg_domainname-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0
Disk /dev/mapper/vg_domainname-lv_root doesn't contain a valid partition table
Disk /dev/mapper/vg_domainname-lv_swap: 6308 MB, 6308233216 bytes 255 heads, 63 sectors/track, 766 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Disk /dev/mapper/vg_domainname-lv_swap doesn't contain a valid partition table
Disk /dev/mapper/vg_domainname-lv_home: 68.3 GB, 68325212160 bytes 255 heads, 63 sectors/track, 8306 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Disk /dev/mapper/vg_domainname-lv_home doesn't contain a valid partition table
Virtualmin: 3.90 Pro CentOS Linux 6.2
Submitted by JamieCameron on Fri, 02/10/2012 - 14:00 Comment #3
You should enter
/home
instead, and after saving click "Refresh system information"Submitted by jflesher on Fri, 02/10/2012 - 14:15 Comment #4
My bad, thanks, works great now.
Submitted by jflesher on Fri, 02/10/2012 - 14:19 Comment #5
Why does it show 62 instead of 68?
Local disk space 62.63 GB total, 62.24 GB
Submitted by JamieCameron on Fri, 02/10/2012 - 16:30 Comment #6
Wait, why should it show 68 GB?
Submitted by jflesher on Fri, 02/10/2012 - 17:13 Comment #7
From the fdisk snapshot in previous thread, the size of this partition is 68.3 GB, yet in the status area, it show 62 GB.
Submitted by JamieCameron on Fri, 02/10/2012 - 17:18 Comment #8
That's expected .. the filesystem overhead consumes a lot of the partition space.
Submitted by Issues on Fri, 02/24/2012 - 17:34 Comment #9
Automatically closed -- issue fixed for 2 weeks with no activity.