Unusual disk partition config - is it OK?
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:
root@ns7 [~]# df -hT /home
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/sysvg-ROOT
ext4 443G 11G 410G 3% /
root@ns7 [~]# 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:
[QUOTE]
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
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
-
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 0 -
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: root@ns7 [~]# 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 - root@ns5 [~]# 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. 0 -
They mounted your file system on a LVM parttion df -h /dev/mapper/sysvg-ROOT 0 -
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. 0 -
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 0 -
It will work fine the way they have it 0 -
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. 0 -
Thank you. That's just what I needed to know. 0
Please sign in to leave a comment.
Comments
8 comments