Bacula-users

[Bacula-users] Copy Job and labeling new tape - bug?

2009-02-10 16:13:06
Subject: [Bacula-users] Copy Job and labeling new tape - bug?
From: Yuri Timofeev <tim4dev AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 10 Feb 2009 23:10:47 +0200
Hi.

The test was conducted on a clean, empty database. And use an empty tape.

Run the job.
Job Type = Copy , from disk to tape (without autochangers).
The label is recorded on new clean tape. But in the database record is
not happening.

Running with option -d100 see below :



10-Фев 22:44 main.dir JobId 4: Using Device "devTapeStorage"
10-Фев 22:44 Storage1 JobId 4: Ready to read from volume
"pool.file.7d.0001" on device "dev.file.storage.1" (/home/test/dev).
10-Фев 22:44 Storage1 JobId 4: Warning: Device "devTapeStorage"
(/dev/nst0) not configured to autolabel Volumes.
10-Фев 22:44 Storage1 JobId 4: Please mount Volume "pool.tape.7d.0002"
or label a new one for:
    Job:          copy.job1.2009-02-10_22.44.20.07
    Storage:      "devTapeStorage" (/dev/nst0)
    Pool:         pool.tape.7d
    Media type:   Tape
*label
The defined Storage resources are:
     1: storage.file.1
     2: storage.file.2
     3: storage.tape
Select Storage resource (1-3): 3
main.dir: job.c:1298-0 wstore=storage.tape where=command line
Enter new Volume name: pool.tape.7d.0001
Defined Pools:
     1: pool.file.7d
     2: pool.tape.7d
     3: Default
Select the Pool (1-3): 2
main.dir: msgchan.c:104-0 bnet_connect to Storage daemon 10.243.10.17:9103
Connecting to Storage daemon storage.tape at 10.243.10.17:9103 ...
main.dir: bsock.c:201-0 Current host[ipv4:10.243.10.17:9103] All
host[ipv4:10.243.10.17:9103]
Storage1: bnet.c:667-0 who=client host=10.243.10.17 port=36643
main.dir: bsock.c:155-0 who=Storage daemon host=10.243.10.17 port=9103
Storage1: cram-md5.c:73-0 send: auth cram-md5
<686854280.1234298719@Storage1> ssl=0
main.dir: cram-md5.c:133-0 cram-get received: auth cram-md5
<686854280.1234298719@Storage1> ssl=0
main.dir: cram-md5.c:152-0 sending resp to challenge: 7Q/WD38CB8+fL8oWcA+YKA
main.dir: cram-md5.c:80-0 send: auth cram-md5
<186882796.1234298719 AT main DOT dir> ssl=0
Storage1: cram-md5.c:133-0 cram-get received: auth cram-md5
<186882796.1234298719 AT main DOT dir> ssl=0
main.dir: cram-md5.c:99-0 Authenticate OK M9+BS8+nM+UCu/+Q1E+pfC
Storage1: cram-md5.c:152-0 sending resp to challenge: M9+BS8+nM+UCu/+Q1E+pfC
Storage1: dircmd.c:209-0 Message channel init completed.
Sending label command for Volume "pool.tape.7d.0001" Slot 0 ...
Storage1: dircmd.c:583-0 Found device devTapeStorage
Storage1: dircmd.c:623-0 Found device devTapeStorage
Storage1: dircmd.c:441-0 Stole device "devTapeStorage" (/dev/nst0)
lock, writing label.
Storage1: dircmd.c:444-0 try_autoload_device - looking for volume_info
Storage1: autochanger.c:121-0 Device "devTapeStorage" (/dev/nst0) is
not an autochanger
Storage1: label.c:81-0 Enter read_volume_label res=1
device="devTapeStorage" (/dev/nst0) vol=pool.tape.7d.0001
dev_Vol=*NULL*
main.dir: ua_label.c:695-0 label devTapeStorage
VolumeName=pool.tape.7d.0001 PoolName=pool.tape.7d MediaType=Tape
Slot=0 drive=-1
Storage1: label.c:163-0 No volume label - bailing out
Storage1: dev.c:1892-0 Clear volhdr vol=

Volume Label:
Id                : Bacula 1.0 immortal
VerNo             : 11
VolName           : pool.tape.7d.0001
PrevVolName       :
VolFile           : 0
LabelType         : PRE_LABEL
LabelSize         : 0
PoolName          : pool.tape.7d
MediaType         : Tape
PoolType          : Backup
HostName          : backup2.localhost
Date label written: 10-Фев-2009 22:45

Volume Label:
Id                : Bacula 1.0 immortal
VerNo             : 11
VolName           : pool.tape.7d.0001
PrevVolName       :
VolFile           : 1
LabelType         : PRE_LABEL
LabelSize         : 0
PoolName          : pool.tape.7d
MediaType         : Tape
PoolType          : Backup
HostName          : backup2.localhost
Date label written: 10-Фев-2009 22:45
Storage1: label.c:397-0 Call reserve_volume
Storage1: dev.c:1892-0 Clear volhdr vol=pool.tape.7d.0001
3912 Failed to label Volume: ERR=block.c:1015 Read zero bytes at 0:0
on device "devTapeStorage" (/dev/nst0).

>>> Label command failed for Volume pool.tape.7d.0001.
Do not forget to mount the drive!!!
*main.dir: ua_dotcmds.c:130-0 Cmd: .messages


You have messages.
*m
10-Фев 22:48 Storage1 JobId 4: Warning: Director wanted Volume
"pool.tape.7d.0002".
    Current Volume "pool.tape.7d.0001" not acceptable because:
>>>    1997 Volume "pool.tape.7d.0001" not in catalog.
10-Фев 22:48 Storage1 JobId 4: Please mount Volume "pool.tape.7d.0002"
or label a new one for:
    Job:          copy.job1.2009-02-10_22.44.20.07
    Storage:      "devTapeStorage" (/dev/nst0)
    Pool:         pool.tape.7d
    Media type:   Tape







-- 
with best regards

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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>