RE: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-25 Thread Shafi AHMED
Thanks dear everyone for sharing your views!

Let me try the workarounds and keep you posted.

 

Best Rgs,

Shafi AHMED

 

 

  _  

From: Suresh Kuna [mailto:sureshkumar...@gmail.com] 
Sent: Saturday, September 24, 2011 8:56 PM
To: Prabhat Kumar
Cc: Dan Nelson; Shafi AHMED; mysql@lists.mysql.com
Subject: Re: mysqldump: Got error: 1017: Can't find file:
'./ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

 

Hello Shafi, 

Adding to Prabhat alternatives, you can use --force to the mysqldump command
to ignore the errors and continue taking backup.

Regarding the error, we need to check whether the table is present or not
and the engine type specifically.

Thanks 
Suresh Kuna

On Sat, Sep 24, 2011 at 3:31 AM, Prabhat Kumar aim.prab...@gmail.com
wrote:

correct.  mysqldump by default has --lock-tables enabled, which means it
tries to lock all tables to be dumped before starting the dump. And doing
LOCK TABLES t1, t2, ... for really big number of tables will inevitably
exhaust all available file descriptors, as LOCK needs all tables to be
opened.

Workarounds: --skip-lock-tables will disable such a locking completely.
Alternatively, --lock-all-tables will make mysqldump to use FLUSH TABLES
WITH READ LOCK which locks all tables in all databases (without opening
them). In this case mysqldump will automatically disable --lock-tables
because it makes no sense when --lock-all-tables is used. or  try with add
--single_transaction to your mysqldump command


On Fri, Sep 23, 2011 at 9:49 AM, Dan Nelson dnel...@allantgroup.com wrote:

 In the last episode (Sep 23), Shafi AHMED said:
  I have a mysql database of 200G size and the backup fails due to the
 foll.
  Issue.
 
  mysqldump: Got error: 1017: Can't find file:
  './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES
 
  Can someone assist pls.?

 $ perror 24
 OS error code  24:  Too many open files

 You need to bump up the max files limit in your OS.  It may be defaulting
 to
 a small number like 1024.  If you can't change that limit, edit your
my.cnf
 and lower the table_open_cache number.  You'll lose performance though,
 since mysql will have to stop accessing some tables to open others.

 http://dev.mysql.com/doc/refman/5.5/en/not-enough-file-handles.html

 --
Dan Nelson
dnel...@allantgroup.com

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:

 http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com




--
Best Regards,

Prabhat Kumar
MySQL DBA

My Blog: http://adminlinux.blogspot.com
My LinkedIn: http://www.linkedin.com/in/profileprabhat




-- 
Thanks
Suresh Kuna
MySQL DBA




Get your world in your inbox!

Mail, widgets, documents, spreadsheets, organizer and much more with your 
Sifymail WIYI id!
Log on to http://www.sify.com

** DISCLAIMER **
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Technologies Limited and is intended for use only by the individual or 
entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail  notify us 
immediately at ad...@sifycorp.com


Re: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-24 Thread Suresh Kuna
Hello Shafi,

Adding to Prabhat alternatives, you can use --force to the mysqldump command
to ignore the errors and continue taking backup.

Regarding the error, we need to check whether the table is present or not
and the engine type specifically.

Thanks
Suresh Kuna

On Sat, Sep 24, 2011 at 3:31 AM, Prabhat Kumar aim.prab...@gmail.comwrote:

 correct.  mysqldump by default has --lock-tables enabled, which means it
 tries to lock all tables to be dumped before starting the dump. And doing
 LOCK TABLES t1, t2, ... for really big number of tables will inevitably
 exhaust all available file descriptors, as LOCK needs all tables to be
 opened.

 Workarounds: --skip-lock-tables will disable such a locking completely.
 Alternatively, --lock-all-tables will make mysqldump to use FLUSH TABLES
 WITH READ LOCK which locks all tables in all databases (without opening
 them). In this case mysqldump will automatically disable --lock-tables
 because it makes no sense when --lock-all-tables is used. or  try with add
 --single_transaction to your mysqldump command

 On Fri, Sep 23, 2011 at 9:49 AM, Dan Nelson dnel...@allantgroup.com
 wrote:

  In the last episode (Sep 23), Shafi AHMED said:
   I have a mysql database of 200G size and the backup fails due to the
  foll.
   Issue.
  
   mysqldump: Got error: 1017: Can't find file:
   './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES
  
   Can someone assist pls.?
 
  $ perror 24
  OS error code  24:  Too many open files
 
  You need to bump up the max files limit in your OS.  It may be defaulting
  to
  a small number like 1024.  If you can't change that limit, edit your
 my.cnf
  and lower the table_open_cache number.  You'll lose performance though,
  since mysql will have to stop accessing some tables to open others.
 
  http://dev.mysql.com/doc/refman/5.5/en/not-enough-file-handles.html
 
  --
 Dan Nelson
 dnel...@allantgroup.com
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
  http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com
 
 


 --
 Best Regards,

 Prabhat Kumar
 MySQL DBA

 My Blog: http://adminlinux.blogspot.com
 My LinkedIn: http://www.linkedin.com/in/profileprabhat




-- 
Thanks
Suresh Kuna
MySQL DBA


Re: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-23 Thread Johan De Meersman
Someone seems to have deleted that file, which contains the description of the 
corresponding table. Recreate the exact same table (EXACT, including keys, 
indices, datatypes, encoding, the lot) and copy that tables's .frm file to 
replace the lost one. Then pray to the elder gods and restart your mysqld to 
see if it works. 

- Original Message -

 From: Shafi AHMED shafi.ah...@sifycorp.com
 To: mysql@lists.mysql.com
 Sent: Friday, 23 September, 2011 1:42:26 PM
 Subject: mysqldump: Got error: 1017: Can't find file:
 './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK
 TABLES

 Folks

 I have a mysql database of 200G size and the backup fails due to the
 foll. Issue.

 mysqldump: Got error: 1017: Can't find file:
 './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK
 TABLES

 Can someone assist pls.?

 Best Rgs,
 Shafi AHMED

-- 
Bier met grenadyn 
Is als mosterd by den wyn 
Sy die't drinkt, is eene kwezel 
Hy die't drinkt, is ras een ezel 


Re: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-23 Thread Dan Nelson
In the last episode (Sep 23), Shafi AHMED said:
 I have a mysql database of 200G size and the backup fails due to the foll.
 Issue.
 
 mysqldump: Got error: 1017: Can't find file:
 './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES
 
 Can someone assist pls.?

$ perror 24
OS error code  24:  Too many open files

You need to bump up the max files limit in your OS.  It may be defaulting to
a small number like 1024.  If you can't change that limit, edit your my.cnf
and lower the table_open_cache number.  You'll lose performance though,
since mysql will have to stop accessing some tables to open others.

http://dev.mysql.com/doc/refman/5.5/en/not-enough-file-handles.html

-- 
Dan Nelson
dnel...@allantgroup.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Re: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-23 Thread Prabhat Kumar
correct.  mysqldump by default has --lock-tables enabled, which means it
tries to lock all tables to be dumped before starting the dump. And doing
LOCK TABLES t1, t2, ... for really big number of tables will inevitably
exhaust all available file descriptors, as LOCK needs all tables to be
opened.

Workarounds: --skip-lock-tables will disable such a locking completely.
Alternatively, --lock-all-tables will make mysqldump to use FLUSH TABLES
WITH READ LOCK which locks all tables in all databases (without opening
them). In this case mysqldump will automatically disable --lock-tables
because it makes no sense when --lock-all-tables is used. or  try with add
--single_transaction to your mysqldump command

On Fri, Sep 23, 2011 at 9:49 AM, Dan Nelson dnel...@allantgroup.com wrote:

 In the last episode (Sep 23), Shafi AHMED said:
  I have a mysql database of 200G size and the backup fails due to the
 foll.
  Issue.
 
  mysqldump: Got error: 1017: Can't find file:
  './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES
 
  Can someone assist pls.?

 $ perror 24
 OS error code  24:  Too many open files

 You need to bump up the max files limit in your OS.  It may be defaulting
 to
 a small number like 1024.  If you can't change that limit, edit your my.cnf
 and lower the table_open_cache number.  You'll lose performance though,
 since mysql will have to stop accessing some tables to open others.

 http://dev.mysql.com/doc/refman/5.5/en/not-enough-file-handles.html

 --
Dan Nelson
dnel...@allantgroup.com

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com




-- 
Best Regards,

Prabhat Kumar
MySQL DBA

My Blog: http://adminlinux.blogspot.com
My LinkedIn: http://www.linkedin.com/in/profileprabhat