2007
02.26

* aaa.bbb.ccc.ddd is the IP address of ns1.yourdomain.com.
* named on ns1.yourdomain.com is already working, and has NS records for ns1.yourdomain.com and ns2.yourdomain.com.

1. In the global options block in /var/named.conf on ns1.yourdomain.com:
Make sure

notify yes;

is present. This will tell BIND to notify the other name servers listed for each zone when there is a change.

2. In the global options block in /var/named.conf on ns2.yourdomain.com:
Make sure

notify no;

is present. This will tell BIND NOT to notify anybody if there are changes made on this server. (The whole point of this is so that we only have to make changes on ns1, right?)

3. Edit /etc/named.conf on ns2.yourdomain.com:
In the global options block:
// Allow notifies from our master DNS server (ns1.yourdomain.com)
allow-notify { aaa.bbb.ccc.ddd; };
// Disable all zone transfer requests (this is just a slave server, so we don't need to send zones to anybody from here.)
allow-transfer { "none"; };
append zones for each domain these servers are authoritative for:
zone "yourdomain.com" {
type slave;
file "/var/named/slaves/yourdomain.com";
masters { aaa.bbb.ccc.ddd; };
};
zone "yourotherdomain.com" {
type slave;
file "/var/named/slaves/yourotherdomain.com";
masters { aaa.bbb.ccc.ddd; };
};
...and so on...

4. On ns2.yourdomain.com, restart named -> it should ask ns1 for some updates…

5. On ns1.yourdomain.com, restart named -> it should fire off some updates…

6. If it’s working, on ns2.yourdomain.com, you will see in /var/log/messages:
Feb 26 11:37:34 ns2 named[8880]: received notify for zone 'yourdomain.com'
Feb 26 11:37:34 ns2 named[8880]: received notify for zone 'yourotherdomain.com'

2007
02.19

Goals:
Add 2 new physical hard drives: /dev/hdc and /dev/hdd
Create RAID1 mirror /dev/md6
Automatically mount new partition in /raid

1. fdisk one of the newly added hard drives:
fdisk /dev/hdc
n, p, 1, <enter>, <enter>
t, fd
w

2. dump new partition table to the other disk:
sfdisk -d /dev/hdc | sfdisk /dev/hdd

3. create new RAID1 set/device:
mdadm --create /dev/md6 --level=1 --raid-disks=2 /dev/hdc1 /dev/hdd1

4. format the newly created array:
mkfs.ext3 /dev/md6

5. create mount point for new array:
mkdir /raid

6. append new mount point to /etc/fstab:
echo "/dev/md6 /raid ext3 defaults 0 0" >> /etc/fstab

7. mount:
mount -a

8. reboot if you’re paranoid.