SQL Error: Disk Full

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

Hello,

Holding on for your usual support.

Regards,
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: SQL Error: Disk Full

Post by avandemore »

What is the output of

Code: Select all

cat /proc/mounts 
ls -laF /usr/local/mysqltmp
df -h
This has some issue with it, either readonly or another full file system. If you are posting a screenshot, please ensure the entirely of the output is captured.
Previous Nagios employee
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

Thanks,

Find outputs attached.

Regards,
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: SQL Error: Disk Full

Post by avandemore »

I'm assuming you followed only some of the advice of another forum member and added tmpdir=/usr/local/mysqltmp to /etc/my.cfg. This will not work unless you do other things, and this approach isn't necessarily for you. Please remove that line from the config, and try the earlier referenced document Resizing the VM Disk Size starting with pvresize /dev/mapper/centos-root. After you have finished the resizing process, you can then restart mysql. It may be easiest to do a full system reboot.
Previous Nagios employee
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

I have done that, and I think I got a headway with the PV resizing, but doesn't look so with the LV resizing:

[root@localhost /]# pvresize /dev/sda2
Physical volume "/dev/sda2" changed
1 physical volume(s) resized / 0 physical volume(s) not resized
[root@localhost /]# lvresize /dev/mapper/VolGroup-lv_root /dev/sda2
Volume group "VolGroup" not found
You have new mail in /var/spool/mail/root
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: SQL Error: Disk Full

Post by avandemore »

I should have said pvresize /dev/sda2 earlier, use that instead. You are running a non-standard setup so steps need to be altered.

What is the output from # vgdisplayand # lvdisplay now?

After the pv is resized do an lvresize /dev/mapper/centos-root. Then you can do a xfs_growfs /dev/mapper/centos-root and reboot. It should be working at that point.
Previous Nagios employee
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

Thanks a lot,

Please see outputs in the attachement.
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

Thanks a lot,

Please see outputs in the attachement.
You do not have the required permissions to view the files attached to this post.
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: SQL Error: Disk Full

Post by venturegardengroup »

....
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: SQL Error: Disk Full

Post by avandemore »

Enter the commands as exactly follows:

Code: Select all

# lvresize /dev/mapper/centos-root /dev/sda2
# lvdisplay
Please post the output again.

Thanks,
Previous Nagios employee
Locked