Partman Recipes

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(Small root, large /a all LVM, separate /boot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This page lists partitioning schemes we use, want to use, have partman recipes for, where they're used, etc.
 
This page lists partitioning schemes we use, want to use, have partman recipes for, where they're used, etc.
 +
 +
(back to the main [[PartMan]] page)
  
 
== Partitioning Schemes ==
 
== Partitioning Schemes ==
 
=== Small root, large /a with LVM ===
 
=== Small root, large /a with LVM ===
Partman recipe <code>es.cfg</code>
+
Partman recipe <code>[[Partman Recipes/es.cfg|es.cfg]]</code>
 +
 
 
Partition layout:
 
Partition layout:
 
* 10-40G for /
 
* 10-40G for /
Line 20: Line 23:
 
** configure all the disks in one RAID10 array
 
** configure all the disks in one RAID10 array
 
** configure as with 1 disk
 
** configure as with 1 disk
 +
 
=== Small root, large /a all LVM, separate /boot ===
 
=== Small root, large /a all LVM, separate /boot ===
Partman recipe <code>lvm-noraid-large.a.cfg.cfg</code>
+
Partman recipe <code>[[Partman Recipes/lvm-noraid-large.a.cfg|lvm-noraid-large.a.cfg]]</code>
  
 
Partition layout:
 
Partition layout:
 
* 300M for /boot
 
* 300M for /boot
 
* the rest for LVM with 3 volumes:
 
* the rest for LVM with 3 volumes:
** 10-40G for /
+
** 40G for /
 
** 8G for swap
 
** 8G for swap
 
** the rest for /a
 
** the rest for /a
Line 34: Line 38:
  
 
=== Large root, separate /tmp ===
 
=== Large root, separate /tmp ===
 +
Partman profile <code>[[Partman Recipes/mw.cfg|mw.cfg]]</code>
 +
 
Partition layout:
 
Partition layout:
 
* 70% of the disk for /
 
* 70% of the disk for /
Line 43: Line 49:
  
 
=== Large root, nothing else ===
 
=== Large root, nothing else ===
 +
* Partman profile is <code>[[Partman Recipes/raid1-1T-1partition.cfg|raid1-1T-1partition.cfg]] </code>
 +
 
Partition layout:
 
Partition layout:
 
* 99% of the disk for /
 
* 99% of the disk for /
Line 68: Line 76:
 
* Use ext3 for /
 
* Use ext3 for /
 
* Use xfs for /a
 
* Use xfs for /a
 
== Partman Profiles ==
 
* raid1-1T-1partition.cfg
 
2 disk system, each drive is 1 terabyte, 1 main raid1 partition, 2 swap partitions (one on each disk)
 
 
* mw.cfg
 
1 disk system, 8gig swap, 50gig /tmp, rest /
 

Latest revision as of 21:18, 2 November 2011

This page lists partitioning schemes we use, want to use, have partman recipes for, where they're used, etc.

(back to the main PartMan page)

Contents

[edit] Partitioning Schemes

[edit] Small root, large /a with LVM

Partman recipe es.cfg

Partition layout:

  • 10-40G for /
  • 8G for swap
  • the rest for /a with LVM

This layout is used on:

  • databases

Variants:

  • in hosts with 1 disk
    • no change.
  • in hosts with 2 disks
    • make / software RAID1
    • put a swap partition on both disks
    • make /a software RAID1, load LVM on top of that
  • in hosts with more than 2 disks (12, 48, etc.) and hardware RAID
    • configure all the disks in one RAID10 array
    • configure as with 1 disk

[edit] Small root, large /a all LVM, separate /boot

Partman recipe lvm-noraid-large.a.cfg

Partition layout:

  • 300M for /boot
  • the rest for LVM with 3 volumes:
    • 40G for /
    • 8G for swap
    • the rest for /a

This layout is used on:

Variants:

[edit] Large root, separate /tmp

Partman profile mw.cfg

Partition layout:

  • 70% of the disk for /
  • 8G swap
  • 20% for /tmp

This layout is used on:

  • mw hosts

Variants:

[edit] Large root, nothing else

Partition layout:

  • 99% of the disk for /
  • 8G swap

This layout is used on:

  • msfe hosts

Variants:

  • on hosts with 2 1T disks
    • RAID1 on /
    • one 4G swap partition on each disk

[edit] Small root, remaining raw disks

Partition layout:

  • 10-40G for /
  • 8G swap
  • everything else raw disks mounted in /mnt

This layout is used on:

  • swift storage bricks

Variants:

  • on ES hosts (12 disks, hardware RAID)
    • 2 disks RAID1 for /
    • 10 disks with 1 partition each formatted xfs mounted in /mnt/

[edit] Filesystems

  • Use ext3 for /
  • Use xfs for /a
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox