9 The Query tests are about like the Connectathon
12 Query your DATA agent:
14 % ndmjob -q -Dmyhost,logon,passwd
16 Query your DATA agent, force NDMPv2
18 % ndmjob -q -Dmyhost/2,logon,passwd
20 Query your DATA agent, force NDMPv3
22 % ndmjob -q -Dmyhost/3,logon,passwd
24 Query resident DATA agent. Force NDMPv2 and NDMPv3.
29 Query your TAPE agent:
31 % ndmjob -q -Tmyhost,logon,passwd
33 Query your ROBOT (see -help for DEV,CTRL,SID,LUN)
35 % ndmjob -q -Rmyhost,logon,passwd -r DEV,CTRL,SID,LUN
37 Query your DATA agent, produce a log file
39 % ndmjob -q -Dmyhost,logon,passwd -L log-file
41 Query your DATA agent, produce a detailed log file
43 % ndmjob -q -Dmyhost,logon,passwd -L log-file -d5
45 Query your DATA agent, produce a very detailed log file,
48 % ndmjob -q -Dmyhost,logon,passwd -L log-file -d6 -v
51 From here down, combinations of forcing NDMPv2/v3 on
52 each the DATA and TAPE agent are possible. These
53 tests correspond to the Connectathon NDMPvX-TAPE
54 and NDMPvX-DATA tests.
57 Run a test series on your TAPE agent. If things get
58 dicey, produce a log and check it
60 % ndmjob -o test-tape -T myhost,logon,passwd -f /dev/whatever
61 % ndmjob -o test-mover -T myhost,logon,passwd -f /dev/whatever
63 Resident TAPE agent test
68 % ndmjob -o test-tape -T./2 -f FakeTape
69 % ndmjob -o test-mover -T./2 -f FakeTape
71 % ndmjob -o test-tape -T./3 -f FakeTape
72 % ndmjob -o test-mover -T./3 -f FakeTape
76 Create a small directory system, like /tmp/test-data.
77 About 100 files amounting to about 5mb should be good.
78 A couple of big files in there would be good.
81 tar xzvf tough.tgz.bin
83 Create a backup to your TAPE agent. Create an index
87 -D. -C /tmp -F tough -I c-index \
88 -Tmyhost,logon,passwd -f /dev/whatever
90 Recover the file index. Your DATA agent might not implement
91 NDMPx_DATA_START_RECOVER_FILEHIST, but that doesn't matter.
92 This is using the NDMJOB resident DATA agent, and it does.
93 This first test will read the entire tape.
97 -Tmyhost,logon,passwd -f /dev/whatever
99 % diff c-index t-seq-index
101 Now, do the same thing, but enable direct access. The
102 NDMJOB DATA agent will issue DATA_READ requests and
103 pick through the image stream to get to just the tar
107 -D. -I t-dir-index -E RECOVER_DIRECT=yes \
108 -Tmyhost,logon,passwd -f /dev/whatever
110 % diff c-index t-dir-index
113 Same series using only resident agents
116 -D. -C /tmp -F tough -I c-index \
120 -D. -I t-seq-index -E RECOVER_DIRECT=no \
123 % diff c-index t-seq-index
126 -D. -I t-dir-index -E RECOVER_DIRECT=yes \
129 % diff c-index t-dir-index
132 Same series using only resident DATA and TAPE on local host
137 -D. -C /tmp -F tough -I c-index \
138 -Tlocalhost,ndmp,ndmp -f FakeTape
141 -D. -I t-seq-index -E RECOVER_DIRECT=no \
142 -Tlocalhost,ndmp,ndmp -f FakeTape
144 % diff c-index t-seq-index
147 -D. -I t-dir-index -E RECOVER_DIRECT=yes \
148 -Tlocalhost,ndmp,ndmp -f FakeTape
150 % diff c-index t-dir-index
153 Same series using DATA and TAPE on local host. This is
154 like the Connectathon NDMPvX-LOCAL tests:
159 -Dlocalhost,, -C /tmp -F tough -I c-index \
163 -Dlocalhost,, -I t-seq-index -E RECOVER_DIRECT=no \
166 % diff c-index t-seq-index
169 -Dlocalhost,, -I t-dir-index -E RECOVER_DIRECT=yes \
170 -Tlocalhost,, -f FakeTape
172 % diff c-index t-dir-index
176 If you have a tape robot, you MUST specify -m MEDIA options.
177 The next set of tests verifies NDMP_MOVER window handling
180 Create a backup that crosses two tapes. This assumes
181 a tape in each address 100 and 101. Your addresses
182 will probably be different. The -m@100/2m says to put
183 at most 2mb on the first tape. This is a NDMP_MOVER_SET_WINDOW
184 during create, which is convention but not part of the spec.
187 -D. -C /tmp -F test-data -I c-index \
188 -Tmyhost,logon,passwd -f /dev/whatever \
189 -r DEV,CTRL,SID,LUN \
192 Now, read it back. If your NDMP_MOVER is returning the
193 proper error codes, this will automatically discover
194 the window sizes as it proceeds. Notice that the -m
195 options do not give window size.
199 -Tmyhost,logon,passwd -f /dev/whatever \
200 -r DEV,CTRL,SID,LUN \
203 That'll get you started.