Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to create a RAID partitioning recipe in my preseed file such that the root, boot and swap partitions are RAIDed (using RAID 10 across 4 disks) but the remaining space on each of the disks is not RAIDed, as per the following diagram:

enter image description here

My recipes are as follows:

d-i partman-auto-raid/recipe string                     \
    10 4 0 ext3 /boot                                   \
          /dev/sda1#/dev/sdb1#/dev/sdc1#/dev/sdd1       \
    .                                                   \
    10 4 0 lvm -                                        \
          /dev/sda5#/dev/sdb5#/dev/sdc5#/dev/sdd5       \
    .

 

d-i partman-auto/expert_recipe string           \
boot-root ::                                    \
    100 512 256 raid                            \
        $lvmignore{ }                            \
        $primary{ }                          \
        method{ raid }                          \
    .                                           \
    900 5000 4000 raid                          \
        $lvmignore{ }                            \
        method{ raid }                          \
    .                                           \
    700 5000 4000 ext3                          \
        $defaultignore{ }                        \
        $lvmok{ }                                \
        method{ format }                        \
        format{ }                               \
        use_filesystem{ }                       \
        filesystem{ ext3 }                      \
        mountpoint{ / }                         \
    .                                           \
    64 512 300% linux-swap                      \
        $defaultignore{ }                        \
        $lvmok{ }                                \
        method{ swap }                          \
        format{ }                               \
    .                                           \
    100 1000 1000000000 ext3                    \
        $defaultignore{ }                        \
        $lvmok{ }                                \
        method{ format }                        \
        format{ }                               \
        use_filesystem{ }                       \
        filesystem{ ext3 }                      \
        mountpoint{ /home }                     \
    .

In its current state, /home is being RAIDed across all four drives. What can I do to split it up so that /home is not being shared, to resemble the /foo# partitions in the diagram whilst maintaining the RAID for boot, root and swap?

Any advice, comments or insight into anything I have so far would also be greatly appreciated, documentation for this preseed partitioning stuff is really lacking and I'm trying to decipher what I can from various sources across the net to no avail.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.