Installing core Debian
Easiest method is to write the iso image onto a cd and boot the machine from the cd. Once finished with basic configuration tasks, the installer will ask you to pick a mirror. The following command will help in deciding on the server with least latency.
netselect hostname1 hostname2 hostname3
Surprisingly, the server with least latency is in the US!
During pre-installation the installer will prompt for disk partitioning. Software RAID on Linux needs to be configured before Debian is installed. Follow the procedure here. The steps in brief for 2 hard disk RAID1 array are:
- Choose manual partitioning and create 3 partitions on each disk:
- Boot(1GB): Primary, beginning, Physical volume for RAID, bootable flag ON.
- Swap (2xRAM): Primary, beginning, Physical volume for RAID, bootable flag OFF.
-
Root(remainder): Primary, Beginning, Physical volume for RAID, bootable flag OFF.
-
Configure Software RAID -> Create 3 new MD (multi-disk) devices with 2 active and 0 spare devices per MD device using the partitions created in step 1. So select the 2 boot partitions on the two disks as the active devices in one of the RAID1 MD devices. Then select the two Swap partitions as the active devices in the next RAID1 MD device and so on.
-
Configure the MD RAID1 devices to be used appropriately:
- MD device 1 with 2 boot partitions: Use as EXT4 Journaling File System with Mount point /boot
- MD device 2 with 2 swap partitions: Use as Swap Area
- MD device 3 with 2 root partitions: Use as EXT4 Journaling File System with Mount point /root
Once the partitioning and software RAID 1 is configured continue with the Debian installation.
After installing the core system, the installer will give you the choice of installing a desktop environment, a web server, database, file server etc. You can choose not to install anything further. The bootloader will then be installed and the machine restarted to complete installation.