Partitioning disk and creating MD raid

Hi.

Can Foreman / Puppet take care of partitioning and MD raid creation?

Or this functionality can be done only on the kick-start level?

Thanks.

You could do this at either kickstart or Puppet level.

Puppet has a LVM type now –
http://github.com/reductivelabs/puppet-lvm – for RAID, you'd
probably want to find another recipe.

Kickstart is very solid at partitioning, so unless you need to
reconfigure it, I'd recommend setting it up there, and carving out a
space
for LVM.

Software RAID setup I think varies a bit between versions of
kickstart, but would be simplest to do there – and it's base OS
deployment
so there's nothing wrong with that.

For questions on that, I'd recommend searching
https://www.redhat.com/mailman/listinfo/kickstart-list
via http://www.google.com/cse/home?cx=016811804524159694721%3A1h7btspnxtu

··· On Wed, Mar 10, 2010 at 11:34 AM, SyRenity wrote: > Hi. > > Can Foreman / Puppet take care of partitioning and MD raid creation? > > Or this functionality can be done only on the kick-start level? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en. > >

Hi,

As foreman actually generates a kickstart for you, it will also allow you to
use different partition tables.

Under settings, you'll find Partition tables, where you can define generic
setup (basically the same stuff like you'll put in your kickstart).

you can also define a custom partition table per host (if that host has a
unique disk configuration).

the idea is that you store the disk layout information in foreman, so if you
ever want to reinstall that server to the same setup, you can.

cheers,
Ohad

··· On Thu, Mar 11, 2010 at 12:34 AM, SyRenity wrote:

Hi.

Can Foreman / Puppet take care of partitioning and MD raid creation?

Or this functionality can be done only on the kick-start level?

Thanks.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I forgot to mention that an undocumented feature is also to put in the
partition table a %pre section script which can generate the disk layout
dynamically

I'll make sure it will be official for 0.1-5

Ohad

··· On Thu, Mar 11, 2010 at 9:48 AM, Ohad Levy wrote:

Hi,

As foreman actually generates a kickstart for you, it will also allow you
to use different partition tables.

Under settings, you’ll find Partition tables, where you can define generic
setup (basically the same stuff like you’ll put in your kickstart).

you can also define a custom partition table per host (if that host has a
unique disk configuration).

the idea is that you store the disk layout information in foreman, so if
you ever want to reinstall that server to the same setup, you can.

cheers,
Ohad

On Thu, Mar 11, 2010 at 12:34 AM, SyRenity stas.oskin@gmail.com wrote:

Hi.

Can Foreman / Puppet take care of partitioning and MD raid creation?

Or this functionality can be done only on the kick-start level?

Thanks.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Hi.

You could do this at either kickstart or Puppet level.
>
> Puppet has a LVM type now –
> http://github.com/reductivelabs/puppet-lvm – for RAID, you'd
> probably want to find another recipe.
>
> Kickstart is very solid at partitioning, so unless you need to
> reconfigure it, I'd recommend setting it up there, and carving out a
> space
> for LVM.
>
> Software RAID setup I think varies a bit between versions of
> kickstart, but would be simplest to do there – and it's base OS
> deployment
> so there's nothing wrong with that.
>
> For questions on that, I'd recommend searching
> https://www.redhat.com/mailman/listinfo/kickstart-list
> via http://www.google.com/cse/home?cx=016811804524159694721%3A1h7btspnxtu
>

Thanks for clarification, just wanted to make sure.

Regards.

Hi.

Ohad
>
>
>> Hi,
>>
>> As foreman actually generates a kickstart for you, it will also allow you
>> to use different partition tables.
>>
>> Under settings, you'll find Partition tables, where you can define generic
>> setup (basically the same stuff like you'll put in your kickstart).
>>
>> you can also define a custom partition table per host (if that host has a
>> unique disk configuration).
>>
>> the idea is that you store the disk layout information in foreman, so if
>> you ever want to reinstall that server to the same setup, you can.
>>
>> cheers,
>> Ohad
>>
>>
>>
That exactly what I looked for! :slight_smile:
Does it allow me to specify MD drives?

··· > On Thu, Mar 11, 2010 at 9:48 AM, Ohad Levy wrote:

On Thu, Mar 11, 2010 at 4:22 AM, Ohad Levy ohadlevy@gmail.com wrote:

I forgot to mention that an undocumented feature is also to put in the
partition table a %pre section script which can generate the disk layout
dynamically

I’ll make sure it will be official for 0.1-5

Can you please elaborate more? Is this already present in the latest
release?

Thanks.

>
>>>
>> That exactly what I looked for! :slight_smile:
> Does it allow me to specify MD drives?
>
yes it does, just use any valid kickstart (or partman if you are using
debian/ubuntu) instructions in the disk partition settings.

>
>> I forgot to mention that an undocumented feature is also to put in the
>> partition table a %pre section script which can generate the disk layout
>> dynamically
>>
>> I'll make sure it will be official for 0.1-5
>>
>
> Can you please elaborate more? Is this already present in the latest
> release?
>
its available if you add one more line :slight_smile:
I'll fix it and update the ticket, you may watch it at
http://theforeman.org/issues/show/176
in any case, this refers only to when you want to have a dynamic allocation
of your partitions based on a script.

cheers,
Ohad
<http://theforeman.org/issues/show/176>

··· On Thu, Mar 11, 2010 at 9:15 PM, Stas Oskin wrote: > On Thu, Mar 11, 2010 at 4:22 AM, Ohad Levy wrote: