|
|
|
The Linux servers and OPI workstations system disks are backed up once a month using the "dd" command. The script performs the backup and sends an email confirming SUCCESS or FAILURE. On our LCLSDMZ Servers we use the root crontab file and on our LCLSCA Servers we the crontab.monthly directory. We also run a chk_linuxdd script on lcls-uwd as "uwd" to check on each host and make sure the backup was run. An email listing the servers that did not have a log file is sent to the system admins. |
root crontab entry (DMZ):
/etc/cron.monthly directory (LCLSCA):
|
linuxdd script: $TOOLS/script/linuxdd |
chk_linuxdd: $TOOLS/script/chk_linuxdd uwd crontab file: 30 8 1 * * /afs/slac/g/lcls/tools/script/chk_linuxdd > /tmp/chk_linuxdd.log 2>&1
RHEL-5 Grub related issues and solutions – Important files - /boot/grub/grub.conf /etc/fstab /boot/grub/device.map Our standard mechanism for root disk mirroring is dd. We also have a linux-mirror script which uses dump command. If following files contain references to disk partition LABELs then we can face bizarre issues due to disk mirroring – /boot/grub/grub.conf /etc/fstab
/etc/grub.conf would look like following (without LABEL entries) – [root@mcclogin ~]# cat /etc/grub.conf /etc/fstab would look like following (without LABEL entries) – [root@mcclogin ~]# cat /etc/fstab
Other important file which can cause unbootable mirror disk – /boot/grub/device.map Before mirroring the disk, ensure that this file contains entries for all the disks currently installed in the server.
In case of any discrepancies, recreate the /boot/grub/device.map file by issuing following commands – mv /boot/grub/device.map /boot/grub/device.map.bak echo | grub --device-map=/boot/grub/device.map Note – The “echo |” will make the grub command non-interactive. For a server having two disks (root and root-mirror ), the /boot/grub/device.map file would look like following - [root@mcclogin ~]# cat /boot/grub/device.map How to find out LABEL of a file system ? By using e2label command. For example - # e2label /dev/sda1 Small script for converting LABEL entries of /etc/fstab - #!/bin/bash #iecho number of elements ${#MYRA[*]} echo Replacing $LABELID with $DEVNAME |
Author:K. Brobeck
Modified:
02-Mar-2012