Creation of RAID via preseed/kickstart Ubuntu server 10.04LTS

Max Deputter Max.Deputter at tradingscreen.com
Fri May 28 08:33:59 UTC 2010


Hi guys,

I'm trying to automatically create a complex file architecture when
installing Ubuntu 10.04 via netboot. I have tried with both preseed and
kickstart but it seems that neither support partitioning multiple disks in
an unattended fashion. This is what I'm trying to achieve:

/dev/sda should have two partitions raid.11 500MB and raid.12 with the
remaining space.

/dev/sdb should have two partitions raid.21 500MB and raid.22 with the
remaining space.

Then I create md0 with raid.11 and raid.21 and mount it as /boot (ext3)

I create md1 with raid.12 and raid.22 as a pv.0 volume. 

Root_vg is a volume group created on md1. On top of Root_vg, I create
logical volumes: / (4G) /var (4G) and swap (4G).

 

What kickstart does support is a pre-script. I was wondering if I could
destroy and partition the disks via some commands lines in the pre-script?

I tried doing a manual install and generating the preseed with
"debconf-get-selections --installer > file" but sadly enough it did not
record me clearing and creating partitions.

Any ideas on how I can achieve this? 

http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-options.html
describes what I am trying to achieve in section 1.4.1 but it applies to
CentOS and Anaconda and does not work on Ubuntu.

 

Cheers,

Max

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100528/ad51364d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4113 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100528/ad51364d/attachment.bin>


More information about the ubuntu-users mailing list