]> git.sur5r.net Git - bacula/bacula/blob - regress/README.faketape
ebl fix
[bacula/bacula] / regress / README.faketape
1 HOWTO SETUP A FAKE TAPE ENVIRONMENT
2 -----------------------------------
3
4 Introduction:
5 -------------
6
7 The fake tape driver attempts to simulate a tape drive from a low level
8 aspect. It emulates tape operations like fsf, bsf, weom, variable bloc, etc..
9
10 For that the driver implements 5 operations :
11  - read
12  - write
13  - open
14  - close
15  - ioctl
16
17 If your bacula's binaries are compiled with fake tape support, you won't be
18 able to use real tape drive.
19
20
21 Setup the regress environment for tape tests
22 --------------------------------------------
23
24 Be sure to configure your config file with this :
25
26 TAPE_DRIVE="/tmp/drive0"
27 TAPE_DRIVE1="/tmp/drive1"
28 DRIVE1=0
29 DRIVE2=1
30 SLOT1=1
31 SLOT2=2
32 AUTOCHANGER="/tmp/ach_config"
33 USE_FAKETAPE=--enable-faketape
34 AUTOCHANGER_SCRIPT=disk-changer
35
36 You can remplace /tmp/ by what you want.
37
38 Then, the /tmp/ach_config can contain this to simulate 2 drives :
39 maxdrive=2
40 maxslot=10
41
42 And type "make setup"
43
44 That all !
45
46
47 Setup a quite big autochanger (5 drives and 80 slots)
48 -----------------------------------------------------
49
50 Just run "./tests/faketape-test-changer" test to use right configuration files,
51 then you can use "./scripts/prepare-fake-autochanger" script to initialize the
52 dummy autochanger.
53
54
55
56