Donate to A.R.T.

Advertisement

powered_by.png, 1 kB

Home arrow Projects arrow Atomic Offline OS Installer (AOOI)
Atomic Offline OS Installer (AOOI) Print E-mail
Written by scott   
Friday, 16 June 2006
Atomic Offline OS Installer
AOOI is a series of scripts I created to automate the reinstallation of a system with CentOS 4 or CentOS 5. In many cases hosting companies offer a limited selection of operating systems or modify them in such a way to cause additional support overhead through customized kernels or unusual partition layouts.

The script takes advantage of what is known as a Kickstart installation. Kickstarts consist of a configuration file passed to the installation media to establish all the default configuration settings. Network, partitioning, packages etc are all automatically set up, with no user interaction is required. Furthermore kickstart installations support network based installation of the OS media eliminating the need for a local CD or DVD to install the OS. The AOOI script is designed to install the kernel and initrd image from the CentOS installation CD on a running Linux system (any distribution), and add the installation kernel to your boot loader. If for some reason the system fails to boot into the installer correctly you will be able to return to your original OS.

Usage
For most people, the current AOOI, that installs CentOS 5:
wget -q -O - http://www.atomicorp.com/installers/aooi |sh

Legacy installer, this is purely a network install, installs CentOS 4
wget -q -O - http://3es.atomicrocketturtle.com/tests/grub-installer.sh |sh

Old Notes
The kickstart config file ks.cfg is set in the kernel boot lines for the non-1and1 users. This config is stored off site on 3es.atomicrocketturtle.com and the 1and1 installer stores this file in the installation partition (usually /dev/sdb2). The ks.cfg can be modified or the path changed for your own customization. Consult the Red Hat Linux administrators guide for more information on customizing the config for your system.

Comments
Subject: RAID issue
Written by smudgeit on 2007-06-05 11:15:08
This worked well on my 1and1 server thanks! 
I had one issue with the partitions being setup wrong. /dev/sdb2 and /dev/sda2 were both set as swap space and there was no RAID enabled for /dev/md0 (the root partition) On boot the server complained about some swap issues on sda2 
 
As a fix I then did 
 
removed the line that started 
 
/dev/sda2 swap 
 
from /etc/fstab 
 
formatted the drive. 
 
mk2fs -j /dev/sda2 
fdisk /dev/sda 


fd 
 
added it to RAID 
 
mdadm –add /dev/md0 /dev/sda2 
 
 
kept checking status of raid with 
 
cat /proc/mdstat 
 
 
Once was rebuilt I rebooted. 
 
Maybe I did somthing wrong with the script but if anyone has the same issues this is how I fixed my RAID. 
 
 

Only registered users can write comments.
Please login or register.

Powered by AkoComment 2.0.3!

Last Updated ( Monday, 15 October 2007 )
 
Next >
© 2008 atomicrocketturtle.com :: digital turtlist
Joomla! is Free Software released under the GNU/GPL License.
sheta@atomicrocketturtle.com
Fight Spam! Click Here!