Sed '/#ParallelDownloads/a ParallelDownloads = 5' -i /mnt/etc/nf Genfstab -U /mnt > /mnt/etc/fstab Tweak pacman # Optimize mirrorlist (replace `country` params with your nearest countries)Ĭurl -s '' | sed -e 's/#//' -e '/#/d' | rankmirrors -n 10 - > /mnt/etc/pacman.d/mirrorlist Pacstrap /mnt base linux-lts linux-firmware \ītrfs-progs xfsprogs vim man-db man-pages Generate fstab # Generate fstab based on current /mnt structure Mount -m /dev/sdc1 /mnt/mnt/backups Install Linux kernel # This is necessary for older Arch ISO image Mount -m /dev/mapper/vault /mnt/mnt/vault Mount -m -o log /dev/mapper/crypt /mnt/var/log Mount -m -o /dev/mapper/crypt /mnt/var/cache See Discard/TRIM support for solid state drives (SSD) - Dm-crypt - ArchWiki for the reasoning behind these cryptsetup flags. Mount /dev/mapper/crypt /mnt # Temporary mounted to create subvolumes # btrfs bvolume eateītrfs su cr # Home for Docker Compose stacksītrfs su set-default 256 /mnt # Required for remote unlocking Should the need for swap comes up later, consider swap file (no perf difference in general)Ĭryptsetup luksDump /dev/sdN # Dump LUKS2 headerĭmsetup table # Show flags for the currently opened devices # Also, backup the LUKS headers to safe storageĬryptsetup luksHeaderBackup /dev/sdN -header-backup-file /path/to/luks_header_sdN NOTE: Since my server has 128GB of physical memory, I would rather let OOM Killer do its job than creating a swap partition. You can confirm it by running sfdisk -d /dev/sda. This command will calculate optimal sector alignments correctly. # or # Write (random then zeroes) to the device (takes longer but more secure, suitable when selling a disk) shred -v -n 1 -z /dev/sdN Create partitions Setup Wipe a disk # Erase file-system magic strings (insecure but super fast, suitable when reusing a disk) Why XFS for analytical database storage? Refer to Production Notes - MongoDB Manual and Configure Scylla | Scylla Docs. /dev/sde1 - XFS mounted on /mnt/analytics./dev/sde - SSD for analytical database (intensive write-ops)./dev/sdc1 - Btrfs mounted on /mnt/backups./dev/sdb1 - LUKS partition contains Btrfs mounted on /mnt/vault.Docker stacks directory (nginx-proxy, Mail, Nextcloud, Minio, JupyterHub, Weights
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |