<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: LVM FYI</title>
	<atom:link href="http://pthree.org/2008/01/09/lvm-fyi/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2008/01/09/lvm-fyi/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<pubDate>Sat, 30 Aug 2008 05:34:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-hemorrhage</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tony Yarusso</title>
		<link>http://pthree.org/2008/01/09/lvm-fyi/#comment-88329</link>
		<dc:creator>Tony Yarusso</dc:creator>
		<pubDate>Wed, 09 Jan 2008 20:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2008/01/09/lvm-fyi/#comment-88329</guid>
		<description>I've been trying to diligently do backups to avoid this sort of thing, but I've been disappointed in what's out there.  However, sbackup ("Simple Backup Suite") is really close - all I ask is the addition of scp so that it can make use of passwordless SSH-key-enabled authentication rather than storing passwords in config files.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to diligently do backups to avoid this sort of thing, but I&#8217;ve been disappointed in what&#8217;s out there.  However, sbackup (&#8221;Simple Backup Suite&#8221;) is really close - all I ask is the addition of scp so that it can make use of passwordless SSH-key-enabled authentication rather than storing passwords in config files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbr</title>
		<link>http://pthree.org/2008/01/09/lvm-fyi/#comment-88307</link>
		<dc:creator>dbr</dc:creator>
		<pubDate>Wed, 09 Jan 2008 15:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2008/01/09/lvm-fyi/#comment-88307</guid>
		<description>2/Serge van Ginderacht:
It's as big a bug as rm -rf /, really. It just wipes the disc because you told it to create a LVM volume on that disc.

One thing, although probably too late if you're installing stuff back over it. If you created a new partition on the disc, chances are you've not actually destroyed the data, just the refernces too it (I.e it's still on the disc)

The author of the http://www.linux.com/articles/56588 article has more or less the same problem as you (wiped data accidently), and includes a fairly detail description of how he recovered the data.</description>
		<content:encoded><![CDATA[<p>2/Serge van Ginderacht:<br />
It&#8217;s as big a bug as rm -rf /, really. It just wipes the disc because you told it to create a LVM volume on that disc.</p>
<p>One thing, although probably too late if you&#8217;re installing stuff back over it. If you created a new partition on the disc, chances are you&#8217;ve not actually destroyed the data, just the refernces too it (I.e it&#8217;s still on the disc)</p>
<p>The author of the <a href="http://www.linux.com/articles/56588" rel="nofollow">http://www.linux.com/articles/56588</a> article has more or less the same problem as you (wiped data accidently), and includes a fairly detail description of how he recovered the data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge van Ginderacht</title>
		<link>http://pthree.org/2008/01/09/lvm-fyi/#comment-88291</link>
		<dc:creator>Serge van Ginderacht</dc:creator>
		<pubDate>Wed, 09 Jan 2008 10:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2008/01/09/lvm-fyi/#comment-88291</guid>
		<description>Ouch, I read over  the exact statements. Like Dennis says, 'pvcreate' only a diskpartition which is not in use yet :-)</description>
		<content:encoded><![CDATA[<p>Ouch, I read over  the exact statements. Like Dennis says, &#8216;pvcreate&#8217; only a diskpartition which is not in use yet <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge van Ginderacht</title>
		<link>http://pthree.org/2008/01/09/lvm-fyi/#comment-88290</link>
		<dc:creator>Serge van Ginderacht</dc:creator>
		<pubDate>Wed, 09 Jan 2008 10:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2008/01/09/lvm-fyi/#comment-88290</guid>
		<description>Can you elaborate on what exactly happens? Is this a known bug? What is crashing exactly? The whole LVM system? The current volume group? thx</description>
		<content:encoded><![CDATA[<p>Can you elaborate on what exactly happens? Is this a known bug? What is crashing exactly? The whole LVM system? The current volume group? thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Krul</title>
		<link>http://pthree.org/2008/01/09/lvm-fyi/#comment-88284</link>
		<dc:creator>Dennis Krul</dc:creator>
		<pubDate>Wed, 09 Jan 2008 09:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pthree.org/2008/01/09/lvm-fyi/#comment-88284</guid>
		<description>Uhm.. If you want to create a logical volume you have to use the lvcreate command. The pvcreate command creates a physical volume.

Only use pvcreate on empty disks! And then use vgcreate to create a volume group on it (or vgextend to extend an existing one). After that use lvcreate to create a logical volume on the volume group.

That being said, in most cases you can recover from a broken LVM configuration. Boot from a rescue cd. Find your backups in /etc/lvm/backup and you can look up the disk id's and write them back to your physical disk using pvcreate --uuid [id-from-lvm-backup] /dev/disk. Then reactivate your volumegroup (vgchange -a y /dev/vgname) and mount your logical volumes like nothing happened. 

That is ofcourse a bit more complicated when /etc resides on the volume group you're trying to recover ;)</description>
		<content:encoded><![CDATA[<p>Uhm.. If you want to create a logical volume you have to use the lvcreate command. The pvcreate command creates a physical volume.</p>
<p>Only use pvcreate on empty disks! And then use vgcreate to create a volume group on it (or vgextend to extend an existing one). After that use lvcreate to create a logical volume on the volume group.</p>
<p>That being said, in most cases you can recover from a broken LVM configuration. Boot from a rescue cd. Find your backups in /etc/lvm/backup and you can look up the disk id&#8217;s and write them back to your physical disk using pvcreate &#8211;uuid [id-from-lvm-backup] /dev/disk. Then reactivate your volumegroup (vgchange -a y /dev/vgname) and mount your logical volumes like nothing happened. </p>
<p>That is ofcourse a bit more complicated when /etc resides on the volume group you&#8217;re trying to recover <img src='http://pthree.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
