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.

Help putting /var in /home partition

Discussion in 'General Discussion' started by cretu, Jul 11, 2007.

  1. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    We have observed /var partition growing on us very rapidly. We are clearing the logs and Exim spool but this won't be sufficient for the future. We were thing in moving /var into /home partition and wondering if there will be any problems or precaution we have to have in mind.
    Also, if anyone would help in step-by-step process I would be thankful!

    Cretu.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Be aware that MySQL databases are stored in /var/lib/mysql and some configuration and logs are stored in /var/cpanel . For that reason, I would encourage you to keep the paths intact - keep it as /var rather than /home/var or something like that.
     
  3. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    16
    David,

    Thanks for the reply.

    Can I move /var and make a link to /home/var instead?

    Toom
     
  4. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    more intelligent would have been to make a big var ... like 20 gb or so from the start. would not suggest to mess it up. .. that's my opinion and btw logs SHOULD rotate.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Correct. Create a new partition, copy everything in /var to it and mount it on /var Moving stuff into home and symlinking, while work, is not recommended.
     
  6. nitaish

    nitaish Well-Known Member
    PartnerNOC

    Joined:
    Jan 6, 2006
    Messages:
    123
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mulund, India, India

    Can you explain the steps to do so? Following is the out put for df -h on my server


    Filesystem Size Used Avail Use% Mounted on
    /dev/sda6 996M 270M 675M 29% /
    /dev/sdb1 145G 26G 112G 19% /backup
    /dev/sda1 76M 17M 56M 23% /boot
    /dev/shm 1005M 0 1005M 0% /dev/shm
    /dev/sda8 132G 15G 110G 12% /home
    /dev/sda7 502M 27M 450M 6% /tmp
    /dev/sda2 5.9G 3.2G 2.4G 58% /usr
    /dev/sda5 1.5G 1.2G 242M 83% /var
    /tmp 502M 27M 450M 6% /var/tmp
     
Loading...

Share This Page