User Tools

Site Tools


build:debian

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 [2009/05/14 09:41]
167.206.189.6
build:debian [2010/11/13 14:29] (current)
SLUUG Administration
Line 2: Line 2:
  
 These instructions document the installation and configuration of Debian 4.0 on our servers. These instructions document the installation and configuration of Debian 4.0 on our servers.
 +
 +For installation and configuration of Debian 5.0 on RedHook, see [[build/​debian/​redhook | Debian/​RedHook]]
  
 ===== Installation ===== ===== Installation =====
Line 84: Line 86:
  
 ====Disk Array==== ====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: In order to gain flexibility with the EMC DAE, we will need to install some additional packages:
Line 93: Line 130:
 This will allow us to create LVMs which can be resized as needed out of the logical RAID-5 device on the Clariion. 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 227: Line 304:
  
 Adding this script to the ''/​etc/​cron.daily''​ directory will cause it to be run every day. By default, the daily cron scripts run at 6:25 AM. One nice thing about running them daily and sending them to a mailing list is that it's easy to see if the updates have or have not been applied by the next day. The more times the message is sent, the more likely someone will be to log in and run the updates. Adding this script to the ''/​etc/​cron.daily''​ directory will cause it to be run every day. By default, the daily cron scripts run at 6:25 AM. One nice thing about running them daily and sending them to a mailing list is that it's easy to see if the updates have or have not been applied by the next day. The more times the message is sent, the more likely someone will be to log in and run the updates.
 +
 +**NOTE**: We should probably replace this custom script with ''​cron-apt''​.
  
 ==== Send Out Alerts for Low Disk Space ==== ==== Send Out Alerts for Low Disk Space ====
build/debian.1242312077.txt.gz ยท Last modified: 2009/05/14 09:41 by 167.206.189.6