Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-21-2011, 10:20 PM
|
#1
|
LQ Newbie
Registered: Sep 2010
Posts: 15
Rep:
|
mysql will not restore database
Hi Guys.
I am having a problem restoring a database. Server is Ubuntu 8.04.4 LTS. It appears to wig out at a certain point, when this happens the output on the screen shows;
Quote:
0,4),('2011-02-21 03:30:32','Queue Wait Outside (100)','Queue Wait Outside (100)',11,0,4),('2011-02-21 03:30:49','Queue Wait Sleep (30)','Queue Wait Sleep (30)',5,0,4),('2011-02-21 03:30:53','Queue Wait Sleep (30)','Queue Wait Sleep (30)',13,0,4)
--------------
--------------
/*!40000 ALTER TABLE `exceptions` ENABLE KEYS */
--------------
|
The errors in the log shows;
Quote:
110222 13:27:52 [ERROR] /usr/sbin/mysqld: Disk is full writing '/var/run/mysqld/mysqld-bin.000001' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs
110222 13:37:52 [ERROR] /usr/sbin/mysqld: Disk is full writing '/var/run/mysqld/mysqld-bin.000001' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs
110222 13:47:52 [ERROR] /usr/sbin/mysqld: Disk is full writing '/var/run/mysqld/mysqld-bin.000001' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs
|
A df -h shows;
Quote:
root@prodsup01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 11G 7.1G 62% /
varrun 1014M 1014M 0 100% /var/run
varlock 1014M 0 1014M 0% /var/lock
udev 1014M 52K 1014M 1% /dev
devshm 1014M 0 1014M 0% /dev/shm
/dev/sdb1 30G 7.3G 21G 26% /var/lib/mysql
|
It looks like I am out of memory? Why is this happening?
The previous attempt at trying to do the restore hung at the same point, but I received emails from my Nagios monitoring server telling me that I was out of SWAP, not memory.
I have since given the server 3 gigs of swap to test and have now gotten the same error as before, but no alerts warning me that I am out of swap space.
I am using a virtual environment so I will try upping the ram to 4Gb to see if that makes any diff. It is currently set to 2Gb.
Anyone have any ideas?
|
|
|
02-21-2011, 10:33 PM
|
#2
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Quote:
Originally Posted by moodah
Hi Guys.
I am having a problem restoring a database. Server is Ubuntu 8.04.4 LTS. It appears to wig out at a certain point, when this happens the output on the screen shows;
The errors in the log shows;
A df -h shows;
It looks like I am out of memory? Why is this happening?
The previous attempt at trying to do the restore hung at the same point, but I received emails from my Nagios monitoring server telling me that I was out of SWAP, not memory.
I have since given the server 3 gigs of swap to test and have now gotten the same error as before, but no alerts warning me that I am out of swap space.
I am using a virtual environment so I will try upping the ram to 4Gb to see if that makes any diff. It is currently set to 2Gb.
Anyone have any ideas?
|
In that case, try upping the disk space dedicated to your virtual environment.
|
|
|
02-22-2011, 04:02 PM
|
#3
|
LQ Newbie
Registered: Sep 2010
Posts: 15
Original Poster
Rep:
|
It looks as if after creating more swap space (now 3Gb) and upping the ram (now 4gb), the database restore completed successfully.
The production database only contains 2Gb of RAM.
Mind you, it finished with;
Quote:
root@prodsup01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 9.9G 8.2G 55% /
varrun 2.0G 1.8G 183M 91% /var/run
|
91% of varrun being full.
I dont know how to explain this problem since our production database is fine, with only 2Gb of RAM, mind you, I don't think anyones ever needed to restore to that database.
This does not bode well for ease of mind.
Edit - I have assumed that one of the tables/objects/something in the database to be restored required more resources to load. Unless anyone can come up with anything better, haha.
Last edited by moodah; 02-22-2011 at 04:05 PM.
|
|
|
All times are GMT -5. The time now is 12:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|