10
submitted 1 year ago by Crabhands@lemmy.ml to c/selfhost@lemmy.ml

Noob starting first server. Installed Ubuntu server, and opted for LVM. However, will that cause me problems on a headless server if I get a power outage and need to reboot? I think yes. Is there a solution, or should i remove LVM before i go too deep setting things up?

you are viewing a single comment's thread
view the rest of the comments
[-] drspod@lemmy.ml 4 points 1 year ago

will that cause me problems on a headless server if I get a power outage and need to reboot? I think yes

Maybe I'm missing something obvious, but what is the problem that you anticipate with LVM after a power failure?

[-] Crabhands@lemmy.ml 2 points 1 year ago

Password prompt on boot load. No monitor and keyboard plugged in, and im assuming i cant SSH until LVM password is entered.

[-] drspod@lemmy.ml 22 points 1 year ago

Ah, you're talking about LUKS. LVM is just the volume manager.

The standard way is to add an sshd (such as dropbear) to your initramfs so that you can ssh in and run commands (such as entering the root partition password) during system boot.

See:

https://unix.stackexchange.com/questions/5017/ssh-to-decrypt-encrypted-lvm-during-headless-server-boot

[-] krey@sh.itjust.works 2 points 1 year ago

servers for data centers often come with IPMI, which allows to remotely operate the server before boot.

you could also have only a data partition encrypted, so it boots the unencrypted OS and you have to SSH in and mount the data partition, entering your password.

[-] mark@social.cool110.xyz 2 points 1 year ago

@Crabhands @drspod There's no such thing as an LVM password, you're thinking of LUKS.

this post was submitted on 15 Sep 2023
10 points (100.0% liked)

Self Hosted - Self-hosting your services.

11289 readers
14 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS