Out of disk space, not using data disk

Discussion in 'Installation/Configuration' started by tjbcham, Nov 22, 2016.

  1. tjbcham

    tjbcham Member

    Hi not sure where the right place to ask this is... here on ISPConfig 3?
    Getting warning from ISPconfig 3 that I am nearly out of disk space, and then see I am not using the data disk /dev/md2
    Had followed perfect server set up, so not sure how to go back and fix this?

    (Debian Jessie) ISPConfig 3.1b1
    Disk Usage:
    /dev/md1 ext4 37G 34G 744M 98% /
    udev devtmpfs 10M 0 10M 0% /dev
    tmpfs tmpfs 6.3G 649M 5.7G 11% /run
    /dev/md0 ext4 268M 32M 218M 13% /boot
    /dev/md2 ext4 410G 71M 389G 1% /data

    Raid Status:
    Personalities : [raid1] [raid6] [raid5] [raid4] md2 : active raid5 sda3[0] sdc3[2] sdb3[1] 436023296 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU] bitmap: 0/2 pages [0KB], 65536KB chunk md1 : active raid5 sda2[0] sdc2[2] sdb2[1] 39028736 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU] md0 : active raid1 sda1[0] sdc1[2] sdb1[1] 291520 blocks super 1.2 [3/3] [UUU] unused devices: <none>

    Thanks
     
  2. tjbcham

    tjbcham Member

    Used fdisk to check the partitioning, which was fine, just must have missed a step in the set up.
    Have 3 SSDs in a soft raid as a single volume, but data was not being written to the empty data partition.
    Just needed to send the data to the empty partition and add a symlink.

    Biggest chunck of data was the www directory, so copied them to the /data partition

    mkdir /data/www
    mv /var/www/* /data/www
    rmdir /var/www
    ln -s /data/www /var/www

    To find other large files using disk space using

    du -hsx /*

    So did the same for logs and moved them to the data partition

    mkdir /data/var_log
    mv /var/log/* /data/var_log
    rmdir /var/log
    ln -s /data/var_log /var/log
     

Share This Page