How to get benefits of LVM in linux?

  • Thread starter Brief-Wishbone
  • Start date
  • Tags
    Linux
In summary: I want to try it!In summary, LVM is a disk management system that is recommended for servers over partitioning. It has the advantage of being able to grow without downtime, which is useful for servers.
  • #1
Brief-Wishbone
12
0
TL;DR Summary
Logical Volume Management in Linux.
https://www.linuxtechi.com/how-to-create-lvm-partition-in-linux/
So far, I followed this tutorial and did the steps told there. But it doesn't make me realize the importance of LVMs. What can I do to realize the importance of LVMs compared to partitioning? What's that that partitioning can't do but LVMs can do? I want to observe that. Can you guide me towards any tutorials of such?
 
Technology news on Phys.org
  • #2
If you don't know what LVM does, you almost certainly don't want it.
 
  • Like
Likes Vanadium 50
  • #3
pbuk said:
If you don't know what LVM does, you almost certainly don't want it.
You might get it without realizing it since many Linux distros default to LVM in their installers. I actually don't think there's much difference for most users; LVM has been around a long time and that code in the Linux kernel is pretty mature. So my response would be "if you don't know what LVM does, you almost certainly don't need to even think about it".
 
  • #4
Brief-Wishbone said:
What can I do to realize the importance of LVMs compared to partitioning?
The main advantage for Linux distro maintainers is given at the start of the article:

LVM stands for Logical Volume Management, it is the recommended way to manage disk or storage on Linux systems specially for servers. One of the main advantages of LVM partition is that we can extend its size online without any downtime.

In other words, Linux servers benefit from LVM because of automatic resizing without downtime; resizing happens often enough on servers that that's a significant benefit. Ordinary individual Linux users don't really benefit from LVM per se, because your desktop system's disk volumes will probably never need to be resized (they'll already take up your entire disk and when you get low on disk space you'll be buying a new system anyway); but since Linux distros keep everything as standardized as possible, once LVM becomes the default for servers, it automatically becomes the default for desktops as well. Since there's no real downside to that for desktop users, that is what has ended up happening.
 
  • Like
Likes Wrichik Basu
  • #5
PeterDonis said:
"if you don't know what LVM does, you almost certainly don't need to even think about it".
A corollary to this would be "if you don't know what LVM does, you almost certainly don't want to try doing it by hand; let your distro's installer take care of it". The only reason for a desktop user to do it by hand would be learning and curiosity.
 
  • Like
Likes Wrichik Basu
  • #6
PeterDonis said:
The only reason for a desktop user to do it by hand would be learning and curiosity.
Excitement!
 

Related to How to get benefits of LVM in linux?

1. What is LVM in Linux?

Logical Volume Manager (LVM) is a software-based system built into the Linux kernel that allows users to manage disk space more flexibly by creating logical volumes from physical volumes. It provides features such as volume resizing, snapshots, and striping.

2. How can I benefit from using LVM in Linux?

By using LVM in Linux, you can easily resize volumes on the fly without having to unmount them, create snapshots for backups, and manage multiple disks as a single logical volume. This allows for better utilization of disk space and improved system flexibility.

3. How do I create a logical volume using LVM in Linux?

To create a logical volume using LVM in Linux, you first need to initialize the physical volumes, create a volume group, and then create logical volumes within that volume group. You can use commands like pvcreate, vgcreate, and lvcreate to accomplish these tasks.

4. Can I resize a logical volume in Linux using LVM?

Yes, you can resize a logical volume in Linux using LVM. You can use the lvresize command to increase or decrease the size of a logical volume, as long as there is available space in the volume group. Make sure to backup your data before resizing any volumes.

5. How do I take a snapshot of a logical volume in Linux using LVM?

To take a snapshot of a logical volume in Linux using LVM, you can use the lvcreate command with the --snapshot flag. This will create a read-only copy of the logical volume at a specific point in time, which can be used for backups or testing purposes without affecting the original volume.

Similar threads

  • Programming and Computer Science
Replies
1
Views
936
  • Programming and Computer Science
Replies
9
Views
2K
  • Programming and Computer Science
Replies
9
Views
2K
  • Programming and Computer Science
Replies
2
Views
4K
  • Computing and Technology
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
2K
  • Computing and Technology
Replies
21
Views
2K
Replies
6
Views
1K
  • Programming and Computer Science
Replies
2
Views
1K
Back
Top