OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

You can also use preseeding to set up partitions on software RAID arrays. Supported are RAID levels 0, 1, 5, 6 and 10, creating degraded arrays and specifying spare devices.


Warning

This type of automated partitioning is easy to get wrong. It is also functionality that receives relatively little testing from the developers of debian-installer. The responsibility to get the various recipes right (so they make sense and don’t conflict) lies with the user. Check /var/log/syslog if you run into problems.


# The method should be set to "raid".

#d-i partman-auto/method string raid

# Specify the disks to be partitioned. They will all get the same layout,

# so this will only work if the disks are the same size.

#d-i partman-auto/disk string /dev/sda /dev/sdb


# Next you need to specify the physical partitions that will be used.

#d-i partman-auto/expert_recipe string \

# multiraid :: \

# 1000 5000 4000 raid \

# $primary{ } method{ raid } \

# . \

# 64 512 300% raid \

# method{ raid } \

# . \

# 500 10000 1000000000 raid \

# method{ raid } \

# .


# Last you need to specify how the previously defined partitions will be

# used in the RAID setup. Remember to use the correct partition numbers

# for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;

# devices are separated using "#".

# Parameters are:

# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \

# <devices> <sparedevices>


#d-i partman-auto-raid/recipe string \


#

1

2

0

ext3 /

\

#

/dev/sda1#/dev/sdb1

\

#

.

\

#

1

2

0

swap -

\

#

/dev/sda5#/dev/sdb5

\

#

.

\

#

0

2

0

ext3 /home

\

#

/dev/sda6#/dev/sdb6

\

#

.


# For additional information see the file partman-auto-raid-recipe.txt

# included in the ’debian-installer’ package or available from D-I source

# repository.


# This makes partman automatically partition without confirmation. 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


B.4.8.3. Controlling how partitions are mounted

Top OS Cloud Computing at OnWorks: