Egads, it seems to me that you are confused between Drives and Slots!

>From what I understand, you have a *single* drive, but 8 slots -- i.e. one 
read head, and a set of 8 tapes that can be selected one at a time.

If this is the case, your conf file should have only one Device (i.e. 
Drive-1).  Drive-1 should referent /dev/nst0  and /dev/sg2 -- forget about 
using /dev/st0 or any other /dev/nstx or /dev/stx.

The manual and the list can help you get this sorted out.


On Monday 02 April 2007 16:52, spouynt BER wrote:
> Hi,  I did some tests with a configuration file which has an Autochanger 
with only two tapes and it works, so how can I extend the file to use the 
eight (8) tapes of my autoloader ?  I found only two devices in the /dev/ 
witch I identified as tape drives :
> 
> the /dev/st0 and /dev/nst0 ! and the autoloader is /dev/sg2
> 
> the complete list of devices is :
> adsp           md15   ptyp6  ptys3     st0l      tty43  ttyq3  ttys8
> agpgart        md16   ptyp7  ptys4     st0m      tty44  ttyq4  ttys9
> audio          md17   ptyp8  ptys5     stderr    tty45  ttyq5  ttysa
> blog           md18   ptyp9  ptys6     stdin     tty46  ttyq6  ttysb
> bootsplash     md19   ptypa  ptys7     stdout    tty47  ttyq7  ttysc
> bus            md2    ptypb  ptys8     .tmp-3-0  tty48  ttyq8  ttysd
> cdrecorder     md20   ptypc  ptys9     tty       tty49  ttyq9  ttyse
> cdrom          md21   ptypd  ptysa     tty0      tty5   ttyqa  ttysf
> console        md22   ptype  ptysb     tty1      tty50  ttyqb  .udev
> core           md23   ptypf  ptysc     tty10     tty51  ttyqc  urandom
> device-mapper  md24   ptyq0  ptysd     tty11     tty52  ttyqd  
usbdev1.1_ep00
> disk           md25   ptyq1  ptyse     tty12     tty53  ttyqe  
usbdev1.1_ep81
> dsp            md26   ptyq2  ptysf     tty13     tty54  ttyqf  
usbdev2.1_ep00
> dvd            md27   ptyq3  ram0      tty14     tty55  ttyr0  
usbdev2.1_ep81
> dvdrecorder    md28   ptyq4  ram1      tty15     tty56  ttyr1  
usbdev3.1_ep00
> fb0            md29   ptyq5  ram10     tty16     tty57  ttyr2  
usbdev3.1_ep81
> fd             md3    ptyq6  ram11     tty17     tty58  ttyr3  
usbdev4.1_ep00
> full           md30   ptyq7  ram12     tty18     tty59  ttyr4  
usbdev4.1_ep81
> fwmonitor      md31   ptyq8  ram13     tty19     tty6   ttyr5  
usbdev5.1_ep00
> hda            md4    ptyq9  ram14     tty2      tty60  ttyr6  
usbdev5.1_ep81
> hpet           md5    ptyqa  ram15     tty20     tty61  ttyr7  vcs
> i2c-0          md6    ptyqb  ram2      tty21     tty62  ttyr8  vcs1
> initctl        md7    ptyqc  ram3      tty22     tty63  ttyr9  vcs10
> input          md8    ptyqd  ram4      tty23     tty7   ttyra  vcs2
> kmem           md9    ptyqe  ram5      tty24     tty8   ttyrb  vcs3
> kmsg           mem    ptyqf  ram6      tty25     tty9   ttyrc  vcs4
> log            mixer  ptyr0  ram7      tty26     ttyp0  ttyrd  vcs5
> loop0          net    ptyr1  ram8      tty27     ttyp1  ttyre  vcs6
> loop1          nst0   ptyr2  ram9      tty28     ttyp2  ttyrf  vcs7
> loop2          nst0a  ptyr3  random    tty29     ttyp3  ttys0  vcsa
> loop3          nst0l  ptyr4  route     tty3      ttyp4  ttyS0  vcsa1
> loop4          nst0m  ptyr5  rtc       tty30     ttyp5  ttys1  vcsa10
> loop5          null   ptyr6  sda       tty31     ttyp6  ttyS1  vcsa2
> loop6          nvram  ptyr7  sda1      tty32     ttyp7  ttys2  vcsa3
> loop7          port   ptyr8  sda2      tty33     ttyp8  ttyS2  vcsa4
> lp0            ppp    ptyr9  sda3      tty34     ttyp9  ttys3  vcsa5
> mapper         psaux  ptyra  sg0       tty35     ttypa  ttyS3  vcsa6
> mcelog         ptmx   ptyrb  sg1       tty36     ttypb  ttys4  vcsa7
> md0            pts    ptyrc  sg2       tty37     ttypc  ttyS4  watchdog
> md1            ptyp0  ptyrd  shm       tty38     ttypd  ttys5  xconsole
> md10           ptyp1  ptyre  skip      tty39     ttype  ttyS5  zero
> md11           ptyp2  ptyrf  snapshot  tty4      ttypf  ttys6
> md12           ptyp3  ptys0  snd       tty40     ttyq0  ttyS6
> md13           ptyp4  ptys1  st0       tty41     ttyq1  ttys7
> md14           ptyp5  ptys2  st0a      tty42     ttyq2  ttyS7
> 
> also here is the storage daemon configuration file part witch talks about my 
autochanger :
> 
> Autochanger {
>   Name = Autochanger
>   Device = Drive-1
>   Device = Drive-2
> #  Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> 
>   Changer Device = /dev/sg2
> }
> 
> Device {
>   Name = Drive-1                      #
>   Drive Index = 0
>   Media Type = DLT-8000
>   Archive Device = /dev/st0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = 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'"
> #  If you have smartctl, enable this, it has more info than tapeinfo
>   Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
> 
> Device {
>   Name = Drive-2                      #
>   Drive Index = 1
>   Media Type = DLT-8000
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = 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'"
> #  If you have smartctl, enable this, it has more info than tapeinfo
>   Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
> 
> 
> how can I enlarge this definition to include the use of the eight tapes ?
> 
> thanks for helping ;-)
> 
> Nawfel BERAÏCH
> www.ilem.ma
> 
> 
> 
> 
>   
>               
> ---------------------------------
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos 
questions ! Profitez des connaissances, des opinions et des expériences des 
internautes sur Yahoo! Questions/Réponses.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to