You are here: Foswiki>Computing Web>CobblerSetup>DesktopConfigs (revision 1)EditAttach

Partitioning

For systems with a single disk, layout is:

Partition Mount point Size
sda1 /boot 100M
sda2 swap 4G
sda3 / 15GB
sda4 /scratch rest of disk

Swap should be a 4GB on new installs. For quad core systems use 2GB per core. Use labels for mounting filesystems including swap.

For systems with 2 drives, can create a RAID1 /work area, scratch dir will be made within work (symlink):

Partition RAID device Mount point Size
sda1,sdb1 md0 /boot 100M
sda2,sdb2 none swap 2G
sda3,sdb3 md1 / 15GB
sda4,sdb4 md2 /work rest of disk

This system ends up with 2 swap partitions. Don't know about using labels with basic Linux software RAID, so just using device names (swap still using labels).

LVM is avoided on desktop systems --- left to servers and such where filesystem resizing is helpful.

Installs

For installs, the above partitioning is setup using fdisk in a %pre section.

# wipe and set partitions on sda
dd if=/dev/zero of=/dev/sda bs=512 count=40
fdisk /dev/sda << ENDFDISK
n
p
1

+100M
t
fd
n
p
2

+2000M
t
2
82
n
p
3

+15000M
t
3
fd
n
p
4


p
t
4
fd
w
ENDFDISK

The partitioning info looks like:

part raid.01 --onpart sda1
part raid.02 --onpart sda3
part raid.03 --onpart sda4
part raid.11 --onpart sdb1
part raid.12 --onpart sdb3
part raid.13 --onpart sdb4
part /boot --label=boot --fstype ext3 --level=1 --device=md0 raid.01 raid.11
part / --label=slash --fstype ext3 --level=1 --device=md1 raid.02 raid.12
part /mnt/exports/work --label=work --fstype ext3 --level=1 --device=md2 raid.03 raid.13
part swap --onpart sda2
part swap --onpart sdb2

Reinstalls

Note, the reinstall is risky if you wish to preserve data! Just picking the wrong install type from the grub menu will probably cause data loss...

For reinstalls, don't need the %pre section and the partitioning looks like:

part /boot --fstype ext3 --onpart sda1
part swap --onpart sda2
part / --fstype ext3 --onpart sda3
part /scratch --fstype ext3 --onpart sda4 --noformat

-- TomRockwell - 28 Apr 2009
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 28 Apr 2009, TomRockwell
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback