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

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    9:09 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

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    10:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
    
     
  3. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    8:09 AM
    or just don't have a /home directory when setting up the disks. That's how I have things setup.
     
  4. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    9:09 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

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    9:09 AM
    10
    These are the partitions I set
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    10:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  7. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    8:09 AM
    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.