Bacula-users

Re: [Bacula-users] smartall.c:145 Out of memory

2012-02-15 14:23:02
Subject: Re: [Bacula-users] smartall.c:145 Out of memory
From: Gino Lisignoli <gino.lisignoli AT opus.co DOT nz>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 16 Feb 2012 08:20:24 +1300
On 09/02/12 10:04, Gino Lisignoli wrote:
On 09/02/12 09:57, Joe Nyland wrote:

On 8 Feb 2012, at 20:18, Gino Lisignoli wrote:

Hello!

I seem to be having an issue restoring backups from one of my servers. Whenever I try to do a restore from it bacula-dir crashes and returns me to the prompt

[root@server:/root] bconsole
Connecting to Director localhost:9101
1000 OK: server-dir Version: 5.0.3 (04 August 2010)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: LocalCatalog
Using Catalog "LocalCatalog"

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
     1: List last 20 Jobs run
     2: List Jobs where a given File is saved
     3: Enter list of comma separated JobIds to select
     4: Enter SQL list command
     5: Select the most recent backup for a client
     6: Select backup for a client before a specified time
     7: Enter a list of files to restore
     8: Enter a list of files to restore before a specified time
     9: Find the JobIds of the most recent backup for a client
    10: Find the JobIds for a backup for a client before a specified time
    11: Enter a list of directories to restore for found JobIds
    12: Select full restore to a specified Job date
    13: Cancel
Select item:  (1-13): 6
The restored files will the most current backup
BEFORE the date you specify below.

Enter date as YYYY-MM-DD HH:MM:SS :2012-02-06 12:00:00
Automatically selected Client: server
The defined FileSet resources are:
     1: server
     2: server-open
Select FileSet resource (1-2): 1
+-------+-------+-----------+-------------------+---------------------+------------+
| jobid | level | jobfiles  | jobbytes          | starttime           | volumename |
+-------+-------+-----------+-------------------+---------------------+------------+
|   488 | F     | 8,989,782 | 2,768,148,878,795 | 2012-02-04 17:01:56 | 000045L5   |
|   488 | F     | 8,989,782 | 2,768,148,878,795 | 2012-02-04 17:01:56 | 000065L5   |
+-------+-------+-----------+-------------------+---------------------+------------+
You have selected the following JobId: 488

Building directory tree for JobId(s) 488 ...  +++++++++++++++++++++++++++++++++++++++[root@server:/root]

From the log file all I can find is:

09-Feb 09:01 chsv01-dir: ABORTING due to ERROR in smartall.c:145 Out of memory


Nothing shows up in kern.log, syslog or messages.

uname -a: Linux chsv01 2.6.31.9 #1 SMP Tue Mar 9 15:50:13 NZDT 2010 i686 GNU/Linux


32Bit Linux, On average 10GB of free ram. I have noticed that the bacula-dir process does jump to around 2.6Gb of memory usage after it finishes fetching from the postgres database. Though I don't think it's hitting the 32bit memory limit as I should have seen something in kern.log or syslog right?

Any ideas?









------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

I know this doesn't help the OP solve their problem, but I too have seen this problem, just the other day, when trying to restore a file (only a ~150mb file). Only in my case I was using using bextract, not bconsole. I'm using 5.0.1 though... (stuck to packages from Ubuntu repositories :-( ) The server is running Ubuntu server 10.4.3, x86_64 with 1GB RAM (tried assigning 2GB RAM to the machine too, but still the same issue).

I received the error stated above, then I got a segfault reported and returned to shell.

I would be interested to see if anyone has any input on what could be causing this error, as I wasn't able to get to the bottom of it. In the end I was able to restore from the volume by using bscan to repopulate the catalog with the volume contents, but I'd like to know how to deal with the problem, if I ever had to fall back onto bextract!

Thanks,

Joe
Hmmm Strange. But thanks for the tip! I'll report back on the results.



-- 
Gino Lisignoli
System Administrator
Opus International Consultants Ltd
Gino.Lisignoli AT opus.co DOT nz
Tel +64 4 471 7209, Mobile +64 21 982 112 Ext 8209
http://www.opus.co.nz
Level 9 Majestic Centre, 100 Willis Street, PO Box 12343, Wellington, New Zealand


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d


_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Quick update:

I haven't located the source of the issues exactly, but I finally broke down and did a dbcheck on the database (after making some indexes). That seemed to have solved the problem.

-- 
Gino Lisignoli
System Administrator
Opus International Consultants Ltd
Gino.Lisignoli AT opus.co DOT nz
Tel +64 4 471 7209, Mobile +64 21 982 112 Ext 8209
http://www.opus.co.nz
Level 9 Majestic Centre, 100 Willis Street, PO Box 12343, Wellington, New Zealand
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users