Skip to content

Commit

Permalink
chore(buildbot-nix-0): fix top comment about hardware state and remov…
Browse files Browse the repository at this point in the history
…e noisy comments
  • Loading branch information
steveej committed Oct 7, 2024
1 parent fa9d9a0 commit cbcbde2
Showing 1 changed file with 1 addition and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
...
}:
# Hetzner AX162-R #2497582

# NOTE(steveej): i manually switched it to legacy via the KVM console because i did not want to spend more time on getting EFI to work with software RAID
# Legacy/BIOS
# UEFI - factory
{
imports = [
inputs.disko.nixosModules.disko
Expand Down Expand Up @@ -63,124 +61,12 @@
efiSupport = true;
efiInstallAsRemovable = true;
devices = [ "nodev" ];
# mirroredBoots = [
# {
# devices = [
# # "nodev"
# # "/dev/nvme0n1"
# # "/dev/nvme1n1"
# ];
# path = "/boot";
# }
# ];
};
boot.loader.efi.canTouchEfiVariables = false;
boot.kernelPackages = pkgs.linuxPackages_latest;

systemd.network.networks."10-uplink".networkConfig.Address = config.passthru.primaryIpv6;

/*
# not working NixOS
root@rescue ~ # sgdisk --print /dev/nvme0n1
Disk /dev/nvme0n1: 3750748848 sectors, 1.7 TiB
Model: SAMSUNG MZQL21T9HCJR-00A07
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 04AC4FB8-8843-4508-B894-A42F91218231
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3750748814
Partitions will be aligned on 2048-sector boundaries
Total free space is 4717 sectors (2.3 MiB)
Number Start (sector) End (sector) Size Code Name
1 4096 2052095 1000.0 MiB EF00 disk-sdb-ESP
2 2052096 3750748159 1.7 TiB 8300 disk-sdb-rootfs
root@rescue ~ # sgdisk --print /dev/nvme1n1
Disk /dev/nvme1n1: 3750748848 sectors, 1.7 TiB
Model: SAMSUNG MZQL21T9HCJR-00A07
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): C6FD320F-FEB3-4E49-822A-BC690ADF0559
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3750748814
Partitions will be aligned on 2048-sector boundaries
Total free space is 4717 sectors (2.3 MiB)
Number Start (sector) End (sector) Size Code Name
1 4096 2052095 1000.0 MiB EF00 disk-sda-ESP
2 2052096 3750748159 1.7 TiB 8300 disk-sda-rootfs
root@rescue ~ # blkid
/dev/nvme0n1p1: UUID="38a0e387-1c9b-2095-cfc3-de9ef33f9f4d" UUID_SUB="75be7ee9-61c8-a320-f373-16a4ad55dab4" LABEL="any:esp" TYPE="linux_raid_member" PARTLABEL="disk-sdb-ESP" PARTUUID="925655a3-0b33-42d9-8c33-a39470f90209"
/dev/nvme0n1p2: UUID="e5d82e40-9461-6e2a-43dc-209e555ea44d" UUID_SUB="e70e3b91-672d-cb3f-9caa-6653089ef3b8" LABEL="any:rootfs" TYPE="linux_raid_member" PARTLABEL="disk-sdb-rootfs" PARTUUID="92685db5-e967-4d07-a767-f3fc8998f875"
/dev/md127: UUID="EBF0-E600" BLOCK_SIZE="512" TYPE="vfat"
/dev/loop0: UUID="da55567a-52c0-4ad7-b417-9d6f531d1273" BLOCK_SIZE="4096" TYPE="ext2"
/dev/md126: UUID="78beb252-b84f-4014-8d04-468cb714346b" UUID_SUB="3f598054-4252-453e-8c2a-93fe2cf9529d" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/nvme1n1p2: UUID="e5d82e40-9461-6e2a-43dc-209e555ea44d" UUID_SUB="5d3bd916-094a-a48b-490e-c378923c7a66" LABEL="any:rootfs" TYPE="linux_raid_member" PARTLABEL="disk-sda-rootfs" PARTUUID="4842c898-6320-41af-b564-e3a24ee05d11"
/dev/nvme1n1p1: UUID="38a0e387-1c9b-2095-cfc3-de9ef33f9f4d" UUID_SUB="8c48e626-6807-4d0f-e708-f24cce7d364c" LABEL="any:esp" TYPE="linux_raid_member" PARTLABEL="disk-sda-ESP" PARTUUID="31d25776-1596-4278-8e01-008add39a42d"
root@rescue ~ # parted /dev/nvme0n1
GNU Parted 3.5
Using /dev/nvme0n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SAMSUNG MZQL21T9HCJR-00A07 (nvme)
Disk /dev/nvme0n1: 1920GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2097kB 1051MB 1049MB disk-sdb-ESP boot, esp
2 1051MB 1920GB 1919GB disk-sdb-rootfs
# mount
/dev/md126 on /mnt/boot type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
*/

/*
working hetzner
root@Debian-bookworm-latest-amd64-base ~ # parted /dev/nvme0n1
GNU Parted 3.5
Using /dev/nvme0n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SAMSUNG MZQL21T9HCJR-00A07 (nvme)
Disk /dev/nvme0n1: 1920GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2097kB 271MB 268MB fat16 boot, esp
2 271MB 4565MB 4295MB raid
3 4565MB 5639MB 1074MB raid
4 5639MB 1920GB 1915GB raid
root@Debian-bookworm-latest-amd64-base ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 1.7T 0 disk
├─nvme0n1p1 259:1 0 256M 0 part
│ └─md0 9:0 0 255.9M 0 raid1 /boot/efi
├─nvme0n1p2 259:2 0 4G 0 part
│ └─md1 9:1 0 4G 0 raid1 [SWAP]
├─nvme0n1p3 259:3 0 1G 0 part
│ └─md2 9:2 0 1022M 0 raid1 /boot
└─nvme0n1p4 259:4 0 1.7T 0 part
└─md3 9:3 0 1.7T 0 raid1 /
nvme1n1 259:5 0 1.7T 0 disk
├─nvme1n1p1 259:6 0 256M 0 part
│ └─md0 9:0 0 255.9M 0 raid1 /boot/efi
├─nvme1n1p2 259:7 0 4G 0 part
│ └─md1 9:1 0 4G 0 raid1 [SWAP]
├─nvme1n1p3 259:8 0 1G 0 part
│ └─md2 9:2 0 1022M 0 raid1 /boot
└─nvme1n1p4 259:9 0 1.7T 0 part
└─md3 9:3 0 1.7T 0 raid1 /
*/

disko.devices =
let
disk = id: {
Expand Down

0 comments on commit cbcbde2

Please sign in to comment.