-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtemplate.conf
More file actions
343 lines (290 loc) · 11.4 KB
/
template.conf
File metadata and controls
343 lines (290 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
[dss]
# DB connection string
connect_string = dbname=phobos host=localhost user=phobos password=phobos
[lrs]
# prefix to mount phobos filesystems
mount_prefix = /mnt/phobos-
# media selection policy: first_fit or best_fit
policy = best_fit
# handled resource families (comma-separated list without any space)
families = tape,dir
# path of the LRS-server socket
server_socket = /run/phobosd/lrs
# path of the daemon lock file
lock_file = /run/phobosd/phobosd.lock
# Maximum health a device or medium can have
max_health = 5
# Thresholds for synchronization mechanism
# time threshold for medium synchronization, in ms,
# positive value, may be equal to 0 and lesser or equal than 2^64
sync_time_ms = tape=10000,dir=10
# number of requests threshold for medium synchronization,
# positive value, greater than 0 and lesser or equal than 2^32
sync_nb_req = tape=5,dir=5
# written size threshold for medium synchronization, in KiB,
# positive value, greater than 0 and lesser or equal than 2^54
sync_wsize_kb = tape=1048576,dir=1048576
# Fifo maximum number of concurrent write operation per grouping per scheduler,
# positive value to limit concurrent writes, or 0 for no limit
# (this parameter is only used by the fifo write schedulers)
fifo_max_write_per_grouping = 0
# Consider grouping to choose a dir. Value should be either "true" or "false".
# Default is "false".
# If the value is not "true" or "false", the default value "false" is set.
grouping_on_dir = false
# Locate pre-locks expirancy, in ms
# Positive value, may be equal to 0 and lesser or equal than 2^64
# 0 means immediate expirancy i.e. the scheduler will not retain the medium
locate_lock_expirancy = 0
# I/O scheduling algorithms for dir family
[io_sched_dir]
# Scheduling algorithm used for read requests
# Supported algorithms: fifo, grouped_read
read_algo = fifo
# Scheduling algorithm used for write requests
# Supported algorithms: fifo
write_algo = fifo
# Scheduling algorithm used for format requests
# Supported algorithms: fifo
format_algo = fifo
# Only none is supported for dirs
dispatch_algo = none
# Same as io_sched_dir section but for tape family
[io_sched_tape]
read_algo = grouped_read
# If ordered_grouped_read is set to "true", grouped_read will use the QOS and
# priority fields of each request to order them per medium queue.
# If ordered_grouped_read is set to "false", grouped_read will use fifo order.
# The priority of each read request corresponds to the ctime of the object copy
# to get, ensuring older copies will be scheduled first to follow past written
# order.
# Default: true
# ordered_grouped_read = true
write_algo = fifo
format_algo = fifo
# Algorithm which perform the repartition of device to I/O schedulers
# Supported algorithms:
# - none: any device can be used for any request
# - fair_share: allocate devices to schedulers based on the systems' load (tape
# only)
dispatch_algo = fair_share
# Minimum number of LTO3 drives for read, write and formats respectively
fair_share_LTO3_min = 0,0,0
# Maximum number of LTO3 drives for read, write and formats respectively
fair_share_LTO3_max = 5,0,0
fair_share_LTO4_min = 2,1,0
fair_share_LTO4_max = 5,5,1
fair_share_LTO5_min = 0,0,0
fair_share_LTO5_max = 5,5,5
fair_share_LTO6_min = 0,0,0
fair_share_LTO6_max = 5,5,5
[scsi]
# retry count for SCSI requests
retry_count = 5
# short retry delay (if SCSI indicates to retry immediately)
retry_short = 1
# long retry delay (if device is busy, or in case of unexpected error)
retry_long = 5
# chunk size for element status requests (0=unlimited)
max_element_status = 0
# timeout of a SCSI query request in ms
query_timeout_ms = 1000
# timeout of a SCSI move request in ms
move_timeout_ms = 300000
# timeout of a SCSI inquiry request in ms
inquiry_timeout_ms = 10
[lib_scsi]
# Boolean value indicating whether Phobos should query the drive serial number
# and the volume label in seperate SCSI requests. Some libraries can't report
# both in one request (e.g. IBM library).
sep_sn_query = false
[ltfs]
# LTFS command wrappers
cmd_mount = /usr/sbin/pho_ldm_helper mount_ltfs "%s" "%s"
cmd_umount = /usr/sbin/pho_ldm_helper umount_ltfs "%s" "%s"
cmd_format = /usr/sbin/pho_ldm_helper format_ltfs "%s" "%s"
cmd_release = /usr/sbin/pho_ldm_helper release_ltfs "%s"
[tape]
# Percentage of capacity reserved for updating the index.
# Value goes from 1 to 100
tape_full_threshold = 5
[dir]
# Percentage of capacity reserved.
# Value goes from 1 to 100
dir_full_threshold = 1
[rados_pool]
# Percentage of capacity reserved.
# Value goes from 1 to 100
rados_pool_full_threshold = 1
[store]
# default layout for put operations
# default_layout = raid1
# default resource family for put operations
default_family = tape
# default profile for put operations
default_profile = simple
# default library
default_dir_library = legacy
default_rados_library = legacy
default_tape_library = legacy
[io]
# Force the block size (in bytes) used for writing data to all media.
# If value is null or is not specified, phobos will use the value provided
# by the storage system (statfs.f_bsize, see statfs(2)).
#io_block_size = dir=1048576,tape=1048576,rados_pool=1048576
# Block size of the file system mounted. If set, all the file system for the
# one family should have the same block size which is defined in the conf.
# Used to calculate the exact size of a put when building the write alloc.
fs_block_size = dir=1024,tape=524288
[layout_raid1]
# number of data replicas, so a replica count of 1 means that there is only
# one copy of the data (the original), and 0 additional copies of it. Therefore,
# a replica count of 2 means the original copy of the data, plus 1 additional
# copy.
# default is 2.
repl_count = 2
# Boolean value to indicate whether Phobos should compute the XXHASH128 value of
# each written extent.
#
# In environments where xxhash has a version lower than 0.8.0, this parameter is
# ignored and the xxh128 is not computed. If set to "true", the client will
# issue a warning to indicate this inconsistency.
#
# Default: true (false if Phobos is not compiled with xxh128 support)
# extent_xxh128 = true
# Boolean value to indicate whether Phobos should compute the MD5 value of each
# written extent.
#
# Default: false (true if Phobos is not compiled with xxh128 support)
# extent_md5 = false
# Boolean value to indicate whether Phobos should verify checksum integrity of
# each written extent when doing a get operation.
#
# Default: true
# check_hash = true
[layout_raid4]
# Boolean value to indicate whether Phobos should compute the XXHASH128 value of
# each written extent.
#
# In environments where xxhash has a version lower than 0.8.0, this parameter is
# ignored and the xxh128 is not computed. If set to "true", the client will
# issue a warning to indicate this inconsistency.
#
# Default: true (false if Phobos is not compiled with xxh128 support)
# extent_xxh128 = true
# Boolean value to indicate whether Phobos should compute the MD5 value of each
# written extent.
#
# Default: false (true if Phobos is not compiled with xxh128 support)
# extent_md5 = false
# Boolean value to indicate whether Phobos should verify checksum integrity of
# each written extent when doing a get operation.
#
# Default: true
# check_hash = true
[profile "simple"]
# default profile for put operations
layout = raid1
lyt-params = repl_count=1
library = legacy
[profile "tape_raid4"]
layout = raid4
family = tape
[copy]
default_copy_name = source
# List of copies to be retrieved in priority order
get_preferred_order=fast,cache
[copy "big_on_tape"]
profile = tape_raid4
######### Tape/drive support and compatibility rules ########
# You should not modify the following configuration unless:
# * You want to add support for a new device or tape model
# * You don't want to take advantage of drive compatibility rules and you want
# to restrict them (e.g. if you don't want to write LTO5 tapes using LTO6
# drives).
#############################################################
# List of drive models implementing each generation of drive
# (comma-separated lists without any space)
[drive_type "LTO5_drive"]
models = ULTRIUM-TD5,ULT3580-TD5,ULTRIUM-HH5,ULT3580-HH5,HH LTO Gen 5
[drive_type "LTO6_drive"]
models = ULTRIUM-TD6,ULT3580-TD6,ULTRIUM-HH6,ULT3580-HH6,HH LTO Gen 6
[drive_type "LTO7_drive"]
models = ULTRIUM-TD7,ULT3580-TD7,ULTRIUM-HH7,ULT3580-HH7,HH LTO Gen 7
[drive_type "LTO8_drive"]
models = ULTRIUM-TD8,ULT3580-TD8,ULTRIUM-HH8,ULT3580-HH8,HH LTO Gen 8
[drive_type "LTO9_drive"]
models = ULTRIUM-TD9,ULT3580-TD9,ULTRIUM-HH9,ULT3580-HH9,HH LTO Gen 9
[tape_model]
# List of supported tape models (checked by "phobos tape add ...")
# comma separated list of tape models, without any space
# default: LTO5,LTO6,LTO7,LTO8,LTO9,T10KB,T10KC,T10KD
#supported_list = LTO5,LTO6,LTO7,LTO8,LTO9,T10KB,T10KC,T10KD
# List of drive types that can write each tape generation
# (comma-separated lists without any space)
[tape_type "LTO5"]
drive_rw = LTO5_drive,LTO6_drive
[tape_type "LTO6"]
drive_rw = LTO6_drive,LTO7_drive
[tape_type "LTO7"]
drive_rw = LTO7_drive,LTO8_drive
[tape_type "LTO7M8"]
drive_rw = LTO8_drive
[tape_type "LTO8"]
drive_rw = LTO8_drive,LTO9_drive
[tape_type "LTO9"]
drive_rw = LTO9_drive
# Tape Library Controler, one tlc section per library.
# The section name must be "tlc" followed by the name of your library.
# (The default library name is defined by the above store section
# default_tape_library parameter.)
[tlc "legacy"]
# Server address
hostname = localhost
port = 20123
# If the server needs to bind to a different hostname/port (e.g. for
# load-balancing), uncomment and use these. Default will use hostname
# and port.
#listen_hostname = 0.0.0.0
#listen_port = 20123
# It's also possible to force listening to a given interface
#listen_interface = admin0
# List of library changer for the server
# (comma-separated lists without any space)
lib_device = /dev/changer
#lib_device = /dev/changer0,/dev/changer1,/dev/changer2
# Number of lib devices to try before considering a SCSI request as failed.
# Minimum: 1, Maximum: number of open lib devices. Default will use 1.
max_device_retry = 1
# One HSM section per couple of source and destination copy names
[hsm "source_copy_name" "destination_copy_name"]
# Path to the file containing the last time `phobos hsm_sync_dir` was called"
# The synced ctime file must contains a 'date +"%Y-%m-%d %H:%M:%S.%6N"' value,
# of format"YYYY-mm-dd HH:MM:SS.uuuuuu", always 26 characters.
# Example: ""2025-09-26 18:17:07.548048"
# Default: "/var/lib/phobos/hsm_synced_ctime_source_destination"
#synced_time_path = /var/lib/phobos/hsm_synced_ctime_source_destination
# Delay in second before an object is synced
# Default: "0"
#sync_delay_second = 0
# Delay in second before an object is released
# Default: "0"
#release_delay_second = 0
# Filling limit to start a release purge of a dir
# This value must be an integer percentage (between 1 and 100), strictly higher
# than dir_release_lower_threshold.
# A value of 100 means that no release purge will never happen.
# Default: "95"
#dir_release_higher_threshold = 95
#
# Filling limit to achieve when purging a dir
# This value must be an integer percentage (between 0 and 99), strictly lower
# than dir_release_higher_threshold.
# A value of 0 means that if a release purge starts, every selectable copy
# will be deleted.
# Default: "80"
#dir_release_lower_threshold = 80
#
# Path to the file where object sync and release errors are logged
# Default: "/var/lib/phobos/hsm_error"
#error_log_path = "/var/lib/phobos/hsm_error"