Skip to main content

TRANSFER: Account : Insufficient disk space is available. “/var/lib/mysql”

Comments

14 comments

  • User Avatar
    quietFinn
    You can use df -h to see partition usage.
    0
  • User Avatar
    kwdamp
    You can use df -h to see partition usage.

    Thanks, so did the person that provisioned the server partition the home directly unnecessarily large? Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 63G 0 63G 0% /dev/shm tmpfs 26G 43M 25G 1% /run /dev/mapper/almalinux00-root 70G 7.5G 63G 11% / /dev/sda2 1014M 212M 803M 21% /boot /dev/sda1 599M 7.1M 592M 2% /boot/efi /dev/mapper/almalinux00-home 1.7T 20G 1.7T 2% /home /dev/loop0 3.2G 212K 3.1G 1% /tmp (more readable screenshot attached)
    0
  • User Avatar
    ffeingol
    Your root file system (/) only has 64 GB of available space. /var/lib/mysql lives in the root file system, so they is not enough room for that large database. Most of your spaces is allocated in /home file system.
    0
  • User Avatar
    andrew.n
    exactly, luckily you most likely be able to resize /root by shrinking /home but I would rather get rid of /home completely and just allocate all space to / (root). Make sure full backup is done beforehand as this is a risky procedure so it is suggested to get this done by a professional if you are not tech savvy enough.
    0
  • User Avatar
    kwdamp
    exactly, luckily you most likely be able to resize /root by shrinking /home but I would rather get rid of /home completely and just allocate all space to / (root). Make sure full backup is done beforehand as this is a risky procedure so it is suggested to get this done by a professional if you are not tech savvy enough.

    Thanks guys. This was supposed to be the "standard" cpanel deployment on Raid 10. Is there any reason they would have provisioned it like this? Or was someone just lazy and dedicated all remaining space to the /home file system?
    0
  • User Avatar
    andrew.n
    I think this was done using a template. I'm not 100% sure that this would be the default partition layout if done manually from like an ISO.
    0
  • User Avatar
    andrew.n
    Is it a VPS or dedi? Whats the host? OVH? It might be worth re-provisioning this from Almalinux template without pre-installed cPanel then and if that looks fine then installing cPanel or the resize way to go.
    0
  • User Avatar
    kwdamp
    Is it a VPS or dedi? Whats the host? OVH? It might be worth re-provisioning this from Almalinux template without pre-installed cPanel then and if that looks fine then installing cPanel or the resize way to go.

    It's kind of a hybrid between dedicated and bare metal. And we've already re-provisioned once. lol
    0
  • User Avatar
    andrew.n
    Whats the output of /etc/fstab?
    0
  • User Avatar
    kwdamp
    Whats the output of /etc/fstab?

    Permission Denied?
    0
  • User Avatar
    andrew.n
    ........I would either hire somebody or open a ticket with your provider and ask them to provision the server the way you wish, preferably with all space allocated to /root and swap, thats all. I would probably be able to provide you instructions but I hate writing commands here as somebody later on just come here by google and blindly copy-paste the commands then cry that we broke his system :(
    0
  • User Avatar
    quietFinn
    Permission Denied?

    He meant: cat /etc/fstab
    0
  • User Avatar
    kwdamp
    He meant: cat /etc/fstab

    Thanks. This is the output:
    0
  • User Avatar
    cPRex Jurassic Moderator
    No matter what you do, you'll have to tweak the disk to be able to handle that large database. Whether that is a reimage and start over, or a reallocation. Your host would be able to let you know if they can adjust the partitions without the need to rebuild the system.
    0

Please sign in to leave a comment.