Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#!/bin/bash
2
#
3
# Configuration file for /etc/cron.weekly/raid-check
4
#
5
# options:
6
#	ENABLED - must be yes in order for the raid check to proceed
7
#	CHECK - can be either check or repair depending on the type of
8
#		operation the user desires.  A check operation will scan
9
#		the drives looking for bad sectors and automatically
10
#		repairing only bad sectors.  If it finds good sectors that
11
#		contain bad data (meaning that the data in a sector does
12
#		not agree with what the data from another disk indicates
13
#		the data should be, for example the parity block + the other
14
#		data blocks would cause us to think that this data block
15
#		is incorrect), then it does nothing but increments the
16
#		counter in the file /sys/block/$dev/md/mismatch_count.
17
#		This allows the sysadmin to inspect the data in the sector
18
#		and the data that would be produced by rebuilding the
19
#		sector from redundant information and pick the correct
20
#		data to keep.  The repair option does the same thing, but
21
#		when it encounters a mismatch in the data, it automatically
22
#		updates the data to be consistent.  However, since we really
23
#		don't know whether it's the parity or the data block that's
24
#		correct (or which data block in the case of raid1), it's
25
#		luck of the draw whether or not the user gets the right
26
#		data instead of the bad data.  This option is the default
27
#		option for devices not listed in either CHECK_DEVS or
28
#		REPAIR_DEVS.
29
#	CHECK_DEVS - a space delimited list of devs that the user specifically
30
#		wants to run a check operation on.
31
#	REPAIR_DEVS - a space delimited list of devs that the user
32
#		specifically wants to run a repair on.
33
#	SKIP_DEVS - a space delimited list of devs that should be skipped
34
#	NICE - Change the raid check CPU and IO priority in order to make
35
#		the system more responsive during lengthy checks.  Valid
36
#		values are high, normal, low, idle.
37
#	MAXCONCURENT - Limit the number of devices to be checked at a time.
38
#		By default all devices will be checked at the same time.
39
#
40
# Note: the raid-check script intentionaly runs last in the cron.weekly
41
# sequence.  This is so we can wait for all the resync operations to complete
42
# and then check the mismatch_count on each array without unduly delaying
43
# other weekly cron jobs.  If any arrays have a non-0 mismatch_count after
44
# the check completes, we echo a warning to stdout which will then me emailed
45
# to the admin as long as mails from cron jobs have not been redirected to
46
# /dev/null.  We do not wait for repair operations to complete as the
47
# md stack will correct any mismatch_cnts automatically.
48
#
49
# Note2: you can not use symbolic names for the raid devices, such as you
50
# /dev/md/root.  The names used in this file must match the names seen in
51
# /proc/mdstat and in /sys/block.
52
 
53
ENABLED=yes
54
CHECK=check
55
NICE=low
56
# To check devs /dev/md0 and /dev/md3, use "md0 md3"
57
CHECK_DEVS=""
58
REPAIR_DEVS=""
59
SKIP_DEVS=""
60
MAXCONCURRENT=