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
- Download the latest version of Ubuntu Server Edition (7.10 as of writing)
- Burn the downloaded ISO disk image onto a CD.
- Place the CD in the server machine and boot to from your BIOS
- During setup, select LAMP, OpenSSH and Samba packages
- Restart Ubuntu after the first boot to finalize the initialization scripts
sudo reboot
Partition Setup
- Partition your storage disks (not the same disk that holds your OS) using cfdisk with file system type: FD (Linux Raid Autodetect)
- Make sure your partitions show up when you list your devices, otherwise you may need to reboot
Software RAID 5 Setup [Detail]
- Install mdadm raid tool
- Create a raid 5 array called md0 with partition members sdb1, sdc1 and sdd1
- Save the configuration
- To check your settings use
sudo apt-get install mdadm
mdadm --create --level=5 --chunk=256 --verbose /dev/md0 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm --misc --detail --brief /dev/md0 > mdadm.config
cat /proc/mdstat
LVM Setup [Detail]
- Install LVM2
- Install xfsprogs
- Define a physical volume from the raid array md0
- Create a volume group called “arrays” with a physical extent of 1 GB
- Create a logical volume from group “arrays” called “storage”
- Edit the /etc/fstab (startup) file
sudo apt-get install lvm2
sudo apt-get install xfsprogs
pvcreate /dev/md0
vgcreate -s 1G arrays
lvcreate -l 465 arrays -n storage
/dev/arrays/storage /share xfs defaults 0 0
Growing LVM Space
- Define a physical volume from a new raid array md1
- Extend the volume group
- Extend logical volume group
- Have the XFS filesystem use all physical capacity on the logical volume device
pvcreate /dev/md1
vgextend number of PE needs to be specified!!!
lvextend
xfs_growfs