Hi to all,
i have this storage entry on bareos-dir.conf
Storage {
Name = STK180-LTO-Changer
Address = esfgalbk01.ternaren.prv
Password = "SKJ/bh3UhC5CwvtXexdiM9X5deCqC9F/5gynKSdlCUYT"
# must be same as Device in Storage daemon
Device = ULTRIUM-TD4-Drive-1
Device = ULTRIUM-TD4-Drive-2
Device = ULTRIUM-TD4-Drive-3
Device = ULTRIUM-TD4-Drive-4
Device = ULTRIUM-TD4-Drive-5
Media Type = LTO-4 # must be same as MediaType in Storage
daemon
Autochanger = yes # enable for autochanger device
}
and this on bareos-sd.conf
Autochanger {
Name = STK180-LTO-Changer
Device = ULTRIUM-TD4-Drive-1
Device = ULTRIUM-TD4-Drive-2
Device = ULTRIUM-TD4-Drive-3
Device = ULTRIUM-TD4-Drive-4
Device = ULTRIUM-TD4-Drive-5
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/tape/by-id/scsi-1STK_L180_3VCSS0020S
}
Device {
Name = ULTRIUM-TD4-Drive-1 #
Drive Index = 0
Media Type = LTO-4
Archive Device = /dev/tape/by-id/scsi-350065263358c024e-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
}
.....
.....
.....
Device {
Name = ULTRIUM-TD4-Drive-5 #
Drive Index = 4
Media Type = LTO-4
Archive Device = /dev/tape/by-id/scsi-350065263358c0252-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes;
}
When i try to use mount or other command to use drive from 2 to 5 bareos uses
always the first drive (/dev/tape/by-id/scsi-350065263358c024e-nst).
I attach also a session of bconsol output (how you can see i try to use DRIVE-3
(definited in bareos-sd.conf with /dev/tape/by-id/scsi-350065263358c0250)-nst)
but ....
*mount
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
1: File
2: STK180-LTO-Changer
3: NDMPFile
4: NDMPSTK180-LTO-Changer
Select Storage resource (1-4): 2
Connecting to Storage daemon STK180-LTO-Changer at esfgalbk01.ternaren.prv:9103
...
Select Drive:
1: Drive 0
2: Drive 1
3: Drive 2
4: Drive 3
5: Drive 4
Select drive (1-5): 3
Enter autochanger slot: 1
Connecting to Storage daemon STK180-LTO-Changer at esfgalbk01.ternaren.prv:9103
...
3307 Issuing autochanger "unload slot 12, drive 0" command.
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3001 Mounted Volume: 024D0000
3001 Device ""ULTRIUM-TD4-Drive-1"
(/dev/tape/by-id/scsi-350065263358c024e-nst)" is mounted with Volume "024D0000"
*
Where is the error?
Thanks a lot to all
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.