Dear Heitor,
I wrote:
> Sorry, this doesn't work for me (under Fedora 27):
>
> Autochanger=0
> Changer Device = /dev/tape/by-id/scsi-1TANDBERGStorageLoader_AA49LA012794
>
> Autochanger=1
> Changer Device = 13:43
>
> Drive-0 Archive Device = ->
> sginfo: invalid option -- '>'
Maybe I should add:
# ls -la /dev/tape/by-id/* | grep /nst
lrwxrwxrwx 1 root root 10 Mar 31 21:41
/dev/tape/by-id/scsi-1TANDBERGTS800_800080800107-nst -> ../../nst2
lrwxrwxrwx 1 root root 10 Apr 1 13:43
/dev/tape/by-id/scsi-3500110a0014d7c1e-nst -> ../../nst1
lrwxrwxrwx 1 root root 10 Mar 31 21:41
/dev/tape/by-id/scsi-3500143802960afce-nst -> ../../nst0
Your first problem is the sed 's/ /,/g' part which will split
"Apr 1" in 3 friends due to the 2 space. You probably rather want
to use sed 's/ \+/,/g' .
But then, the cut -d ',' -f 10,12 gives "->" - I think this should
be "-f 11" instead of "-f 10" in both instances.
And even with these two changes, you get
Drive-1 tape QUANTUM ULTRIUM 4 U61T /dev/st1 /dev/sg7
Archive Device = ../../nst1
sginfo(open): Device or resource busy
file=../../nst1, or no corresponding sg device found
Is sg driver loaded?
for all the tape drives. Either you edit the device names as needed
so they canbe found (../../nst1 should be /dev/nst1 instead), or you
simply "cd" into the /dev/tape/by-id/ directory in your script
before doing anything else. The latter is easier to implement,
while the former would result in better readable file names.
But all these changes will not fix the problem that devices currently
used (for example by a running bacula), will not be accessable, so
you get above "Device or resource busy" error...
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
He who hesitates is not only lost, but miles from the next exit.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users