here's the output of the debug level 100 and at the end of that, is the
output for "status all"
[EMAIL PROTECTED] bin]# ./bacula-dir -d100 -c ../etc/bacula-dir.conf
bacula-dir: dird.c:139 Debug level = 100
bacula-dir: mysql.c:86 db_open first time
bacula-dir: mysql.c:146 mysql_init done
bacula-dir: mysql.c:167 mysql_real_connect done
bacula-dir: mysql.c:169 db_user=bacula db_name=bacula db_password=
adcd1149-dir: jcr.c:116 read_last_jobs seek to 188
adcd1149-dir: jcr.c:123 Read num_items=0
[EMAIL PROTECTED] bin]# adcd1149-dir: bnet_server.c:83 Addresses
host[ipv4:0.0.0.0:9101]
[EMAIL PROTECTED] bin]# ls
bacula-dir* bacula-sd* bconsole* bextract* bregex* bsmtp*
btraceback* dbcheck* wx-console*
bacula-fd* bacula-tray-monitor* bcopy* bls* bscan* btape*
bwild* subsys/
[EMAIL PROTECTED] bin]# cd ../etc
[EMAIL PROTECTED] etc]# ls
bacula* bacula-sd.conf~ disk-changer*
grant_mysql_privileges* tray-monitor.conf
bacula-ctl-dir* bconsole* drop_bacula_database*
make_bacula_tables* update_bacula_tables*
bacula-ctl-fd* bconsole.conf drop_bacula_tables*
make_catalog_backup* update_mysql_tables*
bacula-ctl-sd* btraceback.dbx drop_mysql_database*
make_mysql_tables* wx-console.conf
bacula-dir.conf btraceback.gdb drop_mysql_tables*
mtx-changer*
bacula-dir.conf~ create_bacula_database* dvd-handler*
query.sql
bacula-fd.conf create_mysql_database* gconsole*
startmysql*
bacula-sd.conf delete_catalog_backup* grant_bacula_privileges*
stopmysql*
[EMAIL PROTECTED] etc]# ./bacula-ctl-fd start
Starting the Bacula File daemon
[EMAIL PROTECTED] etc]# ./bacula-ctl-sd start
Starting the Bacula Storage daemon
[EMAIL PROTECTED] etc]# adcd1149-dir: bnet.c:1141 who=client
host=my.ip.range.149 port=36131
adcd1149-dir: cram-md5.c:58 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
W71gR4+tP88Z45Mx06/BSA
adcd1149-dir: mysql.c:86 db_open first time
adcd1149-dir: mysql.c:146 mysql_init done
adcd1149-dir: mysql.c:167 mysql_real_connect done
adcd1149-dir: mysql.c:169 db_user=bacula db_name=bacula db_password=
adcd1149-dir: msgchan.c:84 bnet_connect to Storage daemon adcd1149:9103
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9103] All
host[ipv4:my.ip.range.149:9103]
adcd1149-dir: bnet.c:1141 who=Storage daemon host=adcd1149 port=9103
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
x9+7n4/1zw+z+Wshl9+5tC
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK G3+/i7/v2G4jF9Biu+MzaB
adcd1149-dir: ua_label.c:674 label FileStorage VolumeName=Backup00001
PoolName=Default MediaType=File Slot=0 drive=-1
adcd1149-dir: msgchan.c:84 bnet_connect to Storage daemon adcd1149:9103
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9103] All
host[ipv4:my.ip.range.149:9103]
adcd1149-dir: bnet.c:1141 who=Storage daemon host=adcd1149 port=9103
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
7GUL04/oh7+RrFId4/+vLD
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK 1+/+EFZAW+/gGQETM8/UWC
adcd1149-dir: ua_status.c:94 status:status storage
:
adcd1149-dir: msgchan.c:84 bnet_connect to Storage daemon adcd1149:9103
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9103] All
host[ipv4:my.ip.range.149:9103]
adcd1149-dir: bnet.c:1141 who=Storage daemon host=adcd1149 port=9103
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
5i+kSn+nt5It9T1eg7+scA
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK NllsD8tww++376+vy7pr4C
adcd1149-dir: ua_status.c:293 Connected to storage daemon
adcd1149-dir: job.c:111 Open database
adcd1149-dir: mysql.c:79 DB REopen 1 bacula
adcd1149-dir: job.c:124 DB opened
adcd1149-dir: job.c:148 Created job record JobId=1
Name=Client1.2006-09-13_16.11.38 Type=B Level=I
adcd1149-dir: job.c:675 Created Client adcd1149-fd record 1
adcd1149-dir: fd_cmds.c:185 Level=F last start time=0000-00-00 00:00:00
adcd1149-dir: backup.c:103 JobId=1 JobLevel=F
adcd1149-dir: msgchan.c:84 bnet_connect to Storage daemon adcd1149:9103
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9103] All
host[ipv4:my.ip.range.149:9103]
adcd1149-dir: bnet.c:1141 who=Storage daemon host=adcd1149 port=9103
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
2AMaBX+Ii7wHbHwD1W1Z8C
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK e8/nU8c9ix+PplJbQTBoWB
adcd1149-dir: msgchan.c:171 >stored: JobId=1
job=Client1.2006-09-13_16.11.38 job_name=Client1 client_name=adcd1149-fd
type=66 level=70 FileSet=FullSet NoAttr=0 SpoolAttr=0
FileSetMD5=p8+K3T/kKQ+ak2/Q2+/mAC SpoolData=0 WritePartAfterJob=0
PreferMountedVols=1
adcd1149-dir: msgchan.c:173 <stored: 3000 OK Job SDid=1
SDtime=1158178162 Authorization=BOPK-JGHL-FFKC-AGDN-EMOJ-MPHI-IGKC-BOLK
adcd1149-dir: msgchan.c:249 >stored: use device=FileStorage
adcd1149-dir: catreq.c:107 catreq CatReq Job=Client1.2006-09-13_16.11.38
FindMedia=1 pool_name=Default media_type=File
adcd1149-dir: next_vol.c:49 CatReq FindMedia: PoolId=1, MediaType=File
adcd1149-dir: sql_find.c:307 fnextvol=SELECT
MediaId,VolumeName,VolJobs,VolFiles,VolBlocks,VolBytes,VolMounts,VolErrors,VolWrites,MaxVolBytes,VolCapacityBytes,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,Recycle,Slot,FirstWritten,LastWritten,VolStatus,InChanger,VolParts,LabelType
FROM Media WHERE PoolId=1 AND MediaType='File' AND Enabled=1 AND
VolStatus='Append' ORDER BY LastWritten IS NULL,LastWritten
DESC,MediaId LIMIT 1
adcd1149-dir: next_vol.c:66 after find_next_vol index=1 ok=1 InChanger=0
Vstat=Append
adcd1149-dir: next_vol.c:146 VolJobs=0 FirstWritten=0
adcd1149-dir: catreq.c:128 find_media idx=1 ok=1 vol=Backup00001
adcd1149-dir: catreq.c:85 Vol Info for Client1.2006-09-13_16.11.38: 1000
OK VolName=Backup00001 VolJobs=0 VolFiles=0 VolBlocks=0 VolBytes=218
VolMounts=0 VolErrors=0 VolWrites=0 MaxVolBytes=0 VolCapacityBytes=0
VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0 InChanger=1
VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=0 VolParts=0 LabelType=0
adcd1149-dir: msgchan.c:255 <stored: 3000 OK use device device=FileStorage
adcd1149-dir: msgchan.c:290 Start SD msg_thread.
adcd1149-dir: msgchan.c:336 Start msg_thread loop
adcd1149-dir: msgchan.c:299 SD msg_thread started. use=2
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9102] All
host[ipv4:my.ip.range.149:9102]
adcd1149-dir: bnet.c:1141 who=File daemon host=adcd1149 port=9102
adcd1149-dir: fd_cmds.c:78 Opened connection with File daemon
adcd1149-dir: authenticate.c:173 Sent: Hello Director adcd1149-dir calling
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
C7UHm/wrtDVLyl+sm7x75B
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK cjcnu8UNF+4juQZRf7+x/C
adcd1149-dir: fd_cmds.c:99 >filed: JobId=1
Job=Client1.2006-09-13_16.11.38 SDid=1 SDtime=1158178162
Authorization=BOPK-JGHL-FFKC-AGDN-EMOJ-MPHI-IGKC-BOLK
adcd1149-dir: catreq.c:107 catreq CatReq Job=Client1.2006-09-13_16.11.38
FindMedia=1 pool_name=Default media_type=File
adcd1149-dir: next_vol.c:49 CatReq FindMedia: PoolId=1, MediaType=File
adcd1149-dir: sql_find.c:307 fnextvol=SELECT
MediaId,VolumeName,VolJobs,VolFiles,VolBlocks,VolBytes,VolMounts,VolErrors,VolWrites,MaxVolBytes,VolCapacityBytes,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,Recycle,Slot,FirstWritten,LastWritten,VolStatus,InChanger,VolParts,LabelType
FROM Media WHERE PoolId=1 AND MediaType='File' AND Enabled=1 AND
VolStatus='Append' ORDER BY LastWritten IS NULL,LastWritten
DESC,MediaId LIMIT 1
adcd1149-dir: next_vol.c:66 after find_next_vol index=1 ok=1 InChanger=0
Vstat=Append
adcd1149-dir: next_vol.c:146 VolJobs=0 FirstWritten=0
adcd1149-dir: catreq.c:128 find_media idx=1 ok=1 vol=Backup00001
adcd1149-dir: catreq.c:85 Vol Info for Client1.2006-09-13_16.11.38: 1000
OK VolName=Backup00001 VolJobs=0 VolFiles=0 VolBlocks=0 VolBytes=218
VolMounts=0 VolErrors=0 VolWrites=0 MaxVolBytes=0 VolCapacityBytes=0
VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0 InChanger=1
VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=0 VolParts=0 LabelType=0
adcd1149-dir: catreq.c:107 catreq CatReq Job=Client1.2006-09-13_16.11.38
UpdateMedia VolName=Backup00001 VolJobs=0 VolFiles=0 VolBlocks=0
VolBytes=218 VolMounts=1 VolErrors=0 VolWrites=1 MaxVolBytes=0
EndTime=1158178302 VolStatus=Append Slot=0 relabel=1 InChanger=1
VolReadTime=0 VolWriteTime=0 VolParts=0
adcd1149-dir: sql_update.c:306 update_media: FirstWritten=1158178301
adcd1149-dir: catreq.c:85 Vol Info for Client1.2006-09-13_16.11.38: 1000
OK VolName=Backup00001 VolJobs=0 VolFiles=0 VolBlocks=0 VolBytes=218
VolMounts=1 VolErrors=0 VolWrites=1 MaxVolBytes=0 VolCapacityBytes=0
VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0 InChanger=1
VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=0 VolParts=0 LabelType=0
adcd1149-dir: catreq.c:107 catreq CatReq Job=Client1.2006-09-13_16.11.38
CreateJobMedia FirstIndex=1 LastIndex=7044 StartFile=0 EndFile=0
StartBlock=218 EndBlock=195138927 Copy=0 Strip=0
adcd1149-dir: catreq.c:107 catreq CatReq Job=Client1.2006-09-13_16.11.38
UpdateMedia VolName=Backup00001 VolJobs=1 VolFiles=0 VolBlocks=3025
VolBytes=195138928 VolMounts=1 VolErrors=0 VolWrites=3026 MaxVolBytes=0
EndTime=1158178342 VolStatus=Append Slot=0 relabel=0 InChanger=1
VolReadTime=0 VolWriteTime=0 VolParts=0
adcd1149-dir: sql_update.c:306 update_media: FirstWritten=1158178301
adcd1149-dir: catreq.c:85 Vol Info for Client1.2006-09-13_16.11.38: 1000
OK VolName=Backup00001 VolJobs=1 VolFiles=0 VolBlocks=3025
VolBytes=195138928 VolMounts=1 VolErrors=0 VolWrites=3026 MaxVolBytes=0
VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0
InChanger=1 VolReadTime=0 VolWriteTime=0 EndFile=0 EndBlock=195138927
VolParts=0 LabelType=0
adcd1149-dir: backup.c:258 FDStatus=T
adcd1149-dir: msgchan.c:310 === End msg_thread. use=2
adcd1149-dir: backup.c:319 Enter backup_cleanup 84 T
adcd1149-dir: backup.c:481 Leave backup_cleanup()
adcd1149-dir: ua_prune.c:356 select sql=SELECT count(*) FROM DelCandidates
adcd1149-dir: ua_prune.c:228 select now=1158178342 period=2592000
sql=SELECT JobId from Job WHERE JobTDate<1155586342 AND ClientId=1 AND
PurgedFiles=0
adcd1149-dir: job.c:319 ======== End Job stat=T ==========
adcd1149-dir: ua_status.c:94 status:status storage
:
adcd1149-dir: msgchan.c:84 bnet_connect to Storage daemon adcd1149:9103
adcd1149-dir: bnet.c:779 Current host[ipv4:my.ip.range.149:9103] All
host[ipv4:my.ip.range.149:9103]
adcd1149-dir: bnet.c:1141 who=Storage daemon host=adcd1149 port=9103
adcd1149-dir: cram-md5.c:118 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:137 sending resp to challenge:
15/GJB+vO686rEoqE+wTWD
adcd1149-dir: cram-md5.c:65 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
adcd1149-dir: cram-md5.c:84 Authenticate OK lD/704+P05cYKy85A0sW+B
adcd1149-dir: ua_status.c:293 Connected to storage daemon
adcd1149-dir: job.c:111 Open database
adcd1149-dir: mysql.c:79 DB REopen 1 bacula
adcd1149-dir: job.c:124 DB opened
adcd1149-dir: job.c:148 Created job record JobId=2
Name=Migrate-Volumes.2006-09-13_16.13.34 Type=g Level=F
adcd1149-dir: job.c:675 Created Client adcd1149-fd record 1
adcd1149-dir: migrate.c:792 regex=Backup00001*
adcd1149-dir: migrate.c:803 query1=SELECT DISTINCT VolumeName FROM
Media,Pool WHERE VolStatus in ('Full','Used','Error') AND
Media.Enabled=1 AND Media.PoolId=Pool.PoolId AND Pool.Name='Default'
adcd1149-dir: migrate.c:347 Item=Backup00001
adcd1149-dir: migrate.c:819 Item=Backup00001
adcd1149-dir: migrate.c:840 Got Volume: Backup00001
adcd1149-dir: migrate.c:842 query2=SELECT DISTINCT
Job.JobId,Job.StartTime FROM Media,JobMedia,Job WHERE
Media.VolumeName='Backup00001' AND Media.MediaId=JobMedia.MediaId AND
JobMedia.JobId=Job.JobId ORDER by Job.StartTime
adcd1149-dir: migrate.c:314 count=0 Ids=80fcbe0
adcd1149-dir: migrate.c:854 Count=1 Jobids=1
adcd1149-dir: migrate.c:856 After delete item_chain
adcd1149-dir: migrate.c:674 Last get_next_jobid stat=1 JobId=1
adcd1149-dir: migrate.c:684 Previous jobid=1
adcd1149-dir: ua_status.c:94 status:status dir
:
here's the output for the status all
#status all
adcd1149-dir Version: 1.39.22 (08 Septermber 2006) i686-pc-linux-gnu
mandrake release
Daemon started 13-Sep-06 16:08, 1 Job run since started.
Heap: bytes=42,651 max_bytes=43,676 bufs=238 max_bufs=244
No Scheduled Jobs.
====
Running Jobs:
Console connected at 13-Sep-06 16:09
JobId Level Name Status
======================================================================
2 Full Migrate-Volumes.2006-09-13_16.13.34 is waiting on max
Storage jobs
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
====================================================================
1 Full 7,044 193.6 M OK 13-Sep-06 16:12 Client1
====
Connecting to Storage daemon File at adcd1149:9103
adcd1149-sd Version: 1.39.22 (08 Septermber 2006) i686-pc-linux-gnu
mandrake release
Daemon started 13-Sep-06 16:09, 1 Job run since started.
Heap: bytes=83,641 max_bytes=150,915 bufs=74 max_bufs=90
Running Jobs:
No Jobs running.
====
Jobs waiting to reserve a drive:
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
===================================================================
1 Full 7,044 194.7 M OK 13-Sep-06 16:12 Client1
====
Device status:
Device "FileStorage" (/bacvols/volumes) is not open.
Device "Drive-1" (/dev/nst0) is mounted with Volume="Tape00001"
Pool="*unknown*"
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0
====
In Use Volume status:
Tape00001 on device "Drive-1" (/dev/nst0)
====
Connecting to Client adcd1149-fd at adcd1149:9102
adcd1149-fd Version: 1.39.22 (08 Septermber 2006) i686-pc-linux-gnu
mandrake release
Daemon started 13-Sep-06 16:09, 1 Job run since started.
Heap: bytes=78,613 max_bytes=163,825 bufs=60 max_bufs=128
Sizeof: off_t=8 size_t=4 debug=0 trace=0
Running Jobs:
Director connected at: 13-Sep-06 16:15
No Jobs running.
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
======================================================================
1 Full 7,044 193.6 M OK 13-Sep-06 16:12 Client1
====
#
> ok
> I've added the Max Concurrent Jobs = 20 into the director config file.
> and got the same result. when I ran the migrate job I got this
>
> OK to run? (yes/mod/no): Unexpected question has been received.
> yes
> Job started. JobId=4
> 13-Sep 15:47 adcd1149-dir: The following 2 JobIds will be migrated: 1,2
> 13-Sep 15:47 adcd1149-dir: The following 1 JobIds will be migrated: 1
> 13-Sep 15:47 adcd1149-dir: Migration using JobId=1
> Job=Client1.2006-09-13_15.43.35
> 13-Sep 15:47 adcd1149-dir: Bootstrap records written to
> /opt/bacula/working/adcd1149-dir.restore.1.bsr
> 13-Sep 15:47 adcd1149-dir:
> 13-Sep 15:47 adcd1149-dir: The job will require the following
> Volume(s) Storage(s) SD Device(s)
>
===========================================================================
> 13-Sep 15:47 adcd1149-dir:
> 13-Sep 15:47 adcd1149-dir: Backup00001 File
> FileStorage
> 13-Sep 15:47 adcd1149-dir:
> 13-Sep 15:47 adcd1149-dir: Job started. JobId=5
> 13-Sep 15:47 adcd1149-dir: Migration JobId 5 started.
> 13-Sep 15:47 adcd1149-dir: Migration using JobId=2
> Job=BackupCatalog.2006-09-13_15.44.41
> 13-Sep 15:47 adcd1149-dir: Bootstrap records written to
> /opt/bacula/working/adcd1149-dir.restore.2.bsr
> 13-Sep 15:47 adcd1149-dir:
> 13-Sep 15:47 adcd1149-dir: The job will require the following
> Volume(s) Storage(s) SD Device(s)
>
===========================================================================
> 13-Sep 15:47 adcd1149-dir:
> 13-Sep 15:47 adcd1149-dir: Backup00001 File
> FileStorage
> 13-Sep 15:47 adcd1149-dir:
>
>
>
> for reasons of full disclosure, jobid#3 was a migrate job that returned
> 0 jobid's to migrate,(I forgot to mark the volume as used) but it still
> submitted a job that was waiting on max volume jobs.... I canceled it,
> and restarted the 3 daemons.
>
>
> I'll bump up the debug level and start over...
>
> here is the result of status dir
> _____________________________________________________
> #status dir
> adcd1149-dir Version: 1.39.22 (08 Septermber 2006) i686-pc-linux-gnu
> mandrake release
> Daemon started 13-Sep-06 15:46, 0 Jobs run since started.
> No Scheduled Jobs.
> ====
>
> Running Jobs:
> Console connected at 13-Sep-06 15:46
> JobId Level Name Status
> ======================================================================
> 4 Full Migrate-Volumes.2006-09-13_15.47.39 is waiting on max
> Storage jobs
> 5 Full Migrate-Volumes.2006-09-13_15.47.40 is waiting on max
> Storage jobs
> ====
>
> Terminated Jobs:
> JobId Level Files Bytes Status Finished Name
> ====================================================================
> 1 Full 7,044 193.6 M OK 13-Sep-06 15:44 Client1
> 2 Full 1 846.8 K OK 13-Sep-06 15:44 BackupCatalog
>
> ====
> #
>
>
>
> > Hello,
> >
> > Congratulations on being the first person to actually present a
Migration
> > problem and for providing lots of nice information ! :-)
> >
> > On Wednesday 13 September 2006 20:13, Your Name wrote:
> > > Greetings,
> > >
> > > I have a simple setup, I've included my conf files below. here's
the
> > > situation.
> > >
> > > I have one client, (the bacula server) one tape drive (exabyte vx-2
> > > external drive, no changer) one tape volume, one "File" volume.
> > >
> > > 2 backup jobs, one of /home, and one of the catalog.
> > >
> > > I can pass all the hardware tests etc. here's my process.
> > >
> > > drop the database, reload a clean database. delete the backup file
> > > volumes from the directory. fresh. start the 3 bacula daemons using
> > > the conf files below.
> > >
> > > label a volume for the File pool, label a tape for the tape pool.
> > > everything is good.
> > >
> > > run the fd backup, writes to the file. good
> > > run the catalog backup, it writes to file as well.
> > >
> > > I then update the volume to "used" so it can be eligable for
migration.
> > >
> > > I run the migrate-volume job, and I get:
> > > ###############################################
> > > the following 1 jobIDs will be migrated :1
> > > Migration using JobID=1 job=client1.2006-09-13_11.06.14
> > > Bootstrap records written to /opt/bacula/working/adcd1149-
> > > dir.restore.1.bsr
> > >
> > > the job will require the following
> > > volume Backup00001| Storage(s) File| SD Devices FileStorage
> > > #################################################
> > >
> > > and the job is then waiting for max storage jobs.
> > >
> > > output for status storage=file=
> > >
> > > #################################################
> > >
> > > Running jobs: No Jobs Running
> > > ====
> > > Jobs waiting to reserve a drive:
> > > ====
> > > Terminated Jobs:
> > > jobID level files bytes status finnished name
> > > 1 full 7059 198.9M OK 13-sep-06 11:06 client1
> > > 2 full 1 848.7k OK 13-sep-06 11:08 backupcatatlog
> > > ====
> > > device status:
> > > Device "FileStorage" (/bacvols/volumes) is not open
> > > Device "Drive-1" (/dev/nst0) os mounted with Volume="Tape00001"
> > > Pool="Unknown"
> > > total bytes Read=0 blocks read =0 bytes/block=0
> > > ===
> > > In use volume status
> > > Tape00001 on device "Drive-1" (/dev/nst0)
> > > ====
> > >
> > > so I'm kind of stuck
> > >
> > > I've been fighting it for a day and a half now, and I'm not sure what
> > > I'm doing wrong, its probably something obvious, but for some reason,
> > > I'm blind to it..
> >
> > Why don't you try to set Maximum Concurrent Jobs = 20 in your
> bacula-dir.conf?
> > I suspect that the Director is having problems running jobs.
> >
> > If the problem persists, you can do two additional things:
> > 1. Show us the output of "status dir" so we can see what the
Director has
> > running.
> >
> > 2. Try running the director with debug level 100 (i.e. -d100) on the
> command
> > line. That should show us if anything is getting hung up in the
> reservation
> > system.
> >
> > Regards,
> >
> > Kern
> >
> >
> > >
> > > below are my conf files. if there is more information you would
like,
> > > please let me know, and I'll provide it
> > >
> > > scroll down if you dare...
> > > #
> > > # For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake release
> > > #
> > > # You might also want to change the default email address
> > > # from root to your address. See the "mail" and "operator"
> > > # directives in the Messages resource.
> > > #
> > >
> > > Director { # define myself
> > > Name = adcd1149-dir
> > > DIRport = 9101 # where we listen for UA connections
> > > QueryFile = "/opt/bacula/etc/query.sql"
> > > WorkingDirectory = "/opt/bacula/working"
> > > PidDirectory = "/opt/bacula/working"
> > > Maximum Concurrent Jobs = 1
> > > Password = "directorpassword" # Console password
> > > Messages = Daemon
> > > }
> > >
> > > JobDefs {
> > > Name = "DefaultJob"
> > > Type = Backup
> > > Level = Incremental
> > > Client = adcd1149-fd
> > > FileSet = "Full Set"
> > > # Schedule = "WeeklyCycle"
> > > Storage = File
> > > Messages = Standard
> > > Pool = Default
> > > Priority = 10
> > > }
> > >
> > >
> > > #
> > > # Define the main nightly save backup job
> > > # By default, this job will back up to disk in /tmp
> > > Job {
> > > Name = "Client1"
> > > JobDefs = "DefaultJob"
> > > # Write Bootstrap = "/opt/bacula/working/Client1.bsr"
> > > }
> > >
> > > # Backup the catalog database (after the nightly save)
> > > Job {
> > > Name = "BackupCatalog"
> > > JobDefs = "DefaultJob"
> > > Level = Full
> > > FileSet="Catalog"
> > > # Schedule = "WeeklyCycleAfterBackup"
> > > # This creates an ASCII copy of the catalog
> > > RunBeforeJob = "/opt/bacula/etc/make_catalog_backup bacula bacula"
> > > # This deletes the copy of the catalog
> > > RunAfterJob = "/opt/bacula/etc/delete_catalog_backup"
> > > # Write Bootstrap = "/opt/bacula/working/BackupCatalog.bsr"
> > > Priority = 11 # run after main backup
> > > }
> > >
> > > Job {
> > > Name = "Migrate-Volumes"
> > > Type = Migrate
> > > Level = Full
> > > Client = adcd1149-fd
> > > FileSet = "Full Set"
> > > Messages = Standard
> > > Storage = Tape
> > > Pool = Default
> > > Maximum Concurrent Jobs = 4
> > > Selection Type = Volume
> > > Selection Pattern = "Backup00001*"
> > > }
> > >
> > >
> > > #
> > > # Standard Restore template, to be changed by Console program
> > > # Only one such job is needed for all Jobs/Clients/Storage ...
> > > #
> > > Job {
> > > Name = "RestoreFiles"
> > > Type = Restore
> > > Client=adcd1149-fd
> > > FileSet="Full Set"
> > > Storage = File
> > > Pool = Default
> > > Messages = Standard
> > > Where = /tmp/bacula-restores
> > > }
> > >
> > >
> > > # List of files to be backed up
> > > FileSet {
> > > Name = "Full Set"
> > > Include {
> > > Options {
> > > signature = MD5
> > > }
> > >
> > > File = /home
> > > File = /export
> > > File = /export/home
> > > File = "c:/documents and settings/dussaulta/desktop"
> > > }
> > >
> > > #
> > > # If you backup the root directory, the following two excluded
> > > # files can be useful
> > > #
> > > Exclude {
> > > File = /proc
> > > File = /tmp
> > > File = /.journal
> > > File = /.fsck
> > > }
> > > }
> > >
> > > # This is the backup of the catalog
> > > FileSet {
> > > Name = "Catalog"
> > > Include {
> > > Options {
> > > signature = MD5
> > > }
> > > File = /opt/bacula/working/bacula.sql
> > > }
> > > }
> > >
> > > # Client (File Services) to backup
> > > Client {
> > > Name = adcd1149-fd
> > > Address = adcd1149
> > > FDPort = 9102
> > > Catalog = MyCatalog
> > > Password = "fdpassword" # password for FileDaemon
> > > File Retention = 30 days # 30 days
> > > Job Retention = 6 months # six months
> > > AutoPrune = yes # Prune expired Jobs/Files
> > > }
> > >
> > > # Definition of file storage device
> > > Storage {
> > > Name = File
> > > # Do not use "localhost" here
> > > Address = adcd1149 # N.B. Use a fully qualified name
> > > here
> > > SDPort = 9103
> > > Password = "sdpassword"
> > > Device = FileStorage
> > > Media Type = File
> > > }
> > > Storage {
> > > Name = Tape
> > > #Do not use "localhost" here
> > > Address = adcd1149 # N.B. Use a fully qualified name
> > > here
> > > SDPort = 9103
> > > Password = "sdpassword" # password for Storage daemon
> > > Device = Drive-1 # must be same as Device in
> > > Storage daemon
> > > Media Type = "VXA-2" # must be same as
MediaType in
> > > Storage daemon
> > > # Autochanger = yes # enable for autochanger device
> > > }
> > >
> > > # Generic catalog service
> > > Catalog {
> > > Name = MyCatalog
> > > dbname = bacula; user = bacula; password = ""
> > > }
> > >
> > > #
> > > mailcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %
> > > r\" -s \"Bacula: %t %e of %c %l\" %r"
> > > operatorcommand = "/opt/bacula/bin/bsmtp -h localhost -f
\"\(Bacula\)
> > > %r\" -s \"Bacula: Intervention needed for %j\" %r"
> > > mail = [EMAIL PROTECTED] = all, !skipped
> > > operator = [EMAIL PROTECTED] = mount
> > > console = all, !skipped, !saved
> > > #
> > > # WARNING! the following will create a file that you must cycle from
> > > # time to time as it will grow indefinitely. However, it will
> > > # also keep all your messages if they scroll off the console.
> > > #
> > > append = "/opt/bacula/working/log" = all, !skipped
> > > }
> > >
> > > # Message delivery for daemon messages (no job).
> > > Messages {
> > > Name = Daemon
> > > mailcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %
> > > r\" -s \"Bacula daemon message\" %r"
> > > mail = [EMAIL PROTECTED] = all, !skipped
> > > console = all, !skipped, !saved
> > > append = "/opt/bacula/working/log" = all, !skipped
> > > }
> > >
> > > # Default pool definition
> > > Pool {
> > > Name = Default
> > > Pool Type = Backup
> > > Next Pool = Tape
> > > Recycle = yes # Bacula can automatically
> > > recycle Volumes
> > > AutoPrune = yes # Prune expired volumes
> > > Volume Retention = 365 days # one year
> > > }
> > >
> > > Pool {
> > > Name = Tape
> > > Pool Type = Backup
> > > Recycle = no # Bacula can automatically
recycle
> > > Volumes
> > > AutoPrune = no # Prune expired volumes
> > > Volume Retention = 1095 days # Three year
> > > }
> > >
> > > #
> > > # Restricted console used by tray-monitor to get the status of the
> > > director
> > > #
> > > Console {
> > > Name = adcd1149-mon
> > > Password = "MLhvSQMlt97xrDgR6Z6eRjxcTEWnoNWJtKssUAW1B79/"
> > > CommandACL = status, .status
> > > }
> > > ======================================================================
> > > #
> > > # Default Bacula Storage Daemon Configuration file
> > > #
> > > # For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake release
> > > #
> > >
> > > Storage { # definition of myself
> > > Name = adcd1149-sd
> > > SDPort = 9103 # Director's port
> > > WorkingDirectory = "/opt/bacula/working"
> > > Pid Directory = "/opt/bacula/working"
> > > Maximum Concurrent Jobs = 20
> > > }
> > >
> > > #
> > > # List Directors who are permitted to contact Storage daemon
> > > #
> > > Director {
> > > Name = adcd1149-dir
> > > Password = "sdpassword"
> > > }
> > >
> > > #
> > > # Restricted Director, used by tray-monitor to get the
> > > # status of the storage daemon
> > > #
> > > Director {
> > > Name = adcd1149-mon
> > > Password = "mon password"
> > > Monitor = yes
> > > }
> > >
> > > #
> > > # Devices supported by this Storage daemon
> > > # To connect, the Director's bacula-dir.conf must have the
> > > # same Name and MediaType.
> > > #
> > >
> > > Device {
> > > Name = FileStorage
> > > Media Type = File
> > > Archive Device = /bacvols/volumes
> > > LabelMedia = yes; # lets Bacula label unlabeled
> > > media
> > > Random Access = Yes;
> > > AutomaticMount = yes; # when device opened, read it
> > > RemovableMedia = no;
> > > AlwaysOpen = no;
> > > }
> > >
> > >
> > > Device {
> > > Name = Drive-1 #
> > > Drive Index = 0
> > > Media Type = "VXA-2"
> > > Archive Device = /dev/nst0
> > > AutomaticMount = yes; # when device opened, read it
> > > AlwaysOpen = yes;
> > > LabelMedia = yes;
> > > RemovableMedia = yes;
> > > RandomAccess = no;
> > > # AutoChanger = yes
> > > # # Enable the Alert command only if you have the mtx package loaded
> > > # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> > > }
> > >
> > > #
> > > # Send all messages to the Director,
> > > # mount messages also are sent to the email address
> > > #
> > > Messages {
> > > Name = Standard
> > > director = adcd1149-dir = all
> > > }
> > > ===================================================================
> > > #
> > > # Default Bacula File Daemon Configuration file
> > > #
> > > # For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake release
> > > #
> > > # There is not much to change here except perhaps the
> > > # File daemon Name to
> > > #
> > >
> > > #
> > > # List Directors who are permitted to contact this File daemon
> > > #
> > > Director {
> > > Name = adcd1149-dir
> > > Password = "fdpassword"
> > > }
> > >
> > > #
> > > # Restricted Director, used by tray-monitor to get the
> > > # status of the file daemon
> > > #
> > > Director {
> > > Name = adcd1149-mon
> > > Password = "mon-password"
> > > Monitor = yes
> > > }
> > >
> > > #
> > > # "Global" File daemon configuration specifications
> > > #
> > > FileDaemon { # this is me
> > > Name = adcd1149-fd
> > > FDport = 9102 # where we listen for the director
> > > WorkingDirectory = /opt/bacula/working
> > > Pid Directory = /opt/bacula/working
> > > Maximum Concurrent Jobs = 20
> > > }
> > >
> > > # Send all messages except skipped files back to Director
> > > Messages {
> > > Name = Standard
> > > director = adcd1149-dir = all, !skipped, !restored
> > > }
> > >
> > >
> > >
> > > --
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your
job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Bacula-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > >
> >
> >
>
> --
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users