Make sure /dev/myVolGrp/system and /dev/myVolGrp/swap are not in use: apt-get install sudo Preparing the host system: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEĮcho 1 > /proc/sys/net/ipv4/ip_forward on the hostsystem #download latest console only 64bit nixos installer Note: the disk layout diagram mentiones a tmp partition which** happended to be added later -)** using a virtual machine + vnc to boot the iso image Mkfs.ext4 -O dir_index -j -L system /dev/myVolGrp/system Volume group "myVolGrp" successfully created Physical volume "/dev/md0" successfully created Mdadm: Defaulting to version 1.2 metadata Your boot-loader understands md/v1.x metadata, or use Store '/boot' on this device please ensure that Mdadm: Note: this array has metadata at the start and Number Start End Size File system Name FlagsĢ 2097kB 3001GB 3001GB primary creating the new mdadm softraid device mdadm -create /dev/md0 -level=1 -raid-devices=2 /dev/sda2 /dev/sdb2 Update : also add the swap partition here (not done below!). Mdadm -zero-superblock /dev/sdb1 creating the partitions the installation first remove old partitions/mdadm setups uninstall: lvremove /dev/myvolgrp/home Update: : updated the image according to the swap comment from nbp. swap should not be in the lvm as it might degrade the performance. /dev/sda1 and** /dev/sdb1 are very small partitions (2Mib) they are used to store the grub2 boot stages**, see.this guide still uses BIOS to boot (no EFI/UEFI).this setup is pretty similar to using fdisk (MBR) partitions.there is no extra /boot partition (the system will directly boot from the lvm which is on top of the mdadm) this works since grub2.This guide uses concepts from the hetzner wiki OpenBSD installation guide. parts of it applies also to other distributions. as fdisk can’t be used to partition disks > 2tb i had to use gpt instead which was quite tricky until it was working. I recently upgraded my hetzner root server and therefore had a system with 2x3tb disks. Linux nixos packagemanager usability hetzner
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |