computers:server:sage_config
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:server:sage_config [2008/10/16 02:09] – david | computers:server:sage_config [2010/02/18 17:10] (current) – david | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ====== Automatic Processes ====== | ====== Automatic Processes ====== | ||
| + | ===== Hourly Scripts ===== | ||
| - | ===== Raid Monitoring ===== | + | These are put into **/ |
| + | |||
| + | ==== Check NFS Mounts ==== | ||
| + | |||
| + | Using the same script as on archon (just changed the directory to the one I am jusing): | ||
| + | |||
| + | <code bash> | ||
| + | # | ||
| + | # | ||
| + | # check_nfs_mounts.sh | ||
| + | # quick check if we have our NFS directories mounted... if not... mount them! | ||
| + | # - dlr 2008/ | ||
| + | |||
| + | MOUNTEDTEST=`df | grep '/ | ||
| + | |||
| + | if [ $MOUNTEDTEST -ne 1 ]; then | ||
| + | mount / | ||
| + | fi | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Set Clock Hourly ==== | ||
| + | |||
| + | Set our clock hourly to nist's time server: | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | ===== Monitoring | ||
| + | |||
| + | ==== Power Disruption ==== | ||
| + | |||
| + | See the [[# | ||
| + | |||
| + | ==== Raid Monitoring | ||
| Using **mdadm**, I have the following running from **/ | Using **mdadm**, I have the following running from **/ | ||
| Line 19: | Line 56: | ||
| </ | </ | ||
| - | ===== Set Clock Hourly | + | ====== Daemon Configurations ====== |
| - | Set our clock hourly to nist's time server: | + | ===== apcupsd ===== |
| - | | + | |
| - | /usr/sbin/ | + | ** package and install it: < |
| + | cd /root/down | ||
| + | yum localinstall apcupsd-3.14.4-1.el5.x86_64.rpm | ||
| + | </code> | ||
| + | - Checked over the defaults, and they look perfect to me. The other machines in the house will use this daemon to signal whether they should turn off or not. | ||
| + | **NOTE:** I pulled the plug on this to test if they all at least saw the power going down. Now that I think about it, archon is going to need to go down first, so I'll need to modify the battery time left on the slave so it goes first. | ||
| - | ====== Daemon Configurations ====== | + | Test run by pulling the plug (I saw this same message on both slaves (archon and mythtv): |
| + | |||
| + | Thu Nov 13 07:21:22 EST 2008 Power failure. | ||
| + | Thu Nov 13 07:21:28 EST 2008 Running on UPS batteries. | ||
| + | Thu Nov 13 07:23:15 EST 2008 Mains returned. No longer on UPS batteries. | ||
| + | Thu Nov 13 07:23:15 EST 2008 Power is back. UPS running on mains. | ||
| ===== dhcpd ===== | ===== dhcpd ===== | ||
| Line 90: | Line 137: | ||
| } | } | ||
| + | </ | ||
| + | - Ran **setup** and checked the box next to **dhcpd**. | ||
| + | - Manually started it normally: | ||
| + | service dhcpd start | ||
| + | </ | ||
| + | |||
| + | ===== dovecot ===== | ||
| + | |||
| + | * Modified **/ | ||
| + | protocols = imaps | ||
| + | ssl_listen = *:993 | ||
| + | </ | ||
| + | * Generate our self signed certificate: | ||
| + | - Move the original one < | ||
| + | mv / | ||
| + | mv / | ||
| + | </ | ||
| + | - Edit our configuration here: < | ||
| + | jed / | ||
| + | </ | ||
| + | - Generate a new one: < | ||
| + | / | ||
| + | </ | ||
| + | - Restart the imap service: | ||
| + | service dovecot restart | ||
| </ | </ | ||
| Line 320: | Line 392: | ||
| ==== Raid5 Build ==== | ==== Raid5 Build ==== | ||
| + | === My Notes Take II === | ||
| + | |||
| + | I had the old Hitachi 500gb drive that used to be my MST3k repository die, so I think I'm going to go with a clean and unencrypted raid this time around (now that I know how to do it, I'd rather have the speed). | ||
| + | |||
| + | Creation Date: --- // | ||
| + | |||
| + | - Turned off the server, and swapped out the Hitachi with the new Seagate ES.2 500gb drive. | ||
| + | - Create a partition on the new drive (just take up the entire disk) with **fdisk** on each as the primary partition. | ||
| + | - Use **mdadm** to create the array < | ||
| + | mdadm --create /dev/md0 --chunk=64 --level=5 | ||
| + | </ | ||
| + | - Format the device as ext3: < | ||
| + | mkfs.ext3 -m 0 /dev/md0 -L /space # I am not leaving any reserve since this is a data drive only | ||
| + | </ | ||
| + | - Mount the raid < | ||
| + | mount /dev/md0 / | ||
| + | </ | ||
| === My Notes === | === My Notes === | ||
| Line 327: | Line 416: | ||
| A lot of this is coming directly from [[http:// | A lot of this is coming directly from [[http:// | ||
| - | - Installed the 4 Seagate drives in the removable cartridges, and the Samsung | + | - Installed the 4 Seagate drives in the removable cartridges, and the Hitachi |
| - Create a partition on each drive (just take up the entire disk) with **fdisk** on each as the primary partition. | - Create a partition on each drive (just take up the entire disk) with **fdisk** on each as the primary partition. | ||
| - Use **mdadm** to create the array < | - Use **mdadm** to create the array < | ||
| Line 432: | Line 521: | ||
| + | ===== gallery ===== | ||
| + | |||
| + | I wanted to install the newest Gallery BETA software to store photos and videos online. | ||
| + | |||
| + | * Page where I found HOWTO: [[http:// | ||
| + | * Photo Repository: | ||
| + | |||
| + | ==== Update PHP ==== | ||
| + | |||
| + | - Added the " | ||
| + | [c5-testing] | ||
| + | name=CentOS-5 Testing | ||
| + | baseurl=http:// | ||
| + | enabled=0 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=http:// | ||
| + | </ | ||
| + | - Update just PHP by enabling the repository temporarily: | ||
| + | yum --enablerepo=c5-testing update php | ||
| + | </ | ||
| + | - Restart the webserver once PHP is installed: | ||
| + | service httpd restart | ||
| + | </ | ||
| + | |||
| + | ==== Gallery 3 Beta 2 Install ==== | ||
| + | |||
| + | - Download the .zip file | ||
| + | - I made a virtual host to: [[http:// | ||
| + | - Modified the named configuration files and added **gallery.rabine.org** | ||
| + | - Added **/ | ||
| + | - Created a directory on the raid to store all the data | ||
| + | - Had to disable SELinux (probably a rule I could have used to allow it... but I'm being lazy) for apache to see the raid drive directory!? | ||
| ===== gcc ===== | ===== gcc ===== | ||
computers/server/sage_config.1224122954.txt.gz · Last modified: by david
