Ubuntu Preseed Raid 1 with multiple partitions
Camilo Vieira
camilo.vieira at gmail.com
Mon Jun 3 21:13:30 UTC 2013
I fixed the problem with the following configuration:
d-i partman-md/device_remove_md boolean true
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/expert_recipe string \
multiraid :: \
10000 5000 20000 raid \
$primary{ } method{ raid } \
. \
200 512 500 raid \
$primary{ } method{ raid } \
. \
2000 512 4000 raid \
method{ raid } \
. \
10000 512 15000 raid \
method{ raid } \
. \
10000 10000 1000000000 raid \
method{ raid } \
.
d-i partman-auto-raid/recipe string \
1 2 0 ext4 / \
/dev/sda1#/dev/sdb1 \
. \
1 2 0 ext4 /boot \
/dev/sda2#/dev/sdb2 \
. \
1 2 0 swap - \
/dev/sda5#/dev/sdb5 \
. \
1 2 0 ext4 /backup \
/dev/sda6#/dev/sdb6 \
. \
1 2 0 ext4 /opt \
/dev/sda7#/dev/sdb7 \
.
d-i mdadm/boot_degraded boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
Thanks!
2013/6/3 Camilo Vieira <camilo.vieira at gmail.com>
> Hi Liam,
>
> Thanks for your collaboration.
>
> This is a server machine. I usually use the /boot to help me fix
> partitions issues when something wrong happens.
> The applications will be installed on /opt and I want to separate the
> partitions to avoid space problems.
>
>
>
> 2013/6/3 Liam Proven <lproven at gmail.com>
>
>> On 3 June 2013 21:28, Camilo Vieira <camilo.vieira at gmail.com> wrote:
>> > I intend to create the following RAID 1:
>> >
>> > Partition Size Filesystem
>> > / 20GB ext4
>> > /boot 500MB ext4
>> > swap 2GB swap
>> > /backup 10GB ext4
>> > /opt all free size ext4
>>
>> Why such a complex layout?
>>
>> E.g. why mirror swap? Indeed on a well-specced machine why use swap at
>> all?
>>
>> For servers, I use a mirror pair for / and a RAID5 for /home and
>> that's it. No need to split out /boot, /var, /opt and all that any
>> more, not when a terabyte costs the same as a good meal.
>>
>> I keep /home separate. I give about 16-32GB to / and the rest to
>> /home. Job done.
>>
>>
>> --
>> Liam Proven • Profile: http://lproven.livejournal.com/profile
>> Email: lproven at cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
>> MSN: lproven at hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
>> Tel: +44 20-8685-0498 • Cell: +44 7939-087884
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130603/c3980c99/attachment.html>
More information about the ubuntu-users
mailing list