this post was submitted on 05 Jan 2026
11 points (92.3% liked)

Selfhosted

60831 readers
826 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
11
LVM question (lemmy.world)
submitted 6 months ago* (last edited 6 months ago) by Cenzorrll@lemmy.world to c/selfhosted@lemmy.world
 

Hi all, I'm playing around with LVMs to expand data storage and I'm looking at what would be required to transfer those drives to another device, all the steps I can find require exporting the volume group and then importing on the other device. But what would be the case if your boot drive were to fail, and you needed to move the drives without being able to export the volume group. Can you just do an import with a new device, or are there other steps required to do so?

Secondly, is there a benefit to creating an LVM volume with a btrfs filesystem vs just letting btrfs handle it?

you are viewing a single comment's thread
view the rest of the comments
[–] synestine@sh.itjust.works 1 points 6 months ago

If personal anecdote is good for anything, I've been using LVM on top of software RAID on Linux for close to 20 years now without ever losing a volume. The last time I lost data was on ReiserFS 3. Like I said, LVM does not protect against drive failure itself. That's why I use RAID underneath. I've got my OS disk to protect against failures like that. Also frequent and verified backups of my data files to make sure that is protected.

And yes, modern (still supported) distros can scan LVM PVs on boot without issue.

LVM Physical Volumes (PV) can be moved between Linux machines without issue (I've done that several times), it's not like hardware RAID where you have to have the same controller on both machines. Nothing I've done has ever required LVM metatata export/import.