Installing a RAID on “hardware” with fakeraid and Ubuntu
If you have motherboards with raid directly on the plate and want to install Linux, you probably need to fall back on software RAID … unless your controller is supported by the project fakeraid. This is not ‘a guide to replace the complete how-to but rather a reminder of the past 2 days to install one server supermicro raid with the “hardware” …
Therefore, our configuration was quite simple: 3 Disc 2 in raid 1 and a separate back up the historical data with our automatic script. we created a RAID from the bios screen text by choosing the first two records and making the raid sync (which took about one hour or so).
In these cases the problem stems from the fact that the installer of the distribution have to be aware of how to manage the controller to be able to install the operating system. Also, if in init RAM disk that is made from grub dmraid is not added to the module, the system, although installed will not start on the next reboot.
The distribution and ‘fell on a ubuntu server how to fakeraid of the page we read that the 8.10 alternate or server is already’ in the process of recognition of fake raid setup then, although support for hardy is 5 years instead of the ‘ dell’ intrepid year and a half, for convenience we have installed it. In fact everything at startup ‘and the system went smoothly, and’ installed without any major problems … The kernel has recognized the device as /dev/mapper/ddf1_root and the two partitions /dev/mapper/ddf1_root1 and /dev/mapper/ddf1_root2
I’ll Tell you to avoid wasting your time precious: Currently, the kernel that comes with Intrepid has a problem of restarting the operating system from the first reboot after installation: Although the form was present in the initrd and despite dmraid with grub and one thousand depopulation that with udev to force the dmraid we could not restart automatically to the operating system: every time we jumped in the busybox shell temporarily as photography [PHOTOS]. The strange thing is that if by hand, activating the raid with dmraid-ay command and then pressing Ctrl + D, voila here is share our ubuntu …
So how to solve? simply install the kernel 2.6.24-23-server hardy! no problem with the boot. So if you want a server a bit more ‘secure, with support for 5 years, I recommend you install Ubuntu Hardy 8.04 following the steps listed in the howto manual of fakeraid;
That said, we still …
In practice, the fakeraid works by installing the package dmraid. Once installed and loaded the module:
modprobe dm-RAID4-5
As I wrote before, the kernel sees the disks not only as a normal SATA disks /dev/sda and /dev/sdb but also as one particular device mapped into the directory /dev/mapper, while partitions are shown with a number at the bottom … our controller ddf1 follows the format and label the disk raid that we put in bios was root: why the name of the devices and ‘ddf1_root while the 2 partitions (swap and root) are called, respectively, and ddf1_root1 ddf1_root2
[Intrepid]
If we insert the disk ubuntu intrepid server, which starts in text mode
In recognition of the disc by pressing ctrl + alt + F2 and verify the correct presence of the devices
cd /dev/mapper ls
and control are ddf1_root
After we turned on the raid, we proceed with the normal graphical installation.
Under the “advanced” that they did not want to install grub (if you forget is not ‘a problem) ..
After the installation is finished reboot the operating system from live cd.
Finished loading, we do not properly assembled the raid because ‘the live and pointed activated the swap partition at the start. So the dmraid failed to properly install the raid.
in fact
sudo dmraid-r
shows the disks but no device in /dev/mapper
to unlock the situation:
sudo swapoff -a sudo swapon -s sudo dmraid -ay
Then proceed to the last part of the installation by mounting the partition system’s main operating target and then go to chroot and install the missing packages that also during the final.
sudo mkdir /target sudo mount /dev/mapper/ddf1_root1/target sudo mount - bind /dev/target/dev sudo mount-t proc proc /target/proc sudo mount-t sysfs sys /target/sys sudo cp /etc/resolv.conf/target/etc/resolv.conf sudo chroot /target apt-get update apt-get install dmraid apt-get install grub mkdir / boot / grub cp /usr/lib/grub/x86_64-pc/* /boot/grub or if you have installed the 32-bit cp / usr/lib/grub/i386-pc/* /boot/grub
install grub on the disk
grub - no-curses device (hd0) /dev/mapper/ddf1_root find /boot/grub/stage1 root (hd0, 0) setup (hd0) quit update-grub nano /boot/grub/menu.lst
and verify that CISIA
# groot=(hd0, 0)
save and restart with a
sudo reboot
The next time we start the system as mentioned earlier by the busybox shell
dmraid-ay exit
So download and install the package linux-image-2.6.24-23-server and put the new entry in /boot/grub/menu.lst default to automatically run the operating system …
[HARDY]
If instead we started with Hardy we should not use the desktop version, when loading, open a shell and install and activate the software to recognize the raid
1. you need to edit the file /etc/apt/sources.list to enable the universe repositories
then
sudo apt-get update sudo apt-get install dmraid
or from synaptic. Then load the module and mount the raid
sudo modprobe dm-RAID4-5 sudo dmraid-ay
After we turned on the raid, we proceed with the normal install … possibly following the guide for older versions of ubuntu:
https://help.ubuntu.com/community/FakeRaidHowto # Installing% 20on%% 20older 20releases


