The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unusual disk partition config - is it OK?

Discussion in 'General Discussion' started by Bruce123, Aug 10, 2014.

  1. Bruce123

    Bruce123 Active Member

    Joined:
    Jul 19, 2005
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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:
    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
     
    #1 Bruce123, Aug 10, 2014
    Last edited: Aug 10, 2014
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    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
     
  3. Bruce123

    Bruce123 Active Member

    Joined:
    Jul 19, 2005
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    They mounted your file system on a LVM parttion

    df -h /dev/mapper/sysvg-ROOT
     
  5. Bruce123

    Bruce123 Active Member

    Joined:
    Jul 19, 2005
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  6. Bruce123

    Bruce123 Active Member

    Joined:
    Jul 19, 2005
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  7. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    It will work fine the way they have it
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  9. Bruce123

    Bruce123 Active Member

    Joined:
    Jul 19, 2005
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Thank you. That's just what I needed to know.
     
Loading...

Share This Page