Want more timely Centmin Mod News Updates?
Become a Member

/ is full

Discussion in 'Install & Upgrades or Pre-Install Questions' started by elargento, May 24, 2017.

  1. elargento

    elargento Member

    284
    16
    18
    Jan 4, 2016
    Ratings:
    +37
    Local Time:
    1:36 AM
    10
    Code:
    /dev/md2         20G   19G     0 100% /
    devtmpfs         16G     0   16G   0% /dev
    tmpfs            16G     0   16G   0% /dev/shm
    tmpfs            16G   17M   16G   1% /run
    tmpfs            16G     0   16G   0% /sys/fs/cgroup
    /dev/nvme0n1p1  510M  152K  510M   1% /boot/efi
    /dev/md3        393G   18G  355G   5% /home
    tmpfs           3.1G     0  3.1G   0% /run/user/0
    
    I'm trying to see what is going on,

    [root@test /]# du -h --max-depth=1 | sort -hr
    Code:
    36G     .
    18G     ./home
    12G     ./var
    6.0G    ./usr
    329M    ./root
    156M    ./opt
    120M    ./boot
    36M     ./etc
    17M     ./run
    5.8M    ./htop-2.0.2
    176K    ./tmp
    4.0K    ./srv
    4.0K    ./mnt
    4.0K    ./media
    4.0K    ./backup
    0       ./sys
    0       ./proc
    0       ./dev
    Any idea what can I do to check what is using all the space in /?
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    2:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    answer is in front of you from above output you partitioned root / too small as /var and /usr took up 12GB and 6GB respectively for mysql data and other system /var placed files/directories and for mysql data and system /usr files/directories

    make sure /var and /usr has ample space for your usage requirements

    i.e. one of my paying client's new servers being setup

    Code (Text):
    lshw -short -C disk
    H/W path             Device     Class          Description
    ==========================================================
    /0/100/1f.2/0        /dev/sda   disk           1TB ST1000NM0033-9ZM
    /0/100/1f.2/1        /dev/sdb   disk           1024GB Samsung SSD 850
    /0/100/1f.2/2        /dev/sdc   disk           1024GB Samsung SSD 850
    /0/100/1f.2/3        /dev/sdd   disk           1024GB Samsung SSD 850
    /0/100/1f.2/0.0.0    /dev/sde   disk           1024GB Samsung SSD 850

    4x 1TB Samsung 850 Pro raid 10 + 1TB SATA Backup
    Code (Text):
    df -hT
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/md127     xfs        10G  155M  9.9G   2% /
    devtmpfs       devtmpfs   32G     0   32G   0% /dev
    tmpfs          tmpfs      32G     0   32G   0% /dev/shm
    tmpfs          tmpfs      32G  290M   32G   1% /run
    tmpfs          tmpfs      32G     0   32G   0% /sys/fs/cgroup
    /dev/md124     xfs       101G  9.0G   92G   9% /usr
    /dev/md121     xfs       131G  1.1G  130G   1% /var
    /dev/md126     xfs       999M  142M  858M  15% /boot
    /dev/sda2      xfs       932G   33M  932G   1% /backup
    /dev/md122     xfs       1.6T   34M  1.6T   1% /home
    /dev/md123     xfs        60G   33M   60G   1% /tmp
    
     
    • Informative Informative x 1
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    12:36 AM
    1.13.x
    MariaDB 10.1.x
    or just don't have a /home directory when setting up the disks. That's how I have things setup.
     
  4. elargento

    elargento Member

    284
    16
    18
    Jan 4, 2016
    Ratings:
    +37
    Local Time:
    1:36 AM
    10
    I think the problem is on /root/tmp folder
    I followed Roldan's partitions:
    View attachment 2854 [/QUOTE]

    Also OVH default template has just 20GB assigned to / and the rest of space to /home.

    So if / is recommended to be set up to 20GB why it got full?
     
  5. elargento

    elargento Member

    284
    16
    18
    Jan 4, 2016
    Ratings:
    +37
    Local Time:
    1:36 AM
    10
    These are the partitions I set
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    2:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah / too small at 20GB

    no preset formula, you configure partition size based on your specific usage requirements

    otherwise just setup / to all free disk and a /swap partition
     
    • Like Like x 1
    • Agree Agree x 1
  7. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    12:36 AM
    1.13.x
    MariaDB 10.1.x
    When I got to that OVH screen I just deleted home and put the remaining space on /. Easier to manage and I never have to worry about one getting full, etc.
     
    • Like Like x 1
    • Agree Agree x 1