Ok, not sure this is a permission issue now. Changed the mtx-changer script
permissions, still nothing. Went as far as making the bacula-dir and
bacula-sd to run as root:
root 4690 0.0 0.0 193304 2896 ? Ssl 09:36 0:00
/usr/sbin/bacula-dir -u root -g disk
root 4713 0.0 0.0 164680 2156 ? Ssl 09:36 0:00
/usr/sbin/bacula-sd -u root -g disk
Changed it to root and I still received when I ran update slots:
Connecting to Storage daemon LTO4Tape at
naalinback1sf.internal.naaleads.com:9103 ...
3306 Issuing autochanger "slots" command.
Device "DLT-S4" has 8 slots.
Connecting to Storage daemon LTO4Tape at
naalinback1sf.internal.naaleads.com:9103 ...
3306 Issuing autochanger "list" command.
No Volumes found to label, or no barcodes.
Here is the output of mtx -f /dev/sg3 status:
Storage Changer /dev/sg3:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full
Storage Element 2:Empty
Storage Element 3:Empty
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
As you can see, mtx can see a drive in the unit. After all this I still
received:
13-Jun 09:39 mystorage-sd JobId 447: 3302 Autochanger "loaded? drive 0",
result: nothing loaded.
13-Jun 09:39 mystorage-sd JobId 447: Warning: mount.c:221 Open device
"DLT-S4" (/dev/st0) Volume "Tape-0139" failed: ERR=dev.c:491 Unable to open
device "DLT-S4" (/dev/st0): ERR=No medium found
13-Jun 09:39 mystorage-sd JobId 447: Invalid slot=0 defined in catalog for
Volume "Tape-0139" on "DLT-S4" (/dev/st0). Manual load may be required.
13-Jun 09:39 mystorage-sd JobId 447: 3301 Issuing autochanger "loaded? drive
0" command.
*messages
13-Jun 09:39 mystorage-sd JobId 447: 3302 Autochanger "loaded? drive 0",
result: nothing loaded.
13-Jun 09:39 mystoragesf-sd JobId 447: 3301 Issuing autochanger "loaded?
drive 0" command.
*messages
13-Jun 09:39 mystorage-sd JobId 447: 3302 Autochanger "loaded? drive 0",
result: nothing loaded.
13-Jun 09:39 mystorage-sd JobId 447: Warning: mount.c:221 Open device
"DLT-S4" (/dev/st0) Volume "Tape-0139" failed: ERR=dev.c:491 Unable to open
device "DLT-S4" (/dev/st0): ERR=No medium found
13-Jun 09:39 mystorage-sd JobId 447: Please mount Volume "Tape-0139" or
label a new one for:
Job: myclient-copy.2010-06-13_09.39.16_03
Storage: "DLT-S4" (/dev/st0)
Pool: TapeCopy
Media type: DLT-S4
If I run:
/etc/bacula/scripts/mtx-changer /dev/sg3 load 1 /dev/st0 0
The tape is moved to the drive and once there, it writes perfectly:
13-Jun 09:46 director-dir JobId 449: The following 1 JobId was chosen to be
copied: 291
13-Jun 09:46 director-dir JobId 449: Copying using JobId=291
Job=client-fd.2010-06-13_02.00.00_31
13-Jun 09:46 director-dir JobId 449: Bootstrap records written to
/var/lib/bacula/director-dir.restore.2.bsr
13-Jun 09:47 director-dir JobId 449: Start Copying JobId 449,
Job=client-copy.2010-06-13_09.46.58_06
13-Jun 09:47 director-dir JobId 449: Using Device "DLT-S4"
13-Jun 09:47 mystorage-sd JobId 449: Ready to read from volume
"client-full-0005" on device "client" (/backvol/client).
13-Jun 09:47 mystorage-sd JobId 449: Invalid slot=0 defined in catalog for
Volume "Tape-0139" on "DLT-S4" (/dev/st0). Manual load may be required.
13-Jun 09:47 mystorage-sd JobId 449: Labeled new Volume "Tape-0139" on
device "DLT-S4" (/dev/st0).
13-Jun 09:47 mystorage-sd JobId 449: Wrote label to prelabeled Volume
"Tape-0139" on device "DLT-S4" (/dev/st0)
13-Jun 09:47 mystorage-sd JobId 449: Forward spacing Volume
"client-full-0005" to file:block 0:6341011.
13-Jun 09:47 mystorage-sd JobId 449: End of Volume at file 0 on device
"client" (/backvol/client), Volume "client-full-0005"
13-Jun 09:47 mystorage-sd JobId 449: End of all volumes.
13-Jun 09:47 director-dir JobId 449: Bacula director-dir 5.0.2 (28Apr10):
13-Jun-2010 09:47:19
Build OS: x86_64-koji-linux-gnu redhat
Prev Backup JobId: 291
Prev Backup Job: client-fd.2010-06-13_02.00.00_31
New Backup JobId: 450
Current JobId: 449
Current Job: client-copy.2010-06-13_09.46.58_06
Backup Level: Full
Client: client-fd
FileSet: "dnsdata_client" 2010-06-12 10:35:00
Read Pool: "naadns1sf-full" (From Job FullPool override)
Read Storage: "client" (From Pool resource)
Write Pool: "TapeCopy" (From Job Pool's NextPool resource)
Write Storage: "LTO4Tape" (From Storage from Pool's NextPool
resource)
Catalog: "MyCatalog" (From Client resource)
Start time: 13-Jun-2010 09:47:00
End time: 13-Jun-2010 09:47:19
Elapsed time: 19 secs
Priority: 10
SD Files Written: 1,144
SD Bytes Written: 6,300,776 (6.300 MB)
Rate: 331.6 KB/s
Volume name(s): Tape-0139
Volume Session Id: 1
Volume Session Time: 1276436810
Last Volume Bytes: 6,451,200 (6.451 MB)
SD Errors: 0
SD termination status: OK
Termination: Copying OK
13-Jun 09:47 director-dir JobId 449: Begin pruning Jobs older than 2 months
.
13-Jun 09:47 director-dir JobId 449: No Jobs found to prune.
13-Jun 09:47 director-dir JobId 449: Begin pruning Jobs.
13-Jun 09:47 director-dir JobId 449: No Files found to prune.
13-Jun 09:47 director-dir JobId 449: End auto prune.
I guess if I want todo this, I will have to move my tapes manually.
On Sat, Jun 12, 2010 at 7:39 PM, bwellsnc <bwell...@gmail.com> wrote:
> OK. I know the permissions for the mtx-changer script is set to
> root:bacula. I will change the permissions and see what happens. Thanks.
>
> On Jun 12, 2010 4:18 PM, "John Drescher" <dresche...@gmail.com> wrote:
>
> 2010/6/12 bwellsnc <bwell...@gmail.com>:
>
> > Curious if anyone has an idea on my little problem. Thanks!
> >
> My guess is this is a permissions problem. With the user bacula not
> being permitted access to mtx or your changer device.
>
> John
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users