Lucent Technologies 585-210-940 User Manual

Page of 106
 
 
Maintaining Mirrored Systems 
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Maintaining the chkDisks crontab
40
Maintaining the chkDisks crontab
3
The chkDisks crontab runs each night and checks to see whether any 
potential or actual drive problems have been logged. The results of the 
search are logged to 
/olds/elog and mailed to the root user. This section 
shows how to start and stop chkDisks, and how to verify that it will run.
Activating 
chkDisks
3
Activate chkDisks by doing the following steps:
1. Enter the command:
#
crontab
-e
The system starts the editor and loads the 
cron
 file. 
2. Find the line for 
/olds/chkDisks. If it is commented out, uncomment it 
by deleting the pound sign at the beginning of the line. If there is no 
line for 
/olds/chkDisks, add the following line to the end of the file:
15 0 * * * /olds/chkDisks > /dev/null 2>&1
Verifying chkDisks
3
To verify that 
cron
 is running, enter the following command:
Check the listing to see that there is an entry for chkDisks.
Changing the 
scheduled run time
3
The /olds/chkDisks line in the cron file is generally in the following format:
15 0 * * * /olds/chkDisks > /dev/null 2>&1
This line tells the system to run chkDisks every day at 15 minutes past 
hour zero, or 12:15 AM. You can change that schedule by changing the 
first five fields as necessary. The fields, in order of appearance, are: 
minute, hour, day of the month, month of the year, and day of the week. 
An asterisk means “all legal values.” For more information, see the 
manual (man) page for the crontab command.
Canceling 
chkDisks
3
To stop cron from running, enter the following command:
With the file loaded in the editor, comment out the entry for chkDisks and 
write and quit the file.
#
crontab
-l
#
crontab
-e