PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > ibdata file size
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ibdata file size

Réponse
 
LinkBack Outils de la discussion
Vieux 29/10/2007, 15h25   #1
Thomas Raso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut ibdata file size

hi all,

i don't understand the size of the ibdata7

-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:18 ibdata1
-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata2
-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata3
-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:08 ibdata4
-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata5
-rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata6
-rw-rw---- 1 mysql mysql 22G Oct 29 15:18 ibdata7

the size of the databases is near 8Go.
innodb_data_file_path =
ibdata1:2000M;ibdata2:2000M;ibdata3:2000M;ibdata4: 2000M;ibdata5:2000M;ibdata6:2000M;ibdata7:500M:aut oextend

The OS is Linux XXXXX 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006
i686 i686 i386 GNU/Linux

4 x Intel(R) Xeon(R) CPU 5140 @ 2.33GHz with 4Go

is anybody has got a documentation about this...


Thanks all

Thomas Raso

  Réponse avec citation
Vieux 29/10/2007, 16h02   #2
Dan Nelson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ibdata file size

In the last episode (Oct 29), Thomas Raso said:
> i don't understand the size of the ibdata7
>
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:18 ibdata1
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata2
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata3
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:08 ibdata4
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata5
> -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata6
> -rw-rw---- 1 mysql mysql 22G Oct 29 15:18 ibdata7
>
> the size of the databases is near 8Go.
> innodb_data_file_path = ibdata1:2000M;ibdata2:2000M;ibdata3:2000M;ibdata4: 2000M;ibdata5:2000M;ibdata6:2000M;ibdata7:500M:aut oextend
>
> The OS is Linux XXXXX 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006
> i686 i686 i386 GNU/Linux
>
> 4 x Intel(R) Xeon(R) CPU 5140 @ 2.33GHz with 4Go
>
> is anybody has got a documentation about this...


It means you have (or had at one point in the past) 28GB worth of
InnoDB tables created. If you know you have only 8GB in use and want
to recover the space used by those ibdata files, you will need to back
up all your tables, delete the ibdata files, and restore the tables. I
recommend setting innodb_file_per_table=1 so each table gets its own
tablespace file. That way, when you delete a table, the space is
immediately returned back to the filesystem.

http://dev.mysql.com/doc/refman/5.0/...-removing.html
http://dev.mysql.com/doc/refman/5.0/...blespaces.html

--
Dan Nelson
dnelson@allantgroup.com
  Réponse avec citation
Vieux 29/10/2007, 16h16   #3
Thomas Raso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ibdata file size

There is no way whitout stopping mysql ?

for information it is a version 4.1

2007/10/29, Dan Nelson <dnelson@allantgroup.com>:
>
> In the last episode (Oct 29), Thomas Raso said:
> > i don't understand the size of the ibdata7
> >
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:18 ibdata1
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata2
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata3
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:08 ibdata4
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata5
> > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata6
> > -rw-rw---- 1 mysql mysql 22G Oct 29 15:18 ibdata7
> >
> > the size of the databases is near 8Go.
> > innodb_data_file_path =

> ibdata1:2000M;ibdata2:2000M;ibdata3:2000M;ibdata4: 2000M;ibdata5:2000M;ibdata6:2000M;ibdata7:500M:aut oextend
> >
> > The OS is Linux XXXXX 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006
> > i686 i686 i386 GNU/Linux
> >
> > 4 x Intel(R) Xeon(R) CPU 5140 @ 2.33GHz with 4Go
> >
> > is anybody has got a documentation about this...

>
> It means you have (or had at one point in the past) 28GB worth of
> InnoDB tables created. If you know you have only 8GB in use and want
> to recover the space used by those ibdata files, you will need to back
> up all your tables, delete the ibdata files, and restore the tables. I
> recommend setting innodb_file_per_table=1 so each table gets its own
> tablespace file. That way, when you delete a table, the space is
> immediately returned back to the filesystem.
>
> http://dev.mysql.com/doc/refman/5.0/...-removing.html
> http://dev.mysql.com/doc/refman/5.0/...blespaces.html
>
> --
> Dan Nelson
> dnelson@allantgroup.com
>


  Réponse avec citation
Vieux 29/10/2007, 16h25   #4
Dan Nelson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ibdata file size

In the last episode (Oct 29), Thomas Raso said:
> 2007/10/29, Dan Nelson <dnelson@allantgroup.com>:
> > In the last episode (Oct 29), Thomas Raso said:
> > > i don't understand the size of the ibdata7
> > >
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:18 ibdata1
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata2
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata3
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:08 ibdata4
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata5
> > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata6
> > > -rw-rw---- 1 mysql mysql 22G Oct 29 15:18 ibdata7
> > >
> > > the size of the databases is near 8Go.
> > > innodb_data_file_path = ibdata1:2000M;ibdata2:2000M;ibdata3:2000M;ibdata4: 2000M;ibdata5:2000M;ibdata6:2000M;ibdata7:500M:aut oextend
> > >
> > > is anybody has got a documentation about this...

> >
> > It means you have (or had at one point in the past) 28GB worth of
> > InnoDB tables created. If you know you have only 8GB in use and
> > want to recover the space used by those ibdata files, you will need
> > to back up all your tables, delete the ibdata files, and restore
> > the tables. I recommend setting innodb_file_per_table=1 so each
> > table gets its own tablespace file. That way, when you delete a
> > table, the space is immediately returned back to the filesystem.
> >
> > http://dev.mysql.com/doc/refman/5.0/...-removing.html
> > http://dev.mysql.com/doc/refman/5.0/...blespaces.html

>
> There is no way whitout stopping mysql ?
>
> for information it is a version 4.1


Nope; the backup/delete/restart/restore procedure is the only way.

--
Dan Nelson
dnelson@allantgroup.com
  Réponse avec citation
Vieux 29/10/2007, 16h38   #5
Thomas Raso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ibdata file size

ok thanks,

this mysql has got a replication slave...

On the slave the ibdata has got a size close to 15Go (ie the master's size
is 22Go)

have you got an idea about this ???

thanks

2007/10/29, Dan Nelson <dnelson@allantgroup.com>:
>
> In the last episode (Oct 29), Thomas Raso said:
> > 2007/10/29, Dan Nelson <dnelson@allantgroup.com>:
> > > In the last episode (Oct 29), Thomas Raso said:
> > > > i don't understand the size of the ibdata7
> > > >
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:18 ibdata1
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata2
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata3
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:08 ibdata4
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata5
> > > > -rw-rw---- 1 mysql mysql 2.0G Oct 29 15:17 ibdata6
> > > > -rw-rw---- 1 mysql mysql 22G Oct 29 15:18 ibdata7
> > > >
> > > > the size of the databases is near 8Go.
> > > > innodb_data_file_path =

> ibdata1:2000M;ibdata2:2000M;ibdata3:2000M;ibdata4: 2000M;ibdata5:2000M;ibdata6:2000M;ibdata7:500M:aut oextend
> > > >
> > > > is anybody has got a documentation about this...
> > >
> > > It means you have (or had at one point in the past) 28GB worth of
> > > InnoDB tables created. If you know you have only 8GB in use and
> > > want to recover the space used by those ibdata files, you will need
> > > to back up all your tables, delete the ibdata files, and restore
> > > the tables. I recommend setting innodb_file_per_table=1 so each
> > > table gets its own tablespace file. That way, when you delete a
> > > table, the space is immediately returned back to the filesystem.
> > >
> > > http://dev.mysql.com/doc/refman/5.0/...-removing.html
> > > http://dev.mysql.com/doc/refman/5.0/...blespaces.html

> >
> > There is no way whitout stopping mysql ?
> >
> > for information it is a version 4.1

>
> Nope; the backup/delete/restart/restore procedure is the only way.
>
> --
> Dan Nelson
> dnelson@allantgroup.com
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h18.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13988 seconds with 13 queries