Bacula-users

Re: [Bacula-users] Run out of disk space

2011-05-11 12:08:37
Subject: Re: [Bacula-users] Run out of disk space
From: "Duncan McQueen" <dmcqueen AT vomer DOT com>
To: "John Drescher" <drescherjm AT gmail DOT com>
Date: Wed, 11 May 2011 11:05:47 -0500
The second command gives me this:

Error updating Volume records: ERR=sql_update.c:443 Update failed: 
affected_rows=0 for UPDATE Media SET ActionOnPurge=0, 
Recycle=1,VolRetention=31536000,VolUseDuration=0,MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=0,RecyclePoolId=0
 WHERE PoolId=3


-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Wednesday, May 11, 2011 10:33 AM
To: Duncan McQueen
Cc: Bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Run out of disk space

> I set my retention periods too long and now have run out of disk space.  If
> I want to start over (after I have edited the conf files for a good
> retention period) and blow away the old volumes, what do I need to do?  Just
> delete the files or do I need to do something in the database?
>

You would need to delete each volume in the database. I would just
change the retention period on the pool and then use bconsole to apply
that to the existing volumes.

I think the commands are

update "Pool from resource"

then

update " all volumes in pool"

or similar.

John

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>