<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Raid 1 is simply giving you
redundancy. When, not if, it breaks, theoretically both shouldn't
fail. I have heard of instances where masses of drives in a dc
all purchased the same time began all failing, taking out clusters
as more than 1 disk was dying without any hot standby, etc.<br>
<br>
LVM is giving you flexibility. I don't fully preprovision all the
space on the disk, but I do give it to lvm in the form of a
physical volume. I then create raid, var, var/log, usr, home,
whatever at a certain size. If I outgrow one, I do an lvextend,
add data, resize2fs to grow the ext partition, and done. Usually
I end up only growing home, var, or my ext0 that I use for a dump
of vm images and my opt directory symlinks there.<br>
<br>
Shouldn't matter as long as they're comparable, ie. both like
samsung 840's.<br>
<br>
Here's what my config looks like in use:<br>
<br>
mb@hostname ~ $ lsblk<br>
NAME MAJ:MIN RM SIZE RO TYPE
MOUNTPOINT<br>
sda 8:0 0 477G 0 disk <br>
├─sda1 8:1 0 250M 0 part <br>
│ └─md127 9:127 0 249.8M 0 raid1
/boot<br>
└─sda2 8:2 0 476.7G 0 part <br>
└─md126 9:126 0 476.6G 0 raid1 <br>
└─spv0 (dm-0) 252:0 0 476.6G 0 crypt <br>
├─hostname--vg0-root0 (dm-1) 252:1 0 3G 0 lvm /<br>
├─hostname--vg0-swap0 (dm-2) 252:2 0 3G 0 lvm
[SWAP]<br>
├─hostname--vg0-usr0 (dm-3) 252:3 0 9G 0 lvm
/usr<br>
├─hostname--vg0-var0 (dm-4) 252:4 0 3G 0 lvm
/var<br>
├─hostname--vg0-varlog0 (dm-5) 252:5 0 1G 0 lvm
/var/log<br>
├─hostname--vg0-home0 (dm-6) 252:6 0 64G 0 lvm
/home<br>
└─hostname--vg0-ext0 (dm-7) 252:7 0 128G 0 lvm
/mnt/ext0<br>
sdb 8:16 0 477G 0 disk <br>
├─sdb1 8:17 0 250M 0 part <br>
│ └─md127 9:127 0 249.8M 0 raid1
/boot<br>
└─sdb2 8:18 0 476.7G 0 part <br>
└─md126 9:126 0 476.6G 0 raid1 <br>
└─spv0 (dm-0) 252:0 0 476.6G 0 crypt <br>
├─hostname--vg0-root0 (dm-1) 252:1 0 3G 0 lvm /<br>
├─hostname--vg0-swap0 (dm-2) 252:2 0 3G 0 lvm
[SWAP]<br>
├─hostname--vg0-usr0 (dm-3) 252:3 0 9G 0 lvm
/usr<br>
├─hostname--vg0-var0 (dm-4) 252:4 0 3G 0 lvm
/var<br>
├─hostname--vg0-varlog0 (dm-5) 252:5 0 1G 0 lvm
/var/log<br>
├─hostname--vg0-home0 (dm-6) 252:6 0 64G 0 lvm
/home<br>
└─hostname--vg0-ext0 (dm-7) 252:7 0 128G 0 lvm
/mnt/ext0<br>
<br>
-mb<br>
<br>
<br>
<br>
On 09/04/2014 10:19 AM, Mark Phillips wrote:<br>
</div>
<blockquote
cite="mid:CAEqej2N-2Kc6m+KsxNzzsujwj0EUPsVQ7BisyCoj-m+RGzXbeg@mail.gmail.com"
type="cite">
<div dir="ltr">Michael,
<div><br>
</div>
<div>Thanks again for your comments, they are very helpful. I
have been googling RAID1 and LVM and finding lots of good
information.</div>
<div><br>
</div>
<div>I really like your idea of a RAID1 for the two SSDs. Does
it matter if one is msata and one is not?</div>
<div><br>
</div>
<div>I am trying to decide on the merits of using LVM with the
RAID1, since I only have 1 disk and I normally don't partition
it so I don't have to worry about running our of space until
the disk is almost full. Could you explain to me the benefit
of using LVM + RAID1 for these two drives? How would you
partition the drives? My current drive has about 420 GB of
data in /home, about 9GB in /opt, and some misc stuff in /var,
all of which I need to transfer that to the new system.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Mark</div>
<div><br>
</div>
<div>P.S. One benefit of using both LVM and RAID1 is learning
something new! ;)</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Wed, Sep 3, 2014 at 12:33 PM, Michael Butash <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:michael@butash.net" target="_blank">michael@butash.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
I really never hit any io constraints on disks honestly
since using ssd's. I watch gkrellm like a hawk and tend to
notice if something is amiss, and disks are never it, unless
one dies. I tend to abuse my system with 32db of ram and
chrome and firefox each have seen using 10gb of ram each,
nothing really ever slamming disks.<br>
<br>
Some games/graphics intensive apps that use bitmap caching
to /tmp or somewhere in home I'll give a ramdisk to ease
it's pain. This works well for things like minecraft
servers to ease killing my ssd's prematurely.<br>
<br>
I've never honestly benchmarked my disk i/o with raid,
crypto, lvm, and a fs atop them, but honestly until I'm
aggravated with a visible bottleneck, it's doing it's job.
I haven't had that in a desktop setting since going to
SSD's, period.<br>
<br>
I'm pretty happy with the msata mx100 micron's in my dell
laptop so far. The fact I can have 2x 512gb ssd disks in my
12" laptop and 16gb of ram is frigging great.<br>
<br>
Do yourself a favour, get a usb3 spindle disk for the bulk
data and get a smaller ssd. I used 32, then 64, then 128,
then 256, now up to 512gb disks that I don't feel I'm
getting utterly screwed having to buy 2x for resiliency.
Slice your data partitions adequately and learn to live
within your means. You quickly figure out what data you
really need or don't when you have to add space, but lvm's
make that painless. At home I just do this with a nas
direct, but I rsync a lot of stuff against that for backups
and working between laptop/desktop on the road or not.<br>
<br>
My worst offenders are email, everyone else's data I carry
about (hoards of data and docs from customers), stupid
windoze xp vm as my visio runtime, and a few games if they
go local. I'm fairly glad being a linux zealot I was weaned
off pc games by mid 2000's, seeing some actually want a few
hundred gigs of space these days. Same reason I don't use
win7, they have the audacity to ask for 25gb for a base
install, just so I can run visio somewhere. Not when I have
a 64gb drive. and xp is fine as a hypervisor for visio in
seamless vbox mode.<br>
<br>
Enter lucidchart, it's actually a decent replacement for
visio now. Then I'm finally free of any real need for
windoze at all.<span class="HOEnZb"><font color="#888888"><br>
<br>
-mb</font></span>
<div class="im HOEnZb"><br>
<br>
<br>
On 09/03/2014 10:20 AM, Mark Phillips wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Michael,<br>
<br>
Great info...Thanks!<br>
<br>
Are there any performance (or other issues) between a
raid1with two 1tb msata ssds and rsync between one 1tb
msata ssd and 7200 rpm 1tb hdd? I like the idea of raid1
with two ssds, but not sure if I am ready to buy 2 1tb
ssds. And yes, I really need a 1 tb drive.....Just
consider me a hoarder of data...;)<br>
<br>
Mark<br>
<br>
</blockquote>
<br>
</div>
<div class="HOEnZb">
<div class="h5">
---------------------------------------------------<br>
PLUG-discuss mailing list - <a moz-do-not-send="true"
href="mailto:PLUG-discuss@lists.phxlinux.org"
target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail
settings:<br>
<a moz-do-not-send="true"
href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss"
target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>