Unusual disk partition config - is it OK?

Bruce123

Active Member
Jul 19, 2005
39
1
158
This is a new dedicated server build. Server is centOS 6.5 x86_64 standard / WHM 11.44.1 (build 11)

I am using a new data center. There were some initial problems with the server build (DNS was not configured properly in WHM, and it took them a while to get it sorted out), and so I would like to verify that this disk partitioning scheme is OK before I start moving accounts to this server.

In WHM Home » Server Status » Server Information, near the bottom is an area "Disk Usage".
Normally I would see something like this this (taken from a dedicated server I have elsewhere):

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 1.9G 429M 1.4G 24% /
/dev/sda7 431G 54G 355G 14% /home
/dev/sda5 1.9G 506M 1.4G 28% /tmp
/dev/sda3 7.6G 6.0G 1.3G 84% /usr
/dev/sda2 7.6G 2.6G 4.7G 36% /var
tmpfs 2.0G 0 2.0G 0% /dev/shm

On this new server, I see this:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT 443G 11G 410G 3% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/md0 485M 69M 391M 15% /boot
/usr/tmpDSK 4.0G 137M 3.7G 4% /tmp

If I run df -h from the command line I see what is immediately above

If I run df -hT for what I expect to be a partition (ex: df -hT /home), I always get the same result:

[email protected] [~]# df -hT /home
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT
ext4 443G 11G 410G 3% /

[email protected] [~]# df -hT /usr
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT
ext4 443G 11G 410G 3% /

...etc.

I have asked my data center about this, and they have said:
The provisioning of this server used software raid 1 (morror) as you requested using the following partitioning script:

part raid.01 --size=500 --ondisk=sda --asprimary
part raid.02 --size=500 --ondisk=sdb --asprimary
part raid.03 --size=1 --grow --ondisk=sda
part raid.04 --size=1 --grow --ondisk=sdb
raid /boot --fstype ext3 --device md0 --level=RAID1 raid.01 raid.02
raid pv.01 --fstype ext3 --device md1 --level=RAID1 raid.03 raid.04
volgroup sysvg pv.01
logvol / --vgname=sysvg --size=1 --grow --name=ROOT
logvol swap --vgname=sysvg --recommended --name=SWAP

This created the following (useable) partitions: 500mb boot swap of recommended size (generally 8 to 16gb) the remaining space to the root folder.
Nothing there about the partitions /home, /var, /user...

BTW, I did request raid1, not the partitioning script. I also have raid1 on my servers at another data center.

I did notice on the cpanel docs at http://docs.cpanel.net/twiki/bin/vi...onGuide/AdvancedOptions#Advanced_Partitioning , just above the recommended partition size table, this: Note: All of the following partitions are optional except / and swap.

And I do see the folders for /home, /var, /user, etc. on the server

I have put a few test accounts on the server, and all seems OK, but I would like to know if something is going to blow up later before I start moving my hosted accounts.

TIA for your help!

Bruce
 
Last edited:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,976
152
368
SLC
cPanel Access Level
DataCenter Provider
Its oK and will work but you will likely run out of room on your /var partition quickly

I have no idea why providers do this? in this day & age with modern Hard drives its not necessary to partition out everything


This is our standard default for a single SAT/SAS configuration


/boot 300M
/tmp 4096M
/swap 8096 (variable depending on Ram)
/ The rest


Note: depending on customer request we will do it anyway they want to
only thing different we may do on occasion is add a /var partition

There is no reason to set it up this way unless you are adding extra drives into the mix EG: running MySQL on SSD,etc
 

Bruce123

Active Member
Jul 19, 2005
39
1
158
Thanks dalem. But I don't understand -- I don't see a /var partition at all. I don't see any partitions!

Everything reports like this:

[email protected] [~]# df -hT /var
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT ext4 443G 11G 410G 3% /

On one of my other servers -

[email protected] [~]# df -hT /var
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 7.6G 2.5G 4.8G 35% /var

Where/how can I see the size of the /var (or /home or /usr or anything else)?

Thanks again.
 

Bruce123

Active Member
Jul 19, 2005
39
1
158
Thanks dalem.

Executing df -h /dev/mapper/sysvg-ROOT returns the same output as everything else:

Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT ext4 443G 11G 410G 3% /

I am still interested to see the size and location of the /var partition you believe may be too small.

Thanks again.
 

Bruce123

Active Member
Jul 19, 2005
39
1
158
Update from my data canter --

I asked: So do I understand that the "typical" cpanel/WHM partitions for /home, /temp, /usr, /var... are not present, but instead directories are used, and they will therefore expand as needed to accommodate what must reside within?

They replied: Correct, /home, /temp, /usr, /var are all under root and will use the space as needed.

Being paranoid, I would appreciate it if someone from cPanel could verify that this configuration is OK.

Thanks again.

Bruce
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Actually, your data center setup your partitions exactly how we recommend. See "Recommended partitions" at:

Installation Guide

It's good that it's setup that way because there is no concern of your /var or /usr partitions reaching capacity.

Thank you.