Skip to content

Commit

Permalink
chore: add documentation about new disks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevader authored Oct 23, 2024
1 parent 728f2fc commit 20052b4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/bare-metal.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,51 @@ an [article by Jeff Geerling][3] this can be adjusted.

https://github.com/dzomaya/NUTandRpi

## Install Longhorn Disks

https://www.ekervhen.xyz/posts/2021-02/troubleshooting-longhorn-and-dns-networking/


### New disk

find out device `lsblk -f`
on new devices `wipefs -a /dev/{{ var_disk }}`

```bash
$ sudo fdisk -l
$ sudo fdisk /dev/sdb

Command: g
Created a new GPT disklabel (GUID: xxxxx)

Command: n
Partition number: 1 (default)
First sector: (default)
Last sector: (default)
Command: w

$ sudo fdisk -l
```

Create Filesystem

```bash
$ sudo mkfs -t ext4 /dev/sdb1
```

Create mountpoint and fstab entry

```bash
$ sudo mkdir /var/lib/longhorn
$ sudo lsblk -o name,uuid
NAME UUID
sde1 9999-9999...

$ echo "UUID=0ec0cac5-6825-467b-acf7-da5505517b66 /var/lib/longhorn2 ext4 defaults 0 2" >> /etc/fstab
$ sudo mount /var/lib/longhorn2
```



## Setup Minio

Expand Down

0 comments on commit 20052b4

Please sign in to comment.