Changes between Version 22 and Version 23 of install_debian/server


Ignore:
Timestamp:
Jan 17, 2019, 9:34:40 PM (7 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • install_debian/server

    v22 v23  
    1919== Drive partioning/Disk setup ==
    2020
    21 Our servers are now coming with four hot swappable disks.
     21Our servers are now coming with four hot swappable disks, 2 SSD and 2 SATA.
    2222
    2323=== The big picture is ===
     24
    2425  * '''All partitions should be Primary'''
    25   * One approximately 512MB partition on all four disks: configured as RAID1, used as boot partition
    26   * The rest of the space on each disk: configured as RAID10, used as encrypted disk
     26
     27The SATA disks:
     28
     29  * One tiny partition on both disks uses for bios/grub data
     30  * A second approximately 512MB partition on both disks: configured as RAID1, used as boot partition
     31  * The rest of the space on each SATA disk: configured as RAID1, used as encrypted disk
    2732  * Encrypted disk: used as physical volume for LVM
    2833  * Create on volume group: vg_${server_name}0
    2934  * Create standard partitions as logical volume
    3035
    31 === Details - Using the Installer or manually via debootstrap ===
    32 
    33 Since we are using disks at are 2TB or bigger, we need to ensure that the partitions are created properly. Also, we leave 100MB at the end in case a replacement disk is a smidge smaller (thanks bug magnet!). Open a new ssh session and choose to switch to console.
    34 
    35 {{{
    36 parted /dev/sda -- mklabel gpt
    37 parted /dev/sda -- unit s mkpart biosboot 8192 16383
    38 parted /dev/sda -- set 1 bios_grub on
    39 parted /dev/sda -- unit s mkpart boot 16384 1015807
    40 parted /dev/sda -- set 2 raid on
    41 parted /dev/sda -- unit s mkpart pv 1015808 -196608
    42 parted /dev/sda -- set 3 raid on
     36The SSDs:
     37
     38 * One partition each, which are joined via RAID 1, used as encrypted disk
     39 * Encrypted disk: used as physical volume for LVM
     40 * Create on volume group: vg_${server_name}1
     41
     42=== Details - Install manually via debootstrap ===
     43
     44Note: usually the the SSD disks are sda and sdb and the SATA disks are sdc and sdd.
     45
     46{{{
     47parted /dev/sdc -- mklabel gpt
     48parted /dev/sdc -- unit s mkpart biosboot 8192 16383
     49parted /dev/sdc -- set 1 bios_grub on
     50parted /dev/sdc -- unit s mkpart boot 16384 1015807
     51parted /dev/sdc -- set 2 raid on
     52parted /dev/sdc -- unit s mkpart pv 1015808 -196608
     53parted /dev/sdc -- set 3 raid on
     54}}}
     55
     56{{{
     57parted /dev/sdc -- mklabel gpt
     58parted /dev/sdc -- unit s mkpart biosboot 8192 16383
     59parted /dev/sdc -- set 1 bios_grub on
     60parted /dev/sdc -- unit s mkpart boot 16384 1015807
     61parted /dev/sdc -- set 2 raid on
     62parted /dev/sdc -- unit s mkpart pv 1015808 -196608
     63parted /dev/sdc -- set 3 raid on
    4364}}}
    4465