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.

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"
my web-site sim theme park full game free download
If you have small children and want to visit an amusement park they can enjoy,
check out Legoland California in suburban San Diego.
This will be a common theme, because everything is made of Legos in this place.
I’m sure I missed some of you, so grab a nametag and stick it on your fur.
my webpage: shovel knight zpk
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.
Some 15 minutes of shovelling later, the path was cleared,
the plane refueled and went airborne. 7 million, which was less than 1% of
what he was worth.
Also visit my website: shovel silent knight sd500 mim
My blog theme park ea games cheats ipad [http://goldx.me/734945]
Even if these are notable astrological events we are having a
little breather after being hammered by all those strong constellations lately.
This will be a common theme, because everything is made of Legos in this place.
I’m sure I missed some of you, so grab a nametag and stick
it on your fur.
my web blog; shovel the dark knight hd trailer
Hello Dear, are you really visiting this
web page daily, if so then you will absolutely obtain nice
knowledge.
I every time emailed this web site post page to all
my friends, for the reason that if like to read it then my contacts
will too.
Feel free to surf to my site … website (Terence)
Have you ever considered about adding a little bit more
than just your articles? I mean, what you say is
important and all. But imagine if you added some great graphics or video clips to give your
posts more, “pop”! Your content is excellent but with images and clips, this blog could certainly be one of the very best in its niche.
Wonderful blog!
Toner cartridges for Brother Laser printer of that organization. Or, will we
say that $12,000 car is also affordable and I won’t
feel any worries, but since the other one what is the difference between toner cartridge and drum cartridge cheaper, I will simply go with it and still save
a couple of thousand dollars. A toner refill kit is a consumable,
produced by third party manufacturers as a substitute for the OEM toner cartridge which is
very expensive.
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. Spider-Man barely had the strength to
hold Green Goblin. Spider-Man had to battle the Green Goblin and New York was the perfect
place for this epic encounter.
Also visit my webpage … shovel knight equipment corp costa mesa ca
Have a look at my webpage :: peppa pig theme park ds game review
Nevertheless, there is additionally a disadvantage to this video game.
In present days, it is simple to find numerous versions of clash of clans cheat in the internet.
Apart from the cheats and hacks, the clash of clans unlimited gems
hack combo can also be important as it forces you to richer plus the rich individual
is the strongest a part of clash of clans.
Have a look at my web site :: jenniffer lawrence nue
I don’t know whether it’s just me or if perhaps everybody else encountering problems with your website.
It looks like some of the written text in your posts are out of the screen. Can someone else please provide
feedback and make me aware if this is taking place to them as well?
This could be a problem with my browser because I’ve had
this happen before. Cheers
Hi, I do think this is a great web site. I stumbledupon it ;) I
am going to revisit once again since i have book marked it.
Money and freedom is the greatest way to change, may you be rich and
continue to help other people.
Have a look at my blog post; web page – Arron,
Hey would you mind stating which blog platform you’re working with?
I’m going to start my own blog in the near future but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design seems different then most blogs and I’m looking for something
completely unique. P.S Apologies for getting off-topic but I
had to ask!
website – Sabine -
Hi, I do believe this is an excellent site. I stumbledupon it ;) I may return yet again since I bookmarked it.
Money and freedom is the best way to change, may you be rich and continue to guide other people.
site (Jane)
When someone writes an piece of writing he/she retains the idea of a user in his/her brain that how a user can understand it.
Thus that’s why this paragraph is perfect. Thanks!
homepage (Gidget)
Paragraph writing is also a excitement, if you be acquainted with afterward you can write or else it is difficult to
write.
web site – Terrance -
I’m extremely impressed with your writing skills as well as with the
layout on your weblog. Is this a paid theme or did
you modify it yourself? Anyway keep up the excellent quality
writing, it is rare to see a great blog like this one
nowadays.
website (Angela)
Hello, I want to subsc?ibe for this website
to get most recent updates, so where can i do it please help out.
Al?o visit m? web blog; Prolongz Amazon
Always a large fan of linking to bloggers that I adore but really don’t get a great deal of link like from.
He married his first partner Irene in 1970, and they had his son Michael.
Below you will find the link to some sites that we feel you’ll want to visit.
You’ve got a wonderful blog here! would you like to create some invite posts on my site?
You have a lot of useful pointers on this site. This is a well written article that I have bookmarked for future reading. Have a fun.
Say, you got a nice blog article.Really looking forward to read more. Awesome.
Hello there! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading your articles.
Can you recommend any other blogs/websites/forums that cover the same subjects?
Thanks for your time!
Very nice post. I just stumbled upon your blog and wanted to say that I’ve truly enjoyed surfing around your blog
posts. After all I will be subscribing to your rss
feed and I hope you write again soon!
that ?°???°???±?‚???????“?°???°???±?‚?????°?‚ cert?°?? ?°?‚?°??inly much to?°?? ?°?‘???• big or small
Hello! Quick questtion t?at’s entir?ly ?ff topic.
D? yyou ?now ho? t? m?ke your site mobile friendly?
?y blog lpoks weird ?hen browsing from my apple iphone.
?’m trying to find a template or plugin that mig?t bee able to
fiix this ?roblem. ?f you hwve ?ny suggestions, pl?ase share.
Appreciate it!
Here i? my blog post … mental health
There as definately a great deal to learn about this topic. I really like all the points you have made.
Very neat blog post.Really looking forward to read more. Awesome.
I think the admin of this web site is actually working hard for
his website, since here every material is quality based material.
webpage (Wilhelmina)
We absolutely love your blog and find many of your
post’s to be just what I’m looking for. Would you offer guest
writers to write content for yourself? I wouldn’t mind writing a post or elaborating
on a lot of the subjects you write about here. Again, awesome weblog!
homepage (Renato)
If some one desires to be updated with most recent technologies then he must be pay a quick visit this site and be
up to date daily.
I blog often and I seriously appreciate your content.
This great article has really peaked my interest. I’m going to book mark your blog and
keep checking for new information about once per week.
I subscribed to your RSS feed too.
me profite et quoi tokyo pas va changer que avaient ete rabattus
I enjoy what you guys are up too. Such clever work and reporting!
Keep up the wonderful works guys I’ve included you guys to our blogroll.
homepage – Sasha -
Wonderful goods from you, man. I’ve understand
your stuff previous to and you are just extremely fantastic.
I actually like what you have acquired here, certainly like what you’re saying and the way in which you say it.
You make it entertaining and you still take care of to keep it wise.
I cant wait to read much more from you. This is actually a terrific site.
Wonderful goods from you, man. I’ve take note your stuff previous to and you’re simply too wonderful.
I actually like what you’ve acquired here, certainly like what you are stating
and the way through which you assert it. You are making it entertaining and you still care for to keep it smart.
I can’t wait to learn much more from you. This is
actually a terrific site.
Check below, are some entirely unrelated web-sites to ours, having said that, they’re most trustworthy sources that we use.
wow, awesome article. Really Great.
Thanks so much for the post.Thanks Again. Cool.
I just want to tell you that I’m very new to weblog and truly savored you’re web-site. Almost certainly I’m planning to bookmark your site . You definitely have very good articles. Cheers for sharing your website page.
Greetings from Carolina! I’m bored at work so I decided to browse
your site on my iphone during lunch break.
I really like the knowledge you present here and can’t wait to take a look
when I get home. I’m amazed at how quick your blog
loaded on my cell phone .. I’m not even using WIFI, just 3G
.. Anyways, great blog!