Skip to content

Instantly share code, notes, and snippets.

@dei79
Created July 5, 2012 13:19

Revisions

  1. dei79 created this gist Jul 5, 2012.
    145 changes: 145 additions & 0 deletions exs4-autosetup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,145 @@
    ## ===================================================
    ## Hetzner Online AG - installimage - standardconfig.
    ## ===================================================



    ## ====================
    ## HARD DISK DRIVE(S):
    ## ====================


    # ST3000DM001-9YN166
    DRIVE1 /dev/sda

    # ST3000DM001-9YN166
    DRIVE2 /dev/sdb



    ## ===============
    ## SOFTWARE RAID:
    ## ===============

    ## activate software RAID? < 0 | 1 >

    SWRAID 0

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

    SWRAIDLEVEL 1



    ## ============
    ## BOOTLOADER:
    ## ============


    ## do not change this for CentOS or Ubuntu 12.04 (grub only)!:

    BOOTLOADER grub


    ## ==========
    ## HOSTNAME:
    ## ==========

    ## which hostname should be set?
    ##.

    HOSTNAME CentOS-58-32-minimal



    ## ==========================
    ## 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 ext2 512M
    #PART lvm vg0 all
    #
    ## logical volume definitions:
    #LV <VG> <name> <mount> <filesystem> <size>
    #
    #LV vg0 root / ext3 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 doesn't contain a valid partition table (=> /dev/sda doesn't)
    # Disk /dev/sdb doesn't contain a valid partition table (=> /dev/sdb doesn't)
    # Disk /dev/sda: 3000.6 GB (=> 2861 GIB)
    # Disk /dev/sdb: 3000.6 GB (=> 2861 GIB)
    #
    ## 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 32G
    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, tgz, tbz
    ## 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

    IMAGE /root/.oldroot/nfs/install/../images/CentOS-58-32-minimal.tar.gz