Skip to content

Instantly share code, notes, and snippets.

View zorteran's full-sized avatar

Maciej Szymczyk zorteran

View GitHub Profile
@zorteran
zorteran / .gitlab-ci.yml
Created June 10, 2022 15:15 — forked from SHolzhauer/.gitlab-ci.yml
Python script to use in CI-CD to update custom detection rules in Elastic Stack
stages:
- test
- deploy
test_rules:
stage: test
image: python:3.8
script:
- python -V # Print out python version for debugging
- pip install virtualenv

Looking to create a Software RAID 1 setup for your 2-disk server on Ubuntu Server 20.04?

Screen Shot 2020-06-05 at 20 55 31

Let's start with the basics: the official guide by Ubuntu (https://ubuntu.com/server/docs/install/storage) is outdated/wrong. And as of March 2021 it's possible that there's a bug as well with how the bios_grub partitions are created when using multiple disks.

Now on to the solution:

  • Select "Custom storage layout" when you reach the storage configuration step of the installer.
  • If the disks have existing partitions, click on each disk under AVAILABLE DEVICES and then select REFORMAT. This will (temporarily) wipe out the partitions.