Fedifriends Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
petsoi@discuss.tchncs.de to Linux@lemmy.ml · 1 year ago

A Beginner's Guide to LVM in Linux - tchncs

discuss.tchncs.de

external-link
message-square
13
link
fedilink
50
external-link

A Beginner's Guide to LVM in Linux - tchncs

discuss.tchncs.de

petsoi@discuss.tchncs.de to Linux@lemmy.ml · 1 year ago
message-square
13
link
fedilink
alert-triangle
You must log in or # to comment.
  • Avid Amoeba@lemmy.ca
    link
    fedilink
    arrow-up
    38
    ·
    1 year ago

    And here’s 3 not-ad-infested sources:

    • https://www.digitalocean.com/community/tutorials/an-introduction-to-lvm-concepts-terminology-and-operations
    • https://www.redhat.com/sysadmin/introduction-logical-volume-manager
    • https://wiki.archlinux.org/title/LVM
  • fl42v@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Are there like any use-cases for it other than “well, I can add another drive to extend partitions whenever I want”? 'Cuz that’s how it’s often described (if at all*), and it doesn’t really make much sense to me. Like, if I install on a laptop, it’ll most often have just one drive, so lvm seems unnecessary, and if I make some server-like setup with multiple drives, I’d go with some kind of raid with redundancy instead of just stitching the drives together (or mb yolo and raid 0).

    * If I remember correctly, arch wiki for example, had it used in the partitioning guide for dm-crypt without explaining the benefits against just luksformating /

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      It still has use with a single drive. Being able to resize any partitions you create is useful. Snapshots as well. Particularly if you’re using multiple file systems or file systems that don’t support some kind of subvolumes. You can run it on a md RAID if you want as well.

    • lazynooblet@lazysoci.al
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      LVM allows online resizing of volumes, and includes redundancy features such as snapshots and raid.

      It’s used a lot more in services than laptops.

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      and if I make some server-like setup with multiple drives, I’d go with some kind of raid with redundancy instead of just stitching the drives together (or mb yolo and raid 0).

      Server setups are usually virtual machines nowadays, with virtual disks (i.e. vmdk or qcow2 files in a storage pool). Stitching virtual disks together is valid in this case because redundancy is handled on another level, invisible to the vm.

  • Dataprolet@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    4
    ·
    1 year ago

    Just use Btrfs subvolumes.

    • umami_wasabi@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Btrfs subvol isn’t suited for all cases. For example I can’t do LUKS on top of Btrfs because its a filesystem, not block storage.

      • Dataprolet@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        2
        ·
        1 year ago

        You can’t do LUKS on LVM either, right? Only LVM on LUKS, just like Btrfs on LUKS.

        • umami_wasabi@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          You can. In fact I’m planning the setup for my laptop which uses this as part of the design.

          https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#LUKS_on_LVM

          • Dataprolet@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            1 year ago

            The more you know.

            • Avid Amoeba@lemmy.ca
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              I’ve been using it for a while. It allows for easier redundancy without mucking about with the encrypted volume.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Sure you can.

  • leanleft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    not to be confused with:
    https://en.wikipedia.org/wiki/LLVM

    • lemmy_user_838586@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      deleted by creator

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 513 users / day
  • 3.66K users / week
  • 7.5K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 56.3K subscribers
  • 7.83K Posts
  • 189K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org