Join the community today
Become a Member

partitions out of space, /var/lib

Discussion in 'System Administration' started by Oxide, Jan 21, 2016.

  1. Oxide

    Oxide Active Member

    505
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    3:30 PM
    ok so php randomly crashed.. i reinstalled it and it worked..
    then mysql crashed, couldn't get it to start..

    ran df -h and this returned:
    F
    ilesystem Size Used Avail Use% Mounted on
    rootfs 20G 19G 0 100% /
    /dev/root 20G 19G 0 100% /
    devtmpfs 16G 528K 16G 1% /dev
    /dev/md2 91G 2.3G 84G 3% /home
    tmpfs 16G 0 16G 0% /dev/shm
    tmpfs 16G 2.2M 16G 1% /tmp




    i then had to move /var/lib/mysql over to /home/sql.. chown it then modify my.cnf..

    are there any security risks doing such? and how did it use so much space in /var/lib already? i dont have that many databases
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    Might be worth a read Disk space is going away | Centmin Mod Community :)
    no security / data integrity risks if done correctly

    Official site and download/install page at centminmod.com/download.html has list of minimum AND recommended requirements:

    SELINUX must be disabled. Minimum system requirements are 256MB memory (128MB with variable tweak) for CentOS 6.x and 1GB memory for CentOS 7.x 64bit and 12GB disk space for OpenVZ VPS virtualization & 20GB for KVM and Xen virtualisation. Recommended memory & disk requirements are double the mininum for CentOS 6/7 respectively at CentOS 6.x 512MB memory and CentOS 7.x 64bit at 2GB memory and disk space of 24GB for OpenVZ and 40GB for KVM/Xen virtualisation. Disk usage footprint for CentOS OS + Centmin Mod LEMP initial install is approximately between 7.5GB and 9.5GB.
     
  3. Oxide

    Oxide Active Member

    505
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    3:30 PM
    I heard there are templates we could use for specific servers, i have soft raid (3x 120gb ssd) and 32GB DDR Ram.. are there any templates for such?

    i mean seems to be working all fine now, all i did was moving, chown and editing my.cnf
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    not really i usually partition my own dedicated servers depending on my disk usage requirements /var is logs and mysql data and /home well nginx vhost and site data and site logs and / root is for everything else so partition as needed Benchmarks - SoYouStart E3-SSD-3 - Intel Xeon E3-1245v2, 32GB, 3x120GB Intel 320 SSD | Centmin Mod Community
     
  5. Oxide

    Oxide Active Member

    505
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    3:30 PM
    centminmod/my-mdb10-32gb.cnf at 123.09beta01 · centminmod/centminmod · GitHub

    this would work?

    [root@vps236531 ~]# mysql -V
    mysql Ver 15.1 Distrib 10.0.23-MariaDB, for Linux (x86_64) using readline 5