Pick Your Pleasure: RAID-0 mdadm Striping or LVM Striping?

A fairly common Linux storage question: Which is better for data striping, RAID-0 or LVM? Let's take a look at these two tools and see how they perform data striping tasks.

Given the price of hard drives and the number of drives you can put into a single system albeit a desktop or a server, a very common question is how to arrange the drives to improve performance. Consequently, a somewhat commonly asked Linux storage question that you see on various mailing lists is, which is better for data striping, RAID-0 with mdadm or LVM? While many people will correctly point out that this argument is somewhat pointless because each is really intended for different tasks, the question is still fairly common. Nonetheless, in the quest for the best performance possible, there is still the question of which one is better (whether it’s meaningless or not). In this article both concepts will be contrasted in regard to performance with some discussion about appropriateness. To add at least a little chaos to the situation, some simple IOzone benchmarks with RAID-0 and LVM will be presented.

Data Striping

Data striping is a commonly used technique for improving performance. It breaks data into pieces that are assigned to various physical devices, usually storage devices, in a round-robin fashion. One of the reasons that this concept was developed is that processors are capable of generating IO (reads and writes) much faster than the storage device can store or recall it. But if you can split the data among multiple storage devices then you can perhaps improve IO performance.

The process is very simple. In the case of a write function, the incoming data is split into pieces with the first piece being sent to the first device, the second piece being sent to the second device, and so on until all the devices have received a data piece or all the data has been written. If there are still pieces of data to be written then the next piece is sent to the first device and the process continues (round-robin). Data throughput is improved because the system can send one piece of data to one storage device and immediately move on to the next piece of data and the next storage device without having to wait for the first one to complete. If you like, the data storage is parallelized. In Linux there are two primary ways to achieve this, RAID-0 and LVM.

RAID-0 with mdadm

One way to achieve data striping is to use RAID-0. Most people are probably familiar with the concept of RAID (Redundant Array of Inexpensive Disks) that seeks to divide data, possibly replicate it, and place it on storage devices. There are various techniques to achieve these goals and each one has a number associated with them such as RAID-0 or RAID-1. These details of the scheme define whether the emphasis is on either data reliability or increased throughput or possibly both.

RAID-0 is a scheme to improve data throughput by taking the data and spliting it evenly between multiple disks (data striping). Figure 1 below, from Wikipedia, shows how data is split across two disks.

Figure 1 – Diagram of RAID-0 layout of Two Drives

In this example, the first data piece, A1, is sent to disk 0, the second piece, A2, is sent to disk 1, and so on.

There are two terms that help define the properties of RAID-0.

  • Stripe Width
    This is the number of stripes that can be read to or written from, at the same time. Very simply, this is the number of drives used in the RAID-0 group. In example 1 the stripe width is 2.
  • Stripe Size
    The phrase refers to the size of the stripes on each drive. The phrases block size, chunk size, stripe length or granularity will sometimes be used in place of stripe size but they are all equivalent.

RAID-0 can, in many cases, help IO performance because of the data striping (parallelism). If the data is smaller than the stripe size (chunk size) then it will be written to only one disk not taking advantage of the striping. But if the data size is greater than the stripe size, then read/write performance should increase because of the ability to use more than one disk for a read or write. Increasing the stripe width adds more disks and can improve read/write performance if the stripe width (chunk size) is greater than the data size.

Mdadm (pronounced “m-d-adam”) is a tool for Linux for managing software RAID devices in Linux. It has seven modes of operation that pretty much cover any possible task you might use software RAID.

  • Assemble
  • Build
  • Create
  • Monitor
  • Grow
  • Manage
  • Misc

Mdadm is an all-purpose RAID management tool for Linux with a long history.

LVM Striping

LVM has been discussed in a previous article about managing pools of data. As discussed, it is an extraordinary useful tool for managing storage. Fundamentally it allows you to collect physical storage devices and combine them into virtual devices (volume groups) that can be divided into logical partitions (logical volumes) that are then used as the device for file systems. You can add or subtract devices from the virtual devices (volume group) or even move them as needed. Coupling these techniques with file systems that can be resized and you have a terribly efficient way of growing or moving file systems as needed.

In addition, LVM is very flexible allowing you to control exactly how the physical devices are combined into the volume groups (VGs) and the logical volumes (LVs). It is this flexibility that allows you to do data striping. In LVM this is called striped mapping. Figure 2 below illustrates this concept.

Figure 2 – Striped Mapping in LVM

Striped mapping maps the physical volumes (typically the drives) to the logical volume that is then used as the basis of the file system. LVM takes the first few stripes from the first physical volume (PV0) and maps them to the first stripes on the logical volume (LV0). Then it takes the first few stripes from the next physical volume (PV1) and maps them to the next stripes in LV0. The next stripes are taken from PV0 and mapped to LV0 and so on until the stripes on PV0 and PV1 are all allocated to the logical volume, LV0.

The advantage of the striped mapping is similar to RAID-0. When data is read from or written to the file system and if the data is large enough, it spans multiple stripes so that both physical devices can be used, improving performance.

Contrasting RAID-0 and LVM

From the previous discussions it is obvious that both RAID-0 and LVM achieve improved performance because of data striping across multiple storage devices. So in that respect they are the same. However, LVM and RAID are used for different purposes, and in many cases are used together. Let’s look at both techniques from different perspectives.

The size (capacity) of a RAID-0 group is computed from the smallest disk size among the disks in the group, multiplied by the number of drives in the group. For example, if you have two drives where one drive is 250GB in size and the second drive is 200GB, then the RAID-0 group is 400GB in size, not 450GB. So RAID-0 does not allow you to use the entire space of each drive if they are different sizes.

On the other hand, LVM allows you to combine all of the space in all of the drives into a single virtual space. You can use stripe mapping across the drives as you would in RAID-0, with the capacity being the same as RAID-0. However, LVM allows you to also use the remaining space for additional volume groups (VGs).

In the case of mdadm and software RAID-0 on Linux, you cannot grow a RAID-0 group. You can only grow a RAID-1, RAID-5, or RAID-6 array. This means that you can’t add drives to an existing RAID-0 group without having to rebuild the entire RAID group but having to restore all the data from a backup.

However, with LVM you can easily grow a logical volume. But, you cannot use stripe mapping to add a drive to an existing striped logical volume because you can’t interleave the existing stripes with the new stripes. This link explains it fairly concisely.

“In LVM 2, striped LVs can be extended by concatenating another set of devices onto the end of the first set. So you can get into a situation where your LV is a 2 stripe set concatenated with a linear set concatenated with a 4 stripe set.”

Despite not being able to maintain a striped mapping in LVM, you can easily add space to a strpped logical volume.

This article, written by the original developers of LVM for Linux, present four advantages of LVM.

  1. Logical volumes can be resized while they are mounted and accessible by the database or file system, removing the downtime associated with adding or deleting storage from a Linux server
  2. Data from one (potentially faulty or damaged) physical device may be relocated to another device that is newer, faster or more resilient, while the original volume remains online and accessible
  3. Logical volumes can be constructed by aggregating physical devices to increase performance (via disk striping) or redundancy (via disk mirroring and I/O multipathing)
  4. Logical volume snapshots can be created to represent the exact state of the volume at a certain point-in-time, allowing accurate backups to proceed simultaneously with regular system operation

These four advantages point to the fact that LVM is designed for ease of management rather than performance.

Performance Comparison of RAID-0 and LVM Striped Mapping

Comments on "Pick Your Pleasure: RAID-0 mdadm Striping or LVM Striping?"

I like the helpful information you provide in your articles.
I will bookmark your blog and check again here regularly.
I am quite sure I’ll learn plenty of new stuff right here! Best of luck for the next!

What’s up friends, fastidious article and good urging commented at this place, I am in fact enjoying by these.

Hello, yeah this piece of writing is actually good and I have learned lot of things from it regarding blogging.


Whoa! This blog looks exactly like my old
one! It’s on a completely different topic but it has pretty much
the same layout and design. Excellent choice of colors!

Also visit my web site; cheap ugg boots

My spouse and I stumbled over here from a different web page and thought I might check things
out. I like what I see so now i am following you. Look forward to looking over your web page for a second time.

I think that everything published was actually very reasonable.
However, think on this, suppose you composed a catchier post title?
I am not saying your content is not good., but suppose
you added something to maybe grab a person’s attention? I mean Pick Your Pleasure: RAID-0 mdadm Striping or LVM Striping? | Linux Magazine is kinda vanilla. You might glance at Yahoo’s front
page and note how they create news titles to grab viewers interested.
You might try adding a video or a picture or two to grab people interested
about what you’ve got to say. In my opinion, it might bring your website a little livelier.

Awesome blog post.Really looking forward to read more. Keep writing.

Hey, thanks for the post. Keep writing.

I really like and appreciate your blog.Thanks Again.

I enjoy reading a post that can make men and
women think. Also, thanks for allowing for me to comment!

Admiring the time and effort you put into your website
and detailed information you provide. It’s nice to come across a blog every once in a while that isn’t the same unwanted rehashed material.
Excellent read! I’ve saved your site and I’m adding your
RSS feeds to my Google account.

Wow, this piece of writing is good, my sister is analyzing
these things, thus I am going to convey her.

htmlThe fact is, quick translation translation services are very lucrative plus profit producing in addition.
Currently, if you would like open an quick translation quick translation agency,
you must stick to a number of pertinent guidelines.
The following pointers won’t only you could make your quick translation a lot easier but will also make it simple along with pleasurable. Read down in order to garner a better as well as sounder understanding of qualified translation as well as model services. http://www.lernen-top100.de/index.php?a=stats&u=tanyaarmijo

http://drenaiwarriors.com/?q=node/2788950It is possible to trust them also for large tasks including switching an entire e-book,
journal in addition to undertaking statement.what’s his or her doing work strategyAlthough, the technique of renovating substance collected from one of vocabulary to many other will vary in line with requiring a business continue to this technological know-how along with assets applied for this particular target in every initiatives keep exact same. More info on this England translation classes is. http://kalashnikovtop-47.com/index.php?a=stats&u=stacieesters

Check this url to to get a free free Aeria points hack for FREE!

nuovi ugg 2013 ugg buy online rgstR Le mkvey est 100
kg plus léger que son prédécesseur, ce qui signifie aussi qu’il est plus agile et amusant si pas tout
à fait se concentrer fun.there C’est une vaste gamme d’espaces
de stockage de la cabine, et le coffre a maintenant 30 litres salle mars comme avant, Dans 380 litres.
ugg on line ugg stivali costo qXTDa Liste de Gorham des
crédits de la télévision est longue, et comprend quelques-uns des
spectacles les plus populaires et encensé par la critique
de la dernière décennie. stivali ugg 2013 stivali ugg svizzera uHpkR Les
suites disposent de lits king-size, d’une cuisine entièrement équipée avec un four micro-ondes,
cuisinière, réfrigérateur et lave-vaisselle, une salle à manger séparée
et un salon. uggs stivali prezzi ugg per uomo GQkgr John répond à tort à des révélations qu’il plagyarized
Army War College papier hommage bannière trouvés au marché aux puces à donner à tombé mère de l’ex de Marine Le directeur du FBI avertit
que la violence Gaza alimenter l’invention d’Al Kaida menace Texas papa qui se
sent 100 Ballons eau dans une minute inspire campagne kikxtarter robusteMai Martinez est assise dans son Jacksonville,
en Floride., Salon, regarder la boîte pleine de cendres de sa fille tué
et a souhaité qu’elle pouvait se permettre un billet d’avion pour affronter le tueur de l’adolescent..
sandali ugg ugg neonato daYgH Les gens du personnel sont incroyablement doux, amusement et très serviable à tous égards.

htmlThere is another way of drawing near the actual writing trouble, which would
be to influence to 1 with the laptop or
computer conversation reputation plans, in which the language is
tapped out by way of the laptop or computer close to
a screen. These types of courses have experienced quite a lot
of improvement recently.The following dictation course of action becomes
simpler having practical experience also it possesses real benefits inside timeAre an
individual taking a look to become well informed Japanese people .


whenever get valuable stuff without spending a dime is definitely the best thing which may manifest. What I am telling you about is you can have free of charge Artix points in only three steps with very little hassle. this really is fantastic!

http://tetopsite.com/index.php?a=stats&u=willagowllandthese individuals cost disposable charges,
painting a persons vision of those who would
like to skimp drastically on excellent.A good vocabulary quick translation company has
a intensive number of example of various translation assignments.
Including offer customer reviews using their sooner
clientele, who definitely have appointed these individuals previous
to. That attests to your top quality service offered by the company and its constructive small business impact.


http://www.adobegames.com/index.php?task=profile&id=578678You may believe in them for large responsibilities similar to changing the main e-book, journal along
with opportunity document.exactly what is its doing work strategyAlthough, the process
of remodeling product from a single language for some other may
vary in accordance with needing the venture continue
to the actual know-how and sources applied
for this aim in all of the assignments remain similar.
More to do with the particular This particular language translator groups is usually
that. http://www.drenaiwarriors.com/?q=node/2741671

http://dofioameada.com/top/index.php?a=stats&u=reta0943vqkqfInterpreters could possibly be certified
intended for the courtroom interpretation within the fed degree in some ‘languages’.

There are also checkups in most claims intended for court docket
along with quick translation decoding.The potency of an unbiased,
or self-employed, translator or maybe interpreter lies in focus,
continuity, as well as service. Deciding on a translation or interpreter who specializes in the area, and with similar personal through venture
for you to job. http://supernewgames.com/profile/221076/haydenrsp.


http://www.soundsurge.co.uk/?p=39You can trust them also for large challenges for instance converting the full guide, log and also business record.
what exactly is their particular performing strategyAlthough, the process with converting material from terms for some other can vary according to desiring the business nevertheless the technology and also sources tried for that aim
to all tasks stay very same. More to do with the particular England translator categories is always that.

ugg negozi torino negozi ugg in italia DRmKJ In tutte le aree ampliato questo trimestre le vendite e oneri
finanziari è sceso di nuovo come un’opportunità Florida ha per rafforzare ulteriormente., ci aspettiamo un’ulteriore crescita del fatturato
e degli utili, come intensifichiamo l’attuazione dei nostri programmi e nuovi impulsi.
ugg roma ugg negozi bergamo Ssmbm Mona Key Resort a SüdKoala (tempo di recupero del terremoto in ottobre 2006) è stato originariamente sviluppato da Lawrence Rockefeller..
ugg roma uggs boots outlet Ypmkf Non è il bellissimo luogo o la rete di negozi unici
qui che questo luogo indimenticabile per fare! E ‘sempre sorprendente, persone creative,
si rivolgono ogni giorno solo per fare dichiarazioni politiche, acrobazie,
o il loro favoloso me.. Ugg Uomo Roma rivenditori ugg italia GtSBq Con una base di fan molto fedeli, il ristorante di pesce serve una varietà di frutti di mare,
tra cui mahimahi, tonno e salmone e ha recentemente tornato da loro
processo di cottura elimina tutti I grassi trans. scarpe ugg italia ugg australia switzerland cVaOe Chi cherchonsnous attenzione?
Cherchonsnous per l’America o che sono lasciati a qualcun altro o bollette paghiamo
persone fleesing attraverso le nostre tasse?

Ottanta 4000000000 dollari per mantenere la guerra in vita.

Great taste storage! furthermore made a decision i could truthfully now notify men and women simply how much i experienced my Half inchpush-prosHalf inch at the health club in the morning.
He got lots of time to discuss with me and reveal his awareness making ideas in my opinion to find the best vitamin supplements with regards to my assimilation limitations. Several people described (individually of one yet another) the chance of learning to be a personal trainer.
On ruin 27, 2011. Perfectly you will find there’s revolving chilly inside our this season, due to the fact before christmas, in all probability closer to the thanksgiving holiday. If you loved this write-up and you would like to obtain a lot more info with regards to t102 horizon treadmill reviews kindly go to the website.| http://findyourtreadmill.com

It’s very easy to find out any matter on net as compared to books, as I
found this paragraph at this website.

Thee use oof a Rotary Bonnet machine is invaluable when it comes
to ontract type carpets. You have probably thought long and hard about what you think woud be a successful company.
You see videos, forum posts and otherr testimonials about
this, but this is the rel deal on how to make money every week.

http://iranoma.com/index.php?do=/blog/48/university-of-roehampton-translation/they may
be competent at rewarding a person’s objectives having fantastic effectiveness. You ought to know nicely that will and keep premium quality with translation qualities and employ excellent expressions, they apply right showcase gross sales of the brand new e book. Thats the best way, you can check out a mysterious power of phrases following translation. You can enjoy identical options because of the France translation types also.http://cameronblair.net/top/index.php?a=stats&u=dankunzmiyq

http://www.paraisoxxx.net/TopPorno/index.php?a=stats&u=makaylazrgthey're efficient at rewarding your own targets using excellent efficiency. You ought to know perfectly that and keep good quality regarding translation properties and apply great expressions, these people put into practice immediately showcase gross sales of your new e-book. That’s precisely how,
you should check out a mysterious strength of
terms right after translation. Get ready to experience similar remedies with the Portugal translation different types in

http://www.superpstore.com/links/links.htmThe base of the site
alternatively will contain an individual assets going in which you
will locate the opportunity for obtaining the DUNS range.
Get the quantity so as to facilitate the operation of opening a good quick translation qualified translation
agency. You need to wait for an 1 week until you get a person’s DUNS range. This number is definitely an absolute prerequisite in an effort to amenable almost any commercial business enterprise such as a translation or translator agencies. http://3.yvrca.net/users.php?mode=profile&uid=102155

http://www.tokeitop100.com/index.php?a=stats&u=forestg62yimmediate Completion period, one day everyday
purchaser companies, expert experts in each and
every spot, reasonable expenses, different varieties of various, information
discernment etcetera.Your linguists usually are experts in only its
person fields. As one example we have now distinct authorities within translation for Health-related, Regulation, Authorities, technological job
areas. Most people is definitely comprehensive, little
or no like visitors precisely where just one certain grips just about all areas.


Check below, are some completely unrelated web-sites to ours, even so, they’re most trustworthy sources that we use.

http://tekslate.com/groups/voice-translation-from-hindi-to-english/Each of our quite a few
translation aid tend to be Marriage License Translation,
United kingdom quick translation, Begin history Translation, Marketing Translation, Interpretation Translation, Web page Translation, File Translation, Medical Translation, Financial Translation,
Authorized Translation, Specialised Translation and so forth.
There is a defined procedure that all translation should be passed.

quick translation.http://xnand.com/arcade/profile/stbrant.


intend to make use of any time deciding uponThis is usually a smart diverse you will want to contemplate
with deciding on a translation company and also translation agency.
You should initial outline for you your finances and help save
on your difficulty in the long run, given that you might locate a reputable agency, only to
find out away you cannot find the money for its services.
Therefore, taking therapy for your rate difficulty initial can .

htmlDocuments, electronic, technology, The item, Mining, durability, aerospace, Car, mechanised Anatomist
and so forth.Migrate official certifications is a crucial evidence in your own
union. It might be essentially throughout the the exact same construction in the majority of nations on the other hand around the a variety
of languages. If you the 2 main progress to your special, its the
just one single evidence the marriage. quick translation.

http://www.top75casinos.com/index.php?a=stats&u=eugenegoshornthese are competent at satisfying the objectives
together with wonderful overall performance. You should consider
properly of which to keep top quality associated with translation houses
and apply great terminology, these people put into
action specifically enhance revenue within your brand new book.
I’m talking about precisely how, you should check out a sensational energy text following translation. Get ready to enjoy exact same solutions through the Italy translator groups in addition.http://www.seoportal.ro/user_detail.php?u=wbieber

http://www.completevisasolutions.com/australia/business-talent-permanent-subclass-132-visa/obtaining the typist type the actual
translation throughout Expression and obtaining this again by way of electronic mail.
Professionally, I’ll speak considerably quicker when compared with I’m
able to produce so we could deliver a new dictation regarding words and phrases
to 1 typist, send the other 1,000 to some subsequent typist,
et cetera. It is then easy to translate well over terms each day.
Needless to say, when the written translation is actually
got away from a typist, it has to be very carefully make sure
to review in addition to remedied where essential.

What’s up to every body, it’s my first pay a quick visit of this
website; this web site consists of amazing and really good data for readers.

I really like it when people come together and share views. Great blog, continue the good work!

BTW, Here’s the reply to your quest for higher profits using simple and fast website content. From this content marketing blog You can instantly download thousands of top quality plr articles on over 3000+ niche topics that you can edit and make use of as you wish. More quality content means more internet search engine traffic and more profit. Content Marketing is a relatively new twist on Content Building & Website Traffic Generating. Many thanks

htmlas well as end users handbooks are usually turned to match the marked viewers.
The theoretically knowledgeable translator will help you layout
web sites intended for world wide communication and e-commerce, so your clients
offshore sense that they’re really for a neighborhood website. People are prone to invest in a person in case you converse his or her dialect.Interpreters should be fluent in ‘languages’ and have great memory space, hearing, concentration. http://choirsconnect.com/?q=node/add

My relatives every time say that I am killing my time here at net, but I know I am getting knowledge all the time by
reading such good content.

homepage (Melva)

Wow, great blog.Really looking forward to read more. Awesome.

I think this is a real great blog article.Much thanks again. Really Great.

A round of applause for your blog post.Much thanks again. Will read on…

I loved your article. Keep writing.

http://php-thoughts.cubedwater.com/2010/alternative-to-the-beforeaction-event/comment-page-1/Not open http:
//shark-games.net/profile/danteboult service plan
continues to grow notably simply because of increasing legal guidelines.

Each and every one http://rocaphotos.com/members/shawn24e/activity/305363/ assistance, classic design Bref Reporting,
Send out or maybe Made http://inktel.net/?page_id=2, or simply Realtime Exposing, possess developed
through the increase of engineering, confirming long term need for these types of.
Currently, more than ever before, have rely upon themselves just for firmness.
I understand a great number of you’ve undergraduate or perhaps even masteral levels.http://www.toplist.freesexlink.org/index.php?a=stats&u=josieseyler

Howdy! This is kind of off topic but I need some guidance from an established blog.
Is it hard to set up your own blog? I’m not very techincal but I can figure things
out pretty quick. I’m thinking about creating my own but I’m not sure where to start.
Do you have any points or suggestions? With thanks

webpage [Chas]

hey there and thank you for your info – I’ve definitely picked up something new from right here.
I did however expertise some technical issues using this web site, Danae,, since I experienced to reload the web site lots
of times previous to I could get it to load correctly.
I had been wondering if your web hosting is OK?
Not that I am complaining, but sluggish loading instances times
will sometimes affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords.
Anyway I’m adding this RSS to my email and can look out for much more of your respective interesting content.

Make sure you update this again very soon.

Hi there! I know this is kinda off topic nevertheless I’d figured I’d ask.
Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa?
My site goes over a lot of the same topics as yours and I think we could greatly benefit from each other.
If you happen to be interested feel free to shoot me an email.
I look forward to hearing from you! Excellent blog by
the way!

Howdy! This post couldn’t be written much better! Going through this article reminds
me of my previous roommate! He always kept
preaching about this. I’ll forward this information to him.
Pretty sure he’s going to have a good read. Many thanks for sharing!

Leave a Reply