How do I examine/ change LVM state on a pre-installed system?

So I simply obtained a wonderful little residence web server (not 100% a web server, it's additionally predestined to run a couple of GUI work, yet, primarily ) set up to my specifications, and also it featured Ubuntu 10.4 pre-installed by the individuals that place it with each other (that aren't Ubuntu professionals, yet do that for consumers that do not intend to acquire Windows ).

Currently, I would certainly such as to examine (and also probably change ) specifically just how they mounted it (possibly it would certainly be better to re-install from square one, yet first I would certainly such as to recognize specifically just how it's set up currently, anyhow ).

Specifically, just how do I examine if and also just how LVM is installed/configured? I would certainly favor a command-line strategy, yet GUIs are great also-- and also reminders to docs and also tutorials on the topic rate also.

0
2019-05-07 13:17:12
Source Share
Answers: 1

LVM is a rather intricate system and also calls for some expertise prior to you can totally start to evaluate the state. There are plenty of howtos existing around on the topic, yet below is a refresher course:

First of all, LVM is structured to make sure that you merge physical dividings or quantities in to teams that after that get divided to sensible quantities that are made use of by the os. Every one of these can be evaluated with their very own set of devices. Physical dividings (or quantities) can be evaluated and also changed with the pv * devices. Quantity teams are evaluated and also changed with the vg * devices and also ultimately the real quantities that are made use of as filesystems can be evaluated with lv * toolset.

Here is a good example on LVM structure

For evaluating the state of LVM you can make use of lvs, vgs or pvs commands. This will certainly permit you to see just how much room is made use of and also where that room is alloted.

You can modify the dimension of sensible quantities with the lvresize command, yet be really mindful when doing so. The LVM does not permit information to be saved beyond the sensible quantity like normal dividings. So if you reduce a dividing by chance and also make it smaller sized than the filesystem, you will certainly loose the information beyond the dividing. Additionally when you resize a dividing you require to resize the filesystem also, it is not instantly resized.

Ultimately, below is a complete LVM HOWTO covering the little bits I've omitted below.

LVM is actually effective and also valuable. As soon as you are familiar with it, you do not actually intend to make use of anything else.

0
2019-05-09 08:18:01
Source