DNS server
/ DHCP server / BOOTP server
IBM x305, 1U, Machine Type: 8673-43X
Flash EEPROM rev level: PLE146AUS, System Board S/N KP-KH111, BIOS date: 01/15/03
2.4GHz Pentium 4,
2 Gb RAM (4x512Mb),
2 x 18 GB SATA drives in a software RAID 1 (mirror) configuration,
2 Intel 100/1000 Gigabit NICs
Flash EEPROM rev level: PLE146AUS
System Board S/N KP-KH111
BIOS date: 01/15/03
DISASTER RECOVERY
- Install a new server.
- Do the following:
scp root@secure.phas.ubc.ca:/wwws/sysadmin/Computers/00_Servers/rhel/satellite_setup.pl .
chmod +x satellite_setup.pl
./satellite_setup.pl
yum clean all
yum update
yum install bind bind-chroot
chgrp -R named domain
ls /usr/share/doc/bind-*/sample/var/named/*
cp -R /usr/share/doc/bind-*/sample/var/named/* /var/named/chroot/var/named/
chgrp -R named /var/named/chroot/var/named/
chmod -R g+w /var/named/chroot/var/named/
chmod g+s /var/named/chroot/var/named/data
chmod g+s /var/named/chroot/var/named/slaves/
yum install rsync
vim /etc/rsyncd.conf
yum install xinetd
vim /etc/hosts.allow
cd /etc/sysconfig/
cp iptables iptables.orig
vim iptables
service iptables restart
vim /etc/selinux/config
setenforce 0
sestatus
yum install dhcp
chkconfig --list | grep -i dhcp
chattr +i /var/named/chroot/etc/named.conf
lsattr /var/named/chroot/etc/named.conf
service named start
rndc status
vim /root/.ssh/authorized_keys
Additional, non-critical items to take care of:
- Install APCUPSD
|
Install boot loader on second SW RAID disk
As root, get a grub command prompt and then do:
1) Do find /boot/grub/stage1 to find which partitions have the required Grub
files in /boot/grub. If you have a separate partition for /boot, do
find /grub/stage1 instead:
grub> find /grub/stage1
(hd0,1)
(hd1,1)
grub>
The output could be different, depending on the partition where /boot is located.
2) Asumming your disks are /dev/sda (hd0) and /dev/sdb (hd1) and you have grub installed in the MBR of /dev/sda, do the following to install grub into /dev/sdb MBR:
Use the "device" command of the grub shell to tell grub that (hd0) is the drive we are installing into, regardless of it's present position. Then whichever drive boots, it will look for its files on its own first partition (hd0,0).
> device (hd0) /dev/sdb
device (hd0) /dev/sdb
> root (hd0,1)
root (hd0,1)
Filesystem type is ext2fs, partition type 0xfd
> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 27 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+27 p (hd0,1)/grub/stage2 /grub/grub.conf"... succeeded
Done.
That is telling grub to assume the drive is hd0 (the first disk in the system).
Thus, if the first fails, the second will play the role of the first one, and so the MBR will be correct.
rndc: connect failed: 127.0.0.1#953: connection refused
this error often appears after an update/upgrade.
root@dns2$ chmod g+w /var/named/chroot/var/run
root@dns2$ chmod g+w /var/named/chroot/etc/rndc.key
root@dns2$ service named restart
root@dns2$ /usr/sbin/rndc reload
|
dnstop installation
wget http://pkgs.repoforge.org/dnstop/dnstop-0.0.20080502-1.el6.rf.i686.rpm
rpm -Uch dnstop-0.0.20080502-1.el6.rf.i686.rpm
|
Dmesg | more