Bacula-users

Re: [Bacula-users] "File exists" problem

2008-05-07 04:47:39
Subject: Re: [Bacula-users] "File exists" problem
From: t_mo_info <t_mo_info AT o2 DOT pl>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Wed, 07 May 2008 10:47:29 +0200


Dnia 6 maja 2008 14:21 "John Drescher" <drescherjm AT gmail DOT com> napisał(a):

> On Tue, May 6, 2008 at 7:27 AM, t_mo_info  wrote:
> > I'm using bacula to do backups of several clients and store them in 
> > individual directories on a hard disk. The volumes are labeled 
> > automatically. All clients are configured the same way but in one case 
> > (probably after manual removal of some files) bacula is sending me a 
> > message like this:
> >
> >  01-May 01:08 file-server-dir: CVSBackup.2008-05-01_01.00.01 Warning: 
> > Wanted to create Volume "CVS0006", but it already exists. Trying again.
> >  01-May 01:08 file-server-dir: CVSBackup.2008-05-01_01.00.01 Warning: 
> > Wanted to create Volume "CVS0007", but it already exists. Trying again.
> >
> >  and so on until
> >
> >  01-May 01:08 file-server-dir: CVSBackup.2008-05-01_01.00.01 Error: Too 
> > many failures. Giving up creating Volume name.
> >  01-May 01:08 file-server-sd: Job CVSBackup.2008-05-01_01.00.01 waiting. 
> > Cannot find any appendable volumes.
> >  Please use the "label"  command to create a new Volume for:
> >     Storage:      "Directory_cvs" (/mnt/filestorage/cvs)
> >     Media type:   File_cvs
> >     Pool:         CVS
> >
> >  Manual labeling doesn't solve the problem.
> >  The volumes (files) bacula wants to create don't really exist. The only 
> > file in that directory is CVS0002.
> >
> >  Here are configs for this client:
> >
> >  in bacula-dir.conf:
> >
> >  Job {
> >   Name = "CVSBackup"
> >   Type = Backup
> >   Client = CVS-fd
> >   FileSet = "CVS set"
> >   Schedule = "MonthlyCycle"
> >   Storage = FileStorage_cvs
> >   Messages = Standard
> >   Pool = CVS
> >  }
> >
> >  Client {
> >   Name = CVS-fd
> >   Address = xxx.xxx.xxx.xxx
> >   FDPort = 9102
> >   Catalog = MyCatalog
> >   Password = "xxxxxxxxxx"
> >   File Retention = 60d
> >   Job Retention = 60d
> >   AutoPrune = yes
> >  }
> >
> >  Storage {
> >   Name = "FileStorage_cvs"
> >   Address = file-server
> >   SDPort = 9103
> >   Password = "xxxxxxxxxx"
> >   Device = Directory_cvs
> >   Media Type = File_cvs
> >  }
> >
> >  Pool {
> >   Name = CVS
> >   Pool Type = Backup
> >   Recycle = yes
> >   AutoPrune = yes
> >   Volume Retention = 60d
> >   Maximum Volume Bytes = 5g
> >   Accept Any Volume = yes
> >   LabelFormat = "CVS"
> >  }
> >
> >
> >
> >  and bacula-sd.conf:
> >  Device {
> >   Name = Directory_cvs
> >   Media Type = File_cvs
> >   Archive Device = /mnt/filestorage/cvs
> >   LabelMedia = yes;                   # lets Bacula label unlabelled media
> >   Random Access = Yes;
> >   AutomaticMount = yes;               # when device opened, read it
> >   RemovableMedia = no;
> >   AlwaysOpen = no;
> >  }
> >
> >  Any ideas what's going on here?
> >
> Can you give the output of list media and what files are actually in
> the storage folder?
> 
> John

Here it is:
# ls -la /mnt/filestorage/cvs
total 16
drwxr-xr-x  2 bacula root 4096 May  6 13:14 .
drwxr-xr-x 13 bacula root 4096 May  5 16:04 ..
-rw-r-----  1 bacula root  208 Apr 25 13:32 CVS0002
-rw-r-----  1 root   root  208 May  6 13:14 CVS0003

The second file was labeled manually (and hence created by bacula).

Tomasz
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>