<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: LVM Configuration mistake to Avoid</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Tue, 02 Dec 2008 20:16:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-337642</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 30 Jul 2008 23:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-337642</guid>
		<description>Thanks for info.
Did you use LVM undo on the same or different physical device ?

In general it would be interesting to see the data on workload more typical for database which is quite different. For example innodb log is circulary written.</description>
		<content:encoded><![CDATA[<p>Thanks for info.<br />
Did you use LVM undo on the same or different physical device ?</p>
<p>In general it would be interesting to see the data on workload more typical for database which is quite different. For example innodb log is circulary written.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FransL</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-337561</link>
		<dc:creator>FransL</dc:creator>
		<pubDate>Wed, 30 Jul 2008 18:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-337561</guid>
		<description>In my experience, lvm snapshots have a serious performance impact for writes to the parent LVM.  Just for kicks I tested unpacking a bz2 of the linux kernel in different scenarios.  Command was akin to:

time tar xvfj linux.tar.bz2 ; time sync

No snapshot:  17s
Regular snapshot:  61s
Snapshot with chunk size of 512k:  47s

I unmount/mounted the filesystem between each test to clear the fs cache.</description>
		<content:encoded><![CDATA[<p>In my experience, lvm snapshots have a serious performance impact for writes to the parent LVM.  Just for kicks I tested unpacking a bz2 of the linux kernel in different scenarios.  Command was akin to:</p>
<p>time tar xvfj linux.tar.bz2 ; time sync</p>
<p>No snapshot:  17s<br />
Regular snapshot:  61s<br />
Snapshot with chunk size of 512k:  47s</p>
<p>I unmount/mounted the filesystem between each test to clear the fs cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. van der Klip</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-327928</link>
		<dc:creator>M. van der Klip</dc:creator>
		<pubDate>Mon, 14 Jul 2008 11:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-327928</guid>
		<description>Ah, great, that lvmerge/lvcreate parameter seems to do the trick indeed! :)</description>
		<content:encoded><![CDATA[<p>Ah, great, that lvmerge/lvcreate parameter seems to do the trick indeed! <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-327096</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 12 Jul 2008 20:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-327096</guid>
		<description>Marki,

Ah right. Silly me.  I see lvcreate also allows that :)  

I think using different VG or same depends on your priorities.   If you want to say move shelf of drives between servers you would want it to be separate volume group while if you would like have more flexible space usage between physical volumes one group can be your choice.</description>
		<content:encoded><![CDATA[<p>Marki,</p>
<p>Ah right. Silly me.  I see lvcreate also allows that <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>I think using different VG or same depends on your priorities.   If you want to say move shelf of drives between servers you would want it to be separate volume group while if you would like have more flexible space usage between physical volumes one group can be your choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marki</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-326982</link>
		<dc:creator>Marki</dc:creator>
		<pubDate>Sat, 12 Jul 2008 14:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-326982</guid>
		<description>In fact, lvextend accepts a name of PV as last parameter, so you can have many disks in VG and still have control over which LVOL is on which PV.
But I would suggest to have separate system VG anyway. It's much more manageable and easier to restore in case of any troubles.</description>
		<content:encoded><![CDATA[<p>In fact, lvextend accepts a name of PV as last parameter, so you can have many disks in VG and still have control over which LVOL is on which PV.<br />
But I would suggest to have separate system VG anyway. It&#8217;s much more manageable and easier to restore in case of any troubles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-326593</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 11 Jul 2008 18:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-326593</guid>
		<description>Well,

You can use the fact logical volume groups do not roam around :)

Create slow volume (w OS first), when create temporary  volume to consume all space on slow physical volume.    Add fast physical volume to the same volume group.   Create your MySQL LVM Volume on it.   Now drop the temporary "space consumer" you had  on the slow volume and use that space for undo.</description>
		<content:encoded><![CDATA[<p>Well,</p>
<p>You can use the fact logical volume groups do not roam around <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Create slow volume (w OS first), when create temporary  volume to consume all space on slow physical volume.    Add fast physical volume to the same volume group.   Create your MySQL LVM Volume on it.   Now drop the temporary &#8220;space consumer&#8221; you had  on the slow volume and use that space for undo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. van der Klip</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-326335</link>
		<dc:creator>M. van der Klip</dc:creator>
		<pubDate>Fri, 11 Jul 2008 09:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-326335</guid>
		<description>As far as I know it is not possible to fix a logical volume to a specific physical volume, without creating multiple volume groups. We NEEDED to ensure the data to be on the fast disks. Could we have done this otherwise in your opinion? I would be interested in hearing so, because that would mean we could use the wasted space after all...</description>
		<content:encoded><![CDATA[<p>As far as I know it is not possible to fix a logical volume to a specific physical volume, without creating multiple volume groups. We NEEDED to ensure the data to be on the fast disks. Could we have done this otherwise in your opinion? I would be interested in hearing so, because that would mean we could use the wasted space after all&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jannes</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-325813</link>
		<dc:creator>jannes</dc:creator>
		<pubDate>Thu, 10 Jul 2008 17:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-325813</guid>
		<description>Hmmmm.. I setup the exact same configuration last week but haven't tried snapshotting yet. And now I stumble on this. Thanks! That's gonna save me some time. Long live the RSS feed.</description>
		<content:encoded><![CDATA[<p>Hmmmm.. I setup the exact same configuration last week but haven&#8217;t tried snapshotting yet. And now I stumble on this. Thanks! That&#8217;s gonna save me some time. Long live the RSS feed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-325794</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 10 Jul 2008 16:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-325794</guid>
		<description>M. van der Klip,

I do not understand why was not it option ?

If you have 2 physical volumes in one volume group  you can still  have separate logical volumes created on these volume groups.</description>
		<content:encoded><![CDATA[<p>M. van der Klip,</p>
<p>I do not understand why was not it option ?</p>
<p>If you have 2 physical volumes in one volume group  you can still  have separate logical volumes created on these volume groups.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. van der Klip</title>
		<link>http://www.mysqlperformanceblog.com/2008/07/09/lvm-configuration-mistake-to-avoid/#comment-325601</link>
		<dc:creator>M. van der Klip</dc:creator>
		<pubDate>Thu, 10 Jul 2008 07:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=435#comment-325601</guid>
		<description>I have made the same mistake recently. But in my case creating a single volume group was no option, and I think this is often the case. I'll explain.

The server in question was configured with 6 physical harddrives. The first two harddrives (146GB@10k) were on the first channel of the hardware RAID controller and the other four drives (72GB@15k) on the second channel. Next we created 3 hardware RAID1 volumes, giving a 146GB system volume and two 72GB data volumes. Finally we merged the two 72GB data volumes into one using software RAID0, because some benchmarking showed that software RAID0 performed better than hardware RAID0 in our case.

Now onto the LVM configuration. We had only two physical volumes left: a 'slow' 146GB system volume and a 'fast' 72GB data volume. The idea was to put the snapshots for the data volume onto the system volume. We came to the same conclusion as you: creating a snapshot for a logical volume must be done within the same volume group. Merging the two physical volumes into one volume group was no option because of the difference in drive speeds and intention of those physical volumes.

The end result is that we stuck to two physical volumes, two volume groups and two logical volumes. We had to reduce the size of the data logical volume to be able to make snapshots. Most of the part of the system volume is now unused and a waste of money.

Anyone know of a different way we could have solved this?</description>
		<content:encoded><![CDATA[<p>I have made the same mistake recently. But in my case creating a single volume group was no option, and I think this is often the case. I&#8217;ll explain.</p>
<p>The server in question was configured with 6 physical harddrives. The first two harddrives (146GB@10k) were on the first channel of the hardware RAID controller and the other four drives (72GB@15k) on the second channel. Next we created 3 hardware RAID1 volumes, giving a 146GB system volume and two 72GB data volumes. Finally we merged the two 72GB data volumes into one using software RAID0, because some benchmarking showed that software RAID0 performed better than hardware RAID0 in our case.</p>
<p>Now onto the LVM configuration. We had only two physical volumes left: a &#8217;slow&#8217; 146GB system volume and a &#8216;fast&#8217; 72GB data volume. The idea was to put the snapshots for the data volume onto the system volume. We came to the same conclusion as you: creating a snapshot for a logical volume must be done within the same volume group. Merging the two physical volumes into one volume group was no option because of the difference in drive speeds and intention of those physical volumes.</p>
<p>The end result is that we stuck to two physical volumes, two volume groups and two logical volumes. We had to reduce the size of the data logical volume to be able to make snapshots. Most of the part of the system volume is now unused and a waste of money.</p>
<p>Anyone know of a different way we could have solved this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
