Fwd: Re: [Engine-devel] No disk space in gerrit server?

Karsten 'quaid' Wade kwade at redhat.com
Mon Sep 10 14:31:58 UTC 2012


On 09/08/2012 01:32 PM, Itamar Heim wrote:
> Hi Karsten,
> 
> any chance you can fix your backup script with this cleanup?

The script on linode01.ovirt.org has been running a clean-up script
since (it appears) March. But I I forgot that the backup original starts
on gerrit.ovirt.org by making the tarballs locally before rsyncing, and
yes, those directories were full of cruft.

I added lines to the two backup scripts to first clean out anything
older than 7 days:

# Cleanup any backups older than a week
find $BACKUPDIR -type f -mtime +7 |grep -v ^\.$| xargs rm -rf

That is a slightly different command, but it's the one used on linode01
and I think mburns suggested it previously, as well. :)

I tested the command, which cleaned up both directories (40+ GB
returned). We should check tomorrow to be sure the version in the
cronjob worked as expected.

- Karsten

> thanks,
>   Itamar
> 
> 
> -------- Original Message --------
> Subject: Re: [Engine-devel] No disk space in gerrit server?
> Date: Fri, 07 Sep 2012 12:38:33 -0400
> From: Mike Burns <mburns at redhat.com>
> To: Itamar Heim <iheim at redhat.com>
> CC: Selvasundaram <sesubram at redhat.com>, infra <infra at ovirt.org>
> 
> On Fri, 2012-09-07 at 19:29 +0300, Itamar Heim wrote:
>> On 09/07/2012 06:03 PM, Selvasundaram wrote:
>> > The following error seems to be no disk space in gerrit server.
>> >
>> > Counting objects: 62, done.
>> > Delta compression using up to 4 threads.
>> > Compressing objects: 100% (23/23), done.
>> > Writing objects: 100% (38/38), 9.28 KiB, done.
>> > Total 38 (delta 9), reused 0 (delta 0)
>> > error: unpack failed: error No space left on device
>> > fatal: Unpack error, check server log
>> > To gerrit.ovirt.org:ovirt-engine
>> >   ! [remote rejected] HEAD -> refs/for/master (n/a (unpacker error))
>> > error: failed to push some refs to 'gerrit.ovirt.org:ovirt-engine'
>> >
>> >
>> > --
>> > Regards
>> > Selvasundaram
>> > _______________________________________________
>> > Engine-devel mailing list
>> > Engine-devel at ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/engine-devel
>>
>> fixed.
>> moving to infra
>> anyone can take a stab at the backup process to do some cycling of this
>> folder /home/gerrit2/backups/gerrit2-home?
> 
> I've used something like this before:
> 
> find /path/to/backup/directory -name 'backup_prefix*' -a -mtime +7 -exec
> rm {} \;
> 
> This will wipe all backups older than 7 days.
> 
> Mike
> 
>> _______________________________________________
>> Infra mailing list
>> Infra at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/infra
> 
> 
> 
> 


-- 
Karsten 'quaid' Wade, Sr. Analyst - Community Growth
http://TheOpenSourceWay.org  .^\  http://community.redhat.com
@quaid (identi.ca/twitter/IRC)  \v'  gpg: AD0E0C41

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20120910/77c382f4/attachment.sig>


More information about the Infra mailing list