LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2009, 12:14 PM   #1
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
mysqldump a large database? (26gb)


hey guys,

phpmyadmin shows my database is 26 gigs.. but whenever i mysqldump --all-databases --quick > alldatabases.sql I only get 11gigs (consistently)

I know there's a way to convert the db to myisam but my harddrive is @ 93% I'm trying to dump to my slave drive.

So is there a way to dump all 26 gigs to a slave drive? Thanks guys!
 
Old 03-20-2009, 12:48 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
A dump is a dump: if you've got space, then the dump should contain all your data. Otherwise, you should get an error. Whether or not it happens to be a "slave drive" is totally irrelevant!

I'm not sure where you're getting the "26GB" and "11GB" numbers from ...
... but "database space used" does NOT necessarily equal "data currently stored in database".

Think of some other way to validate that the dump contains "all your data". I suspect you'll find you're already successful - you just didn't realize it ;-)

'Hope that helps .. PSM

PS:
You never responded back to your previous post:
http://www.linuxquestions.org/questi...emains-712376/

Last edited by paulsm4; 03-20-2009 at 12:49 PM.
 
Old 03-20-2009, 12:54 PM   #3
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Original Poster
Rep: Reputation: 30
thanks.. i'm trying to solve the first step.. the ibdata1 file is 50 gigs.. but the size in use is 26 gigs.. when i dump, it only comes out 11gb..

there was no error either:

[root@WS-10022 ~]# mysqldump --single-transaction --quick --all-databases > /home2/alldatabases.sql
[root@WS-10022 ~]#

Last edited by guest; 03-20-2009 at 12:55 PM.
 
Old 03-20-2009, 02:20 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by guest View Post
thanks.. i'm trying to solve the first step.. the ibdata1 file is 50 gigs.. but the size in use is 26 gigs.. when i dump, it only comes out 11gb..

there was no error either:

[root@WS-10022 ~]# mysqldump --single-transaction --quick --all-databases > /home2/alldatabases.sql
[root@WS-10022 ~]#
What is your inode size on your filesystem?
 
Old 03-20-2009, 03:51 PM   #5
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rweaver View Post
What is your inode size on your filesystem?
128


i just did this again: mysqldump -u root -p --single-transaction --quick --opt --all-databases > /home2/alldatabases2.sql

and still 11gb..

Last edited by guest; 03-20-2009 at 03:55 PM.
 
Old 03-20-2009, 11:37 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Does "select count(*) from <<some table>>" show the same row count? Can you think of anything else to verify whether or not any actual "data" is missing?
 
Old 03-23-2009, 09:37 AM   #7
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by guest View Post
128
Can you give me the stats on your file system? type, inode, blocks, etc? It sounds like you might have hit your file systems limit. A good example is ext2, with a block size of 1k your max single file size is around 16gb.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE / MySQL --Very Large Database 1kyle SUSE / openSUSE 1 06-30-2006 04:07 PM
Using cpio on a 26GB archive produces "File too large" mfairclough Linux - Newbie 2 06-28-2004 05:55 PM
Transfering a large MySql database E-Oreo Programming 3 06-04-2004 07:15 AM
Whiich DBMS for very large database? nakkaya Linux - General 5 03-16-2003 10:38 PM
large database nakkaya Linux - General 1 01-18-2003 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration