User Tools

Site Tools


build:debian:redhook

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build:debian:redhook [2010/11/13 14:31]
SLUUG Administration
build:debian:redhook [2010/11/13 15:15] (current)
SLUUG Administration
Line 2: Line 2:
  
 These instructions document the installation and configuration of Debian 5.0 on the RedHook server (possible replacement for BudLight). These instructions document the installation and configuration of Debian 5.0 on the RedHook server (possible replacement for BudLight).
- 
 ===== Installation ===== ===== Installation =====
  
-We downloaded and burned the Debian ​4.0r3 netinst CD image. We then booted each system with the CD-ROM in the drive. We hit **Enter** at the boot prompt to accept the default installation mode. We then proceeded with the installation as follows. This initial installation process will take about 30 minutes.+We downloaded and burned the Debian ​5.netinst CD image. We then booted each system with the CD-ROM in the drive. We hit **Enter** at the boot prompt to accept the default installation mode. We then proceeded with the installation as follows. This initial installation process will take about 30 minutes.
  
   - Select **English** as the language.   - Select **English** as the language.
Line 11: Line 10:
   - Select **American English** keymap.   - Select **American English** keymap.
   - Select **eth0** as Primary network interface.   - Select **eth0** as Primary network interface.
-  - DHCP will fail, so choose **Continue**,​ then **Configure ​network ​manually**. +  - Initial setup in The Bat Cave uses DHCP for network address ​setting
-    * IP address: 206.196.99.162 (for Bud), 206.196.99.163 (for BudLight) +    * Hostname: ​redhook
-    * Netmask: 255.255.255.240 +
-    * Gateway: 206.196.99.161 +
-    * Nameserver: 205.242.92.2 (for Hostirian/​Primary.Net) +
-    * Hostname: ​bud (or budlight)+
     * Domain name: sluug.org     * Domain name: sluug.org
   - Select **Manual** partitioning method.   - Select **Manual** partitioning method.
     * See below for details.     * See below for details.
-    * On 7/30/2007 re-install, chose to keep existing partition table. 
-      * Had to set mount points and FS types for each partition. 
-      * Kept data on ''/​home''​ and ''/​usr/​local'';​ reformatted the rest. 
-    * On 3/2/2008 re-install, chose to keep existing partition table. 
-      * Formatted all file systems. 
     * Write changes to disk when completed with partitioning.     * Write changes to disk when completed with partitioning.
   - Select **Central** time zone.   - Select **Central** time zone.
Line 43: Line 33:
   - The CD ejects at this point.   - The CD ejects at this point.
   - Hit **Continue** to reboot the system.   - Hit **Continue** to reboot the system.
- 
 ===== Partitioning ===== ===== Partitioning =====
  
-We had 36 GB to work with on each system. The systems ​came with 4 x 18 GB drives. With of the drives in a RAID 5 array, and 1 hot spare drive, this gave us 36 GB of usable storage.+The system came with 4 x 36 GB drives. With all four of the drives in a RAID 5 array, this gave us 108 GB of usable storage.
  
-After some debate, we decided upon the following partition setup. +We decided upon the following partition setup. 
-The table lists the partitions in the order they were created.+The table lists the partitions in the order they are listed by df.
  
 ^Mount Point^Size^Notes^ ^Mount Point^Size^Notes^
-|/boot     |  ​100 MB|Primary partition, bootable | +|/         ​|  2.5 GB|  
-|/         ​| ​   1 GB|Primary partition | +|/​home ​    ​| ​72.0 GB|  | 
-|swap      |    ​2 GB|do not mount +|/tmp      |894.6 MB 
-|/​home ​    ​| ​   ​5 ​GB|  | +|/usr      |  ​3.3 GB|  | 
-|/var      ​| ​  10 GB|Reiser ​+|/var      ​| ​10.2 GB|  |
-|/usr      ​|    4 GB|  ​+
-|/​usr/​local| ​   ​3 GB|  | +
-|/tmp      ​| ​   ​1 ​GB|  ​+
-|/​spare ​   |    10 GB|Left-over space |+
  
-All file systems were formatted as ext3, except for ''/​var''​.  +All file systems were formatted as ext3. 
-We formatted ''/​var''​ with reiserfs, because we expected to use Maildir format. +
-Maildir format uses a separate file for each email message,  +
-which ends up creating lots of small files within a single directory. +
-Reiserfs is much more efficient at storing small files and having a large +
-number of files within a directory. +
- +
-Note that the Compaq system and RAID utilities are on primary partition #3 (38 MB), so we can only have 2 other primary partitions.+
  
 Here's the result of running ''​df'':​ Here's the result of running ''​df'':​
-  Filesystem ​          ​1K-blocks ​     Used Available Use% Mounted on +  Filesystem ​              ​1K-blocks ​     Used Available Use% Mounted on 
-  /dev/ida/c0d0p2 ​        ​914108 ​    ​77048 ​   788318 ​  9% / +  ​tmpfs                       ​453140 ​      ​512 ​   452628 ​  ​0% ​/dev 
-  ​tmpfs                  1989212 ​        ​0 ​  ​1989212 ​  ​0% /dev/shm +  ​/dev/hda                    153936 ​   153936 ​        0 100% /cdrom 
-  /dev/ida/c0d0p1 ​         91763     ​15029 ​    ​71838 ​ 18% /boot +  ​/​dev/​mapper/​redhook-root ​  ​2951120 ​   155704 ​  ​2645504 ​  6% /target 
-  /dev/ida/c0d0p6 ​       4807072 ​    ​32960   ​4529928 ​  1% /home +  /dev/mapper/redhook-home ​ 79694712 ​   184216 ​ 75462216 ​  0% /target/home 
-  /dev/ida/c0d0p11 ​      ​9879016 ​    ​32860 ​  ​9344320 ​  ​1% /spare +  /dev/mapper/redhook-temp ​   983704 ​    ​17628    916108 ​  ​2% /target/tmp 
-  /dev/ida/c0d0p10 ​       914108 ​     8239    857127 ​  ​1% /tmp +  /dev/mapper/redhook-usr ​   3842104 ​   197584 ​  ​3449348 ​  ​5% /target/usr 
-  /dev/ida/c0d0p8 ​       3843160 ​   211724 ​  ​3436212 ​  6% /usr +  /dev/mapper/redhook-var ​  ​11534616 ​   213936 ​ 10734748 ​  ​2% /target/var 
-  ​/dev/ida/c0d0p9 ​       2883376 ​    ​32896 ​  ​2704012 ​  ​2% /usr/local +  /dev/mapper/redhook-root ​  ​2951120 ​   155704 ​  ​2645504 ​  6% /dev/.static/dev 
-  /dev/ida/​c0d0p7 ​       9767184 ​   178060 ​  ​9589124 ​  2% /var+  tmpfs                       ​453140 ​      ​512 ​   452628 ​  ​0% /target/dev 
 +  /dev/hda                    153936 ​   153936 ​        0 100% /target/​media/​cdrom0
  
-====Disk Array==== 
- 
-On budlight, we have recently (May 2009) added a Clariion DAE (http://​support.dell.com/​support/​edocs/​stor-sys/​dae/​fcdae/​fchardwr.pdf). The enclosure has an EMC label on it, but the documentation we have is for the same device rebranded and resold through Dell. We have it connected to budlight via a QLogic ql2100 HBA. The Clariion has 10 bays, each with a 36G FCAL drive. ​ 
- 
-To make budlight see the drives in the DAE, we needed to install the qlogic-firmware package. 
- 
-<code root> 
-# apt-get install firmware-qlogic 
-</​code>​ 
- 
-After a reboot, budlight saw /​dev/​sd[a-j] 
- 
-We have assembled the drives into a RAID-5 array with one hot spare. This should give us roughly 300G, which is a huge increase in available storage. 
- 
-The assembly command is: 
- 
-<code root> 
-# mdadm --create /dev/md0 --level=5 --raid-devices=9 --spare-devices=1 /​dev/​sd[a-j]1 
-</​code>​ 
- 
-/​proc/​mdstat will show the progress of building the array. This is what it looks like when it is fully built: 
- 
-<code root> 
-Personalities : [raid6] [raid5] [raid4] 
-md0 : active raid5 sdi1[8] sdj1[9](S) sdh1[7] sdg1[6] sdf1[5] sde1[4] sdd1[3] sdc1[2] sdb1[1] sda1[0] 
-      279302144 blocks level 5, 64k chunk, algorithm 2 [9/9] [UUUUUUUUU] 
- 
-unused devices: <​none>​ 
- 
-</​code>​ 
- 
-After /​proc/​mdstat shows that md0 is fully assembled, we'll update mdadm.conf: 
- 
-<code root> 
-# mdadm --detail --scan >> /​etc/​mdadm/​mdadm.conf 
-</​code>​ 
- 
-In order to gain flexibility with the EMC DAE, we will need to install some additional packages: 
- 
-<code root> 
-# apt-get install lvm2 dmsetup 
-</​code>​ 
- 
-This will allow us to create LVMs which can be resized as needed out of the logical RAID-5 device on the Clariion. 
- 
-Label /dev/md0 as a physical volume: 
- 
-<code root> 
-# pvcreate /dev/md0 
-</​code>​ 
- 
-Create the volume group: 
- 
-<code root> 
-# vgcreate sluug /dev/md0 
-</​code>​ 
- 
-Create a 40G logical volume in the sluug VG called '​rsnapshot':​ 
- 
-<code root> 
-# lvcreate -L 100G -n rsnapshot sluug 
-</​code>​ 
- 
-Format the rsnapshot volume and mount it: 
- 
-<code root> 
-# mke2fs -j /​dev/​mapper/​sluug-rsnapshot 
-# mkdir /rsnapshot 
-# mount /​dev/​mapper/​sluug-rsnapshot /rsnapshot 
-</​code>​ 
- 
-Revel in the newly available space: 
- 
-<code root> 
-df -h /​dev/​mapper/​sluug-rsnapshot 
-Filesystem ​           Size  Used Avail Use% Mounted on 
-/​dev/​mapper/​sluug-rsnapshot 
-                       ​40G ​ 177M   ​38G ​  1% /rsnapshot 
-</​code>​ 
- 
-And add the following to /etc/fstab: 
- 
-<code root> 
-/​dev/​mapper/​sluug-rsnapshot ​    /​rsnapshot ​     ext3    defaults 0 0 
-</​code>​ 
  
 ===== Package Selection ===== ===== Package Selection =====
Line 174: Line 68:
  
 This system is intended to be a server, and should never run any X programs. Any GUI-type administration should be done over HTTPS. So we did not install any X server or X client programs. This system is intended to be a server, and should never run any X programs. Any GUI-type administration should be done over HTTPS. So we did not install any X server or X client programs.
 +===== Networking =====
  
-===== Networking =====+[TODO: Adjust these values for RedHook when available]
  
 Make sure that the network settings are all correct. Review the settings in ''/​etc/​network/​interfaces''​. It should look something like this (for Bud at Primary.Net):​ Make sure that the network settings are all correct. Review the settings in ''/​etc/​network/​interfaces''​. It should look something like this (for Bud at Primary.Net):​
Line 202: Line 97:
 Ensure that you can connect to some Internet hosts to make sure that your configuration is correct. If you run into problems, try these troubleshooting steps: Ensure that you can connect to some Internet hosts to make sure that your configuration is correct. If you run into problems, try these troubleshooting steps:
   - See if you can ping another system on the same subnet.   - See if you can ping another system on the same subnet.
-    * NOTE: The firewalls ​on Bud and BudLight don't allow responding to ping, so don't try pinging ​them.+    * NOTE: The firewall ​on RedHook doesn't allow responding to ping, so don't try pinging ​it.
   - See if you can ping the default gateway.   - See if you can ping the default gateway.
   - See if you can ping the DNS server.   - See if you can ping the DNS server.
Line 208: Line 103:
   - See if you can look up a name (using ''​dig''​ or ''​nslookup''​) and get an IP address back.   - See if you can look up a name (using ''​dig''​ or ''​nslookup''​) and get an IP address back.
   - See if you can connect to an Internet service (using ''​ssh'',​ ''​wget'',​ or some other program).   - See if you can connect to an Internet service (using ''​ssh'',​ ''​wget'',​ or some other program).
- 
 ===== Hostname ===== ===== Hostname =====
 +
 +[TODO: Adjust this section for redhook]
  
 Ensure that the hostname is correct: Ensure that the hostname is correct:
Line 218: Line 114:
 If it is not, change it: If it is not, change it:
 <code rootshell>​ <code rootshell>​
-hostname ​bud+hostname ​redhook
 </​code>​ </​code>​
  
Line 392: Line 288:
  
 See the general [[todo | TODO]] page for more work to be done. See the general [[todo | TODO]] page for more work to be done.
- 
- 
 ===== Credits ===== ===== Credits =====
  
-James Pattie ​led the installation effort, ​2005-02-19. +Lee Lammert ​led the inital ​installation effort, ​2010-11-13, assisted by Jeff Muse and Don Ellis.
- +
-Lots of other folks helped in the decision-making and installation process. +
- +
-John House and Craig Buchek were the primary documentors. +
- +
-Craig Buchek and Jeff Muse led the installation effort on the production servers, 2005-07-30. +
- +
-Lee Lammert led the effort to move the systems to Primary Networks, 2006-01-16. +
- +
-Craig Buchek rebuilt Bud with Debian 4.0 on 2007-05-30. Installation took about 2 hours, 1 hour of which was correcting a networking issue due to incorrectly documented network settings.+
  
-Craig Buchek rebuilt Bud with Debian 4.0r3 on 2008-03-02. Installation of the OS took about 30 minutes, with good documentation.+Don Ellis was the primary documentor.
  
-See [[http://​www.howtoforge.com/​perfect_setup_debian_etch ​| this HowtoForge document]] for an excellent step-by-step guide to installing Debian ​4.0, with screenshots.+See [[http://​www.howtoforge.com/​perfect-server-debian-lenny-debian-5.0-with-bind-and-dovecot-ispconfig-3 ​| this HowtoForge document]] for an excellent step-by-step guide to installing Debian ​5.0, with screenshots.
build/debian/redhook.1289680313.txt.gz · Last modified: 2010/11/13 14:31 by SLUUG Administration