Server Software

Notice: The following tutorial is not entirely accurate. Users who are not comfortable using the command line interface can install a GUI or if necessary, install Microsoft Windows to setup their volumes and services.
We have chosenĀ  Linux because of itsĀ  stability, security and the vast amount of free programs & utilities at our disposal to build the optimal system: Hardware & software.

Setting up the OS: Ubuntu Server 7.10

  1. Download the latest version of Ubuntu Server Edition (7.10 as of writing)
  2. Burn the downloaded ISO disk image onto a CD.
  3. Place the CD in the server machine and boot to from your BIOS
  4. During setup, select LAMP, OpenSSH and Samba packages
  5. Restart Ubuntu after the first boot to finalize the initialization scripts
  6. sudo reboot

Partition Setup

  1. Partition your storage disks (not the same disk that holds your OS) using cfdisk with file system type: FD (Linux Raid Autodetect)
  2. Make sure your partitions show up when you list your devices, otherwise you may need to reboot

Software RAID 5 Setup [Detail]

  1. Install mdadm raid tool
  2. sudo apt-get install mdadm

  3. Create a raid 5 array called md0 with partition members sdb1, sdc1 and sdd1
  4. mdadm --create --level=5 --chunk=256 --verbose /dev/md0 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1

  5. Save the configuration
  6. mdadm --misc --detail --brief /dev/md0 > mdadm.config

  7. To check your settings use
  8. cat /proc/mdstat

LVM Setup [Detail]

  1. Install LVM2
  2. sudo apt-get install lvm2

  3. Install xfsprogs
  4. sudo apt-get install xfsprogs

  5. Define a physical volume from the raid array md0
  6. pvcreate /dev/md0

  7. Create a volume group called “arrays” with a physical extent of 1 GB
  8. vgcreate -s 1G arrays

  9. Create a logical volume from group “arrays” called “storage”
  10. lvcreate -l 465 arrays -n storage

  11. Edit the /etc/fstab (startup) file
  12. /dev/arrays/storage /share xfs defaults 0 0

Growing LVM Space

  1. Define a physical volume from a new raid array md1
  2. pvcreate /dev/md1

  3. Extend the volume group
  4. vgextend number of PE needs to be specified!!!

  5. Extend logical volume group
  6. lvextend

  7. Have the XFS filesystem use all physical capacity on the logical volume device
  8. xfs_growfs