dcsimg

Storage Management with an LVM GUI

Have you been looking for open-source storage management tools that are easy to use and provide a graphical representation of your storage. Alas, there are no comprehensive tools but there are graphical tools that you can pair with command-line wizardry, particularly LVM.

I’ve been on a quest for good open-source storage management tools. These tools, preferably a single tool, would allow me to create, control, and monitor all aspects of storage whether it be iSCSI based storage, NAS, local file systems, users, etc. It would be independent of the hardware yet have the ability to interact with many types of hardware such as RAID cards (the ones supported in the kernel) and networking devices (focused on storage networking). Alas, such a beast does not exist (at least that I can find) and the question of whether such a beast should exist is open for debate. However, in the absence of such a tool I decided to look for what tools are available. The one that I kept coming back to was LVM (Logical Volume Management).

LVM is a wonderful way of managing your storage devices. It abstracts storage into several layers that can be controlled and manipulated to give you the control you need over your storage devices. There are LVM command line tools that allow you to take physical devices and create groups or pools of virtual storage devices. Then you can divide these groups into virtual partitions that can then be used for file systems or for other uses (i.e. raw devices). The steps are not that difficult, but it is easy to get confused and when you are dealing with data, getting confused and making mistakes is not a good thing. So I decided to look for a GUI interface to LVM so I could get a reasonable representation of the state of the storage.

In a previous article I mentioned three GUI tools that interact with LVM. The one that came up consistently in my searching was system-config-lvm that comes with Redhat or it’s repackaged versions (i.e. CentOS, Scientific Linux). In this article I want to walk through using this tool to create and manipulate storage to illustrate how easy it is to use. While I wouldn’t classify myself as a person dependent upon a GUI tool for system administration, when everything is working well GUI’s do make life a little easier.

Quick review of LVM

LVM comes with virtually every distribution of Linux and allows you to abstract various pieces of physical storage into virtual groups that can be carved into chunks that form the basis of file systems (virtual partitions if you like). It also allows you to combine physical partitions into groups, resize these groups (grow or shrink), and manage these groups. To effectively use LVM there are some fundamental concepts in LVM that you need to understand (and master). Figure 1 below illustrates these concepts.

LVM_original_description.png
Figure 1 – LVM Concepts

At the bottom are the physical drives – in this case there are two drives, /dev/sdb and /dev/sdc. Each of these drives has two partitions. These two pieces form the “physical” basis of LVM. LVM itself sits above the physical devices and is shown in the light yellow area.

The physical partitions map to Physical Volumes (PV’s). So in Figure 1 the physical volumes are /dev/sdb1, /dev/sdb2, /dev/sdc1, and /dev/sdc2. From the Physical Volumes (PV’s), a Volume Group (VG) is created. A VG can use all or just one of the PV’s. In the example in Figure 1, the four PV’s are used in a single VG, primary_vg (note: the VG name actually ends in “_vg” to make it more noticeable). After creating one or more VG’s (Volume Groups), a Logical Volume (LV) is created. You have to have at least one Logical Volume (LV) per Volume Group (VG). These LV’s are used for creating file systems. In Figure 1, the VG is broken into two LV’s: /dev/primary_vg/home_lv and /dev/primary_vg/data_lv (again note the use of the “_lv” at the end of the name to better indicate a LV). Then on top of these these two PV’s are the file systems. For /dev/primary_vg/home_lv an ext3 file system is created and mounted as /home. For /dev/primary_vg/data_lv an xfs file system is created and mounted as /data.

In a shorter form, Physical Volumes (PV’s) are on the bottom of the stack and are really partitions on a disk (hence the use of the term “physical”). Above the PV’s is one or more Volume Groups (VG). Then you partition the VG into Logical Volumes (LV’s). These LV’s are used for creating file systems. If you like here are the steps or layers to LVM:

Disk Partition -> Physical Volumes (PV) -> Volume Group (VG) -> Logical Volume (LV) -> File System

If you’ve never used LVM before you may ask what have taken a two step process “Partition -> File System” and added three steps or layers. These additional steps or abstractions allow you to manipulate the storage (more on that in a bit).

Perhaps not the best way to think about LVM but one concept that can be useful is to think of the Volume Group (VG) as the “virtual hard drive”. It gathers real partitions (PV’s) into a virtual drive (the VG). Then you partition the “virtual drive” into Logical Volumes (LV’s). You can think of the LV’s as “virtual partitions.” Then you can create file systems or whatever else you need to do with the LV’s as though they are real physical devices.

Some advantages of LVM are:

  • You can “aggregate” physical volumes (PV’s) into a single volume
  • You can add or even remove PV’s from a Volume Group (VG) allowing you to resize it
  • You can resize Logical Volumes (LV’s) if there is enough storage in the underlying VG
  • If you increase an LV, you can possibly increase the size of a file system (if the file system allows this). This can typically be done without the loss of data.

Using the old approach of “Disk Partition -> File System” doesn’t give you this flexibility or control you need over your storage. When you are dealing with a large number of users with a large number of disks in a server, or even having to add storage to your desktop, having control and flexibility over your storage is very, very convenient.

If you read the previous article it walks through an example illustrating how to create PV’s, VG’s, and LV’s, and ultimately a file system. It is important to know the LVM command line commands in a general sense in case you need to use without a GUI (perhaps using only a remote console). Memorizing the various options is debatable (I’ve got a funny story about memorizing the myriad options for esoteric commands) but you should at least have some knowledge of the commands – perhaps even a cheat sheet or a log of the commands you used to arrive at the current configuration.

However, with LVM it is easy to make a mistake and lose data. So having a graphical representation of the steps in LVM can make things a lot easier. When I searched for GUI tools for LVM, the one that quickly rose to the top was system-config-lvm from Redhat.

Next: The Walkthru

Comments on "Storage Management with an LVM GUI"

999 An important part of each female wardrobe are her footwear.
discount red bottoms

999 A vital half of every female wardrobe are her shoes.
authentic louis vuitton on sale

999 A necessary element of each female wardrobe are her footwear.
christian louboutin replica shoes

999 An essential portion of every woman wardrobe are her sneakers.
cheap soccer jerseys online

999 An important half of every woman wardrobe are her sneakers.
buy cheap louis vuitton bags

999 A vital part of every woman wardrobe are her shoes.
redskin jerseys from china

999 A necessary aspect of every girl wardrobe are her sneakers.
buy cheap ugg boots online

999 A necessary aspect of each lady wardrobe are her sneakers.
buy louis vuitton wallet

999 An essential part of every lady wardrobe are her footwear.
discount uggs

999 An essential portion of each girl wardrobe are her shoes.
wholesale nfl jerseys china

999 An essential section of every female wardrobe are her shoes.
custom nfl football jerseys cheap

999 A necessary part of each woman wardrobe are her shoes.
fake louis vuitton purses

999 A necessary portion of each female wardrobe are her sneakers.
cheap custom nfl jerseys

999 A necessary piece of every girl wardrobe are her shoes.
genuine ugg boots uk sale

999 An important section of each woman wardrobe are her footwear.
ugg boots uk sale

999 An important element of each female wardrobe are her footwear.
christian louboutin shoes on sale

999 A vital piece of every female wardrobe are her sneakers.
replica louboutins for sale

999 A vital aspect of each girl wardrobe are her shoes.
discount uggs women

Yes! Finally someone writes about outlet.

T?? study found t?at ?pproximately 29% of t?e tweets slark
conversation. ‘ Beware ?f what y?u post ‘ you can destroy ?our reputation in onne 140-character post if yo?’re not careful.
You’ll have th? option ?f choosing betwe?n a Local Business ?r ?lace; Product oor Brand; Company, Institution
?r Organization; Arts, Entertainment, ?r Sports; ?r Other.

?lso visit mmy blog … Mr Cly’s 301 redirect

Greetings! Very helpful advice in this particular article!
It is the little changes that produce the most significant changes.

Thanks a lot for sharing!

If you’d like an almost endless supply of FREE books delivered directly to your iBooks, Kindle, or Nook app – PDF EBOOK FREE DOWNLOAD – or almost any other eBook reader app — then you’ll want to install eBook Search right now.

many are awesome eso gold! these are generally actually slice at this point nice i want these products. definitley worth their expense!

Please let me know if you’re looking for a writer for your site.
You have some really good posts and I feel I would be a good asset.
If you ever want to take some of the load off, I’d really
like to write some content for your blog in exchange for a link back to mine.
Please shoot me an email if interested. Many thanks!

Flip the card to the correct so it is encounter up. If you see the
Lovers card, also a Significant Arcana card, you may be getting
married quickly. In the Waite deck, the Emperor appears
stern and darkish.

my homepage; chicago psychic mediums

great site love the content

Very descriptive post, I loved that bit. Will there be a
part 2?

Hello my family member! I want to say that this article is awesome,
great written and include almost all important infos.

I would like to look more posts like this .

The future of Google Glass is bright, and it can only
improve from here. Gradient lenses are often a
very popular choice, the colors of the lenses doesn’t impact the
UV resistance, just ensure that they offer 100 percent UV protection. No wonder why Mariah Carey, Katy Perry, and Kim Kardashian love their Prada sunnies.

I all the time used to study paragraph in news papers but now as I am
a user of internet therefore from now I am using net for posts, thanks to web.

? got this web pa? from my fri?nd whho told me on the topic of th?s website ?ndd at tthe moment this tiime I
?m visiting this website andd r?ading very ?nformative content at th?s place.

Also visit mm? we?site; league of angels free download

Throughout each level the player will collect gold which they can use to purchase items and
upgrades in towns. Bob, give me a boost, I see a lot of aluminum cans in this dumpster —
2. He is probably the nicest male cast member in the history of the show and one of the
most loved.

Look at my web page – shovel knight kickstarter (http://www.silvamoscow.com/info.php?fromdate=1)

This would of course depend on how old the children are.
These are for types of games that require guessing
or logic to figure out how the game parts are completed.
You should not only stick with one supplier because there will
be other suppliers who might be selling the same video games but
with much cheaper rates and probably longer credit
terms.

Feel free to surf to my web site; transport tycoon mobile android

It ought to possess high-compression rate and most importantly should be user-friendly.

* Avoid the temptation to offer your opinion or advice. The study found that “kids who played a violent video game showed an increase in emotional arousal – and a corresponding decrease of activity in the brain areas involved in self-control, inhibition and attention”
(Kalnig).

Here is my web-site: transport tycoon online

All addictions are ways of avoiding the feelings that you believe you can’t manage.
* Avoid the temptation to offer your opinion or advice. Just like choosing
subjects at school, they can choose the character they play with and then they analyze his weakness and advantages.

Also visit my website :: transport tycoon android chomikuj

Existing Lender: In case you would like one of people home mortgages with low credit score, talk and
get involved touch with your current lender info concert mr willetts replied a week
later, telling mr smith: “the terms in the appointment that you simply proposed within your letter of 15 december 2010 are actually agreed by the chief secretary to the treasury.

Once the right unsecured guarantor loan is becoming obtained, the average person are not
expected to settle the loan prior for the arrival of
their next pay check winstar Concerts the slc insists around-repayments are refunded with interest,
though the onus is on borrowers to note they have got paid a lot
of and demand their money back.

If you which means that tend to get a fire-starters, we’ve got to first of all deal with the
particular heap within the stage when many of us arrange to build.
They may love to rock the boat and make waves, but
they are always willing to help put things right when they create real problems for people.
Can you not see that the whole thing is brought about through the craft of the devil.

My page: shovel bryan knight nfl

When you play, you are repeating the same body movements on an ongoing
basis. Unlike you, she doesn’t get her testosterone fill on murdering people all day.
There are about 10 years worth of previously-played games on the market for the PS2.

My web page … sell ps3 games online for cash (Themeparkwindows7.Blogspot.com)

If you cannot eyeball the slope then use two pegs at either end of
your planned and attach a string and measure the slope with a level and then use
the string as your guide to assure a correct slope.

Spider-Man barely had the strength to hold Green Goblin. Aquarius as the rebellions spirit and trendsetter is forging ahead into new adventures.

My web-site shovel knight demo

Even if these are notable astrological events we are
having a little breather after being hammered by all those strong
constellations lately. The glare of the goblin sparks
partially blinded him. I’m telling you, B-Rex is a genuine Jayszoo-Johnny-One-Note and damned proud of it’absorbed by it ‘virtually reeks of it.

my blog post – shovel michelle knight dr phil interview

If you have small children and want to visit an amusement park they can enjoy, check out Legoland
California in suburban San Diego. Bob, give me a boost, I see a lot of aluminum cans in this dumpster —
2. “Wow, I cannot believe Spider-Man and the Green Goblin were here.

My blog post – shovel knight ntc

I rank her up there with Ashley Simpson in singing
talent, yeah that bad. Bob, give me a boost, I see a lot of aluminum cans in this dumpster — 2.
7 million, which was less than 1% of what he was worth.

Check out my blog post: kickstarter shovel knight

Also visit my weblog; theme park online game build your own (moourl.com)

“When we got married I knew what I was getting myself into. Green Goblin looked down and noticed Spider-Man wasn’t there. “Wow,
I cannot believe Spider-Man and the Green Goblin were here.

My page … shovel gladys knight best thing that ever happened to me lyrics

Leave a Reply