Archive for Maggio, 2013

raid and lvm grub2 ubuntu

i tested for few days this.

The most simple way to install ubuntu server on raid1 and install grub2 is…

 

Attention. With LARGE hd use new gpt system

 

1) start ubuntu-desktop

parted /dev/sda; mklabel msdos
parted /dev/sdb; mklabel msdos

create 1 partition with type fd and flag boot checked

The same for disk sdb

reboot with server ubuntu

– create software raid with ubuntu interface

– create lvm volume (i create 800 m for boot and the rest for root) Most simple!!!

– continue installation

after reboot wait to sync disc cat /proc/mdstat

grub-install /dev/sda

grub-install /dev/sdb

fake raid grub2 ubuntu gpt

This is only a notepad

– Start from ubuntu desktop

– gdisk /dev/sda

-create first empty

    1. 1Mib free
    2. 4 MiB type ef02 -> bios boot
    3. 500MiB type ef00 -> efi system

choose fd00 if install RAID or 8E00 if you use LVM

sgdisk --replicate=/dev/target /dev/source
and
sgdisk -G /dev/target

install ubuntu server

(set raid with mdadm GUI or manual with partition 4)

restart from ubuntu desktop

 

restart