KB Logo

TOLIS Group Knowledge Base

Browse KB by category:
Go to KB #:
Glossary
Email   Bookmark



Getting "Errno = 24, Too many open files" while performing a restore operation

Views: 14239
Votes: 0
Posted: 14 May, 2008

Getting "Errno = 24, Too many open files" while restoring

Error Message Seen:

If during a BRU restore operation you get the error message that says

can't open: errno = 24, Too many open files

Cause:

Operating Systems (OSs) have a predefined limit that is set by the developer for that OS.  Most of the time, the limit is approximately 1,000 files.  After all, how often do you open 1,000 files simultaneously? The error message is occurring because this limit has been reached.

After BRU restores the files, indexing services (such as Spotlight on Mac OS X and Beagle on Linux) see the new files and perform an index on those newly restored files. During restore operations that included tens of thousands of files, the indexing process is trying to keep up with the speed of BRU's restore process, however, it is unable to do so. This causes the indexing service to have too many files open at one time and thus prevents BRU from properly completing the restore process.

Resolution:

Method One:

The simplest thing to do to fix this problem is to simply disable your indexing service for the duration of the restore process or in the event of restoring to a separate drive, simply turning off the indexing service for that drive.

Disable Spotlight:


$ sudo mdutil -i off /Volumes/DriveName
 

You will need to replace the "DriveName" with the actual name of the drive in which you are performing the restore operation.

Enable Spotlight:


$ sudo mdutil -i on /Volumes/DriveName
 

Again, you will need to replace the "DriveName" with the actual name of the drive on which you originally disabled Spotlight. Do this after the restore is complete.

Disable Beagle:

To disable Beagle, just modify the crontab entry or move it from /etc/cron.daily for the duration of the restore operation.

Enable Beagle:

To enable Beagle, after it has been disabled, simply revert the crontab entry to it's original value or move it back into /etc/cron.daily after the restore operation is complete.

Method Two:

Alternatively, you can tell the Linux operating system to allow a higher number of open files at once. Do do this, just perform the following steps.

  1. Login as root to the system you are restoring the files to.
  2. Stop the BRU Agent:

  3. # /usr/local/bru-server/agent --kill
     

  4. Increase the max number of open files:

  5. # ulimit -n 20480
     

  6. Start the BRU Agent:

  7. # /usr/local/bru-server/agent
     

If you are running Ubuntu Linux or if you have not enabled the Root account on Mac OS X , you will need to assign a password to the Root user before you can login as Root. To assign a password for Root, run:


$ sudo passwd root
 

If after making these changes you are still running into the error, try setting a higher limit in step 3 above or completely disabling the indexing service all together if you only stopped it for a drive.

Others in this Category
document BRU Messages - Understanding BRU Error Codes and the causes of BRU messages
document Correcting "Error: (0x05:0x3B0D) Medium destination element full" error messages
document brufilter: [E145] Streaming Checksum Error at Block...



RSS
Powered by KnowledgebasePublisher
Page Load Time: 0.0277 seconds / 27.7 milliseconds.
Page File Size: 21223 bytes.