How to get benefits of LVM in linux?

  • Thread starter Thread starter Brief-Wishbone
  • Start date Start date
  • Tags Tags
    Linux
AI Thread Summary
The discussion centers on the importance and functionality of Logical Volume Management (LVM) in Linux systems, particularly in comparison to traditional partitioning. LVM is highlighted as a preferred method for managing disk storage, especially in server environments, due to its ability to resize volumes online without downtime, which is a significant advantage for server maintenance. For most individual users, however, the benefits of LVM may not be as pronounced, as typical desktop systems do not require frequent resizing of disk volumes. The conversation emphasizes that if users are unfamiliar with LVM, they likely do not need to engage with it directly and can rely on their Linux distribution's default settings. The recommendation is to let the installer handle LVM configurations unless users are motivated by a desire to learn more about it. Overall, while LVM offers advanced features for server management, its necessity for everyday desktop users is minimal.
Brief-Wishbone
Messages
12
Reaction score
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
If you don't know what LVM does, you almost certainly don't want it.
 
  • Like
Likes Vanadium 50
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".
 
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
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
PeterDonis said:
The only reason for a desktop user to do it by hand would be learning and curiosity.
Excitement!
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top