1. Partitionierung:

Swap = Ram * 1,3 hier also 41,6 GB aufgerundet = 45GB

 

## ===================================================

##  Hetzner Online AG – installimage – standardconfig.

## ===================================================

## ====================

##  HARD DISK DRIVE(S):

## ====================

# Onboard: TOSHIBA DT01ACA300

DRIVE1 /dev/sda

# Onboard: TOSHIBA DT01ACA300

DRIVE2 /dev/sdb

## ===============

##  SOFTWARE RAID:

## ===============

## activate software RAID?  < 0 | 1 >

SWRAID 1

## Choose the level for the software RAID < 0 | 1 | 10 >

SWRAIDLEVEL 1

## ============

##  BOOTLOADER:

## ============

## Do not change. This image does not include or support lilo (grub only)!:

BOOTLOADER grub

## ==========

##  HOSTNAME:

## ==========

## which hostname should be set?

##.

HOSTNAME zwilla-hetzner

## ==========================

##  PARTITIONS / FILESYSTEMS:

## ==========================

## define your partitions and filesystems like this:

##

## PART  <mountpoint/lvm>  <filesystem/VG>  <size in MB>

##

## * <mountpoint/lvm> mountpoint for this filesystem  *OR*  keyword ‘lvm’

##                    to use this PART as volume group (VG) for LVM

## * <filesystem/VG>  can be ext2, ext3, reiserfs, xfs, swap  *OR*  name

##                    of the LVM volume group (VG), if this PART is a VG

## * <size>           you can use the keyword ‘all’ to assign all the

##                    remaining space of the drive to the *last* partition.

##                    you can use M/G/T for unit specification in MIB/GIB/TIB

##

## notes:

##   – extended partitions are created automatically

##   – ‘/boot’ cannot be on a xfs filesystem!

##   – ‘/boot’ cannot be on LVM!

##   – when using software RAID 0, you need a ‘/boot’ partition

##

## example without LVM (default):

## -> 4GB   swapspace

## -> 512MB /boot

## -> 10GB  /

## -> 5GB   /tmp

## -> all the rest to /home

#PART swap   swap      4096

#PART /boot  ext2       512

#PART /      reiserfs 10240

#PART /tmp   xfs       5120

#PART /home  ext3       all

#

##

## to activate LVM, you have to define volume groups and logical volumes

##

## example with LVM:

#

## normal filesystems and volume group definitions:

## -> 512MB boot  (not on lvm)

## -> all the rest for LVM VG ‘vg0’

#PART /boot  ext3     512M

#PART lvm    vg0       all

#

## logical volume definitions:

#LV <VG> <name> <mount> <filesystem> <size>

#

#LV vg0   root   /        ext4         10G

#LV vg0   swap   swap     swap          4G

#LV vg0   tmp    /tmp     reiserfs      5G

#LV vg0   home   /home    xfs          20G

#

#

## your system has the following devices:

#

# Disk /dev/sda: 3000 GB (=> 2794 GiB) doesn’t contain a valid partition table

# Disk /dev/sdb: 3000 GB (=> 2794 GiB) doesn’t contain a valid partition table

#

## Based on your disks and which RAID level you will choose you have

## the following free space to allocate (in GiB):

# RAID  0: ~5588

# RAID  1: ~2794

#

PART swap swap 16G

PART /boot ext3 512M

PART / ext4 1024G

PART /home ext4 all

## ========================

## ========================

##  OPERATING SYSTEM IMAGE:

## ========================

## full path to the operating system image

##   supported image sources:  local dir,  ftp,  http,  nfs

##   supported image types: tar, tar.gz, tar.bz, tar.bz2, tar.xz, tgz, tbz, txz

## examples:

#

# local: /path/to/image/filename.tar.gz

# ftp:   ftp://<user>:<password>@hostname/path/to/image/filename.tar.bz2

# http:  http://<user>:<password>@hostname/path/to/image/filename.tbz

# https: https://<user>:<password>@hostname/path/to/image/filename.tbz

# nfs:   hostname:/path/to/image/filename.tgz

#

# for validation of the image, place the detached gpg-signature

# and your public key in the same directory as your image file.

# naming examples:

#  signature:   filename.tar.bz2.sig

#  public key:  public-key.asc

IMAGE /root/.oldroot/nfs/install/../images/Ubuntu-1404-trusty-64-minimal.tar.gz


 

Hier ein paar Vorschläge zur Partition der Festplatten:

Basis sind eine 3TB HDD in einem Raid1 System

## normal filesystems and volume group definitions:

## -> 512MB boot  (not on lvm)

## -> all the rest for LVM VG ‘vg0’

PART /boot  ext3     1G

PART lvm    vg0      all

#

## logical volume definitions:

#LV <VG> <name> <mount> <filesystem> <size>

#

LV vg0   swap   swap               swap         45G
LV vg0   mysql  /mysql_data        ext4        200G
LV vg0   home   /home              ext4        200G
LV vg0   usr    /usr               ext4         50G
LV vg0   lib    /lib               ext4         10G
LV vg0   opt    /opt               ext4         10G
LV vg0   sbin   /sbin              ext4         10G
LV vg0   bin    /bin               ext4         10G
LV vg0   srv    /srv               ext4          1G
LV vg0   tmp    /tmp               ext4         45G
LV vg0   var    /var/log           ext4         50G
LV vg0   etc    /etc               ext4          1G
LV vg0   web    /var/www/html      ext4       1000G
LV vg0   fail2ban /etc/fail2ban    ext4          1G
LV vg0   root   /                  ext4         all

LogDatei – Firstlight Hetzner Server:

               Hetzner Online AG – installimage

  Your server will be installed now, this will take some minutes

             You can abort at any time with CTRL+C …

:  Reading configuration                           done 

:  Loading image file variables                    done 

:  Loading ubuntu specific functions               done 

1/17  :  Deleting partitions                             done 

2/17  :  Test partition size                             done 

3/17  :  Creating partitions and /etc/fstab              done 

4/17  :  Creating software RAID level 1                  done 

5/17  :  Creating LVM volumes                            done 

6/17  :  Formatting partitions

:    formatting /dev/md/0 with ext3                done 

:    formatting /dev/vg0/swap with swap            done 

:    formatting /dev/vg0/mysql with ext4           done 

:    formatting /dev/vg0/home with ext4            done 

:    formatting /dev/vg0/usr with ext4             done 

:    formatting /dev/vg0/lib with ext4             done 

:    formatting /dev/vg0/opt with ext4             done 

:    formatting /dev/vg0/sbin with ext4            done 

:    formatting /dev/vg0/bin with ext4             done 

:    formatting /dev/vg0/srv with ext4             done 

:    formatting /dev/vg0/tmp with ext4             done 

:    formatting /dev/vg0/var with ext4             done 

:    formatting /dev/vg0/etc with ext4             done 

:    formatting /dev/vg0/web with ext4             done 

:    formatting /dev/vg0/fail2ban with ext4        done 

:    formatting /dev/vg0/zwilla with ext4          done 

:    formatting /dev/vg0/root with ext4            done 

7/17  :  Mounting partitions                             done 

8/17  :  Sync time via ntp                               done 

:  Importing public key for image validation       done 

9/17  :  Validating image before starting extraction     done 

10/17  :  Extracting image (local)                        done 

11/17  :  Setting up network for eth0                     done 

12/17  :  Executing additional commands

:    Setting hostname                              done 

:    Generating new SSH keys                       done 

:    Generating mdadm config                       done 

:    Generating ramdisk                            done 

:    Generating ntp config                         done 

13/17  :  Setting up miscellaneous files                  done 

14/17  :  Configuring authentication

:    Setting root password                         done 

:    Enabling SSH root login with password         done

15/17  :  Installing bootloader grub                      done 

16/17  :  Running some ubuntu specific functions          done 

17/17  :  Clearing log files                              done 

                  INSTALLATION COMPLETE

   You can now reboot and log in to your new system with

  the same password as you logged in to the rescue system.