<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>花开的地方 &#187; LVM</title>
	<atom:link href="http://www.bsdmap.com/tag/lvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bsdmap.com</link>
	<description>花开，没有声音……</description>
	<lastBuildDate>Sat, 04 Feb 2012 21:18:36 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19814</generator>
		<item>
		<title>LVM下的硬连接问题</title>
		<link>http://www.bsdmap.com/2009/04/25/lvm-hardlink/</link>
		<comments>http://www.bsdmap.com/2009/04/25/lvm-hardlink/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 17:09:20 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hardlink]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[pdumpfs]]></category>

		<guid isPermaLink="false">http://www.bsdmap.com/?p=1187</guid>
		<description><![CDATA[　　之前在使用pdumpfs备份时，发现并没有像之前使用时的那样，使用 hardlink 的方式存储没有变化的文件，之后又发现在 LVM 管理的卷中建立文件的hardlink时，有时会失败。 　　那么，也就是说，hardlink真的像原始文档中说的那样，只能在同一物理设备上使用，即使是LVM（device-mapper）这样逻辑上的设备也不行。 　　于是，在LVM使用硬连接时，不一定总是成功的。]]></description>
			<content:encoded><![CDATA[<p>　　之前在使用pdumpfs备份时，发现并没有像之前使用时的那样，使用 hardlink 的方式存储没有变化的文件，之后又发现在 LVM 管理的卷中建立文件的hardlink时，有时会失败。<br />
　　那么，也就是说，hardlink真的像原始文档中说的那样，只能在同一物理设备上使用，即使是LVM（device-mapper）这样逻辑上的设备也不行。<br />
　　于是，在LVM使用硬连接时，不一定总是成功的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2009/04/25/lvm-hardlink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lvm性能相关</title>
		<link>http://www.bsdmap.com/2009/01/11/lvm-kcopyd/</link>
		<comments>http://www.bsdmap.com/2009/01/11/lvm-kcopyd/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 18:11:54 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[随便写写]]></category>
		<category><![CDATA[kcopyd]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[lvm性能]]></category>

		<guid isPermaLink="false">http://www.bsdmap.com/?p=963</guid>
		<description><![CDATA[发现当使用“快照”备份“lv”之后，在往服务器里写入文件时（大文件，内网快速写入），发现有kcopyd进程时常阻塞，系统负载达到2/3/4（在2、3、4之间徘徊，具体硬件应该会有所不同，仅供参考）之高，搜索kcopyd相关的信息了解到跟lvm中快照有关。 将系统中的卷快照删除之后，就不再有kcopyd阻塞的情况，并且系统负载也降了下来。]]></description>
			<content:encoded><![CDATA[<p>发现当使用“快照”备份“lv”之后，在往服务器里写入文件时（大文件，内网快速写入），发现有kcopyd进程时常阻塞，系统负载达到2/3/4（在2、3、4之间徘徊，具体硬件应该会有所不同，仅供参考）之高，搜索kcopyd相关的信息了解到跟lvm中快照有关。</p>
<p>将系统中的卷快照删除之后，就不再有kcopyd阻塞的情况，并且系统负载也降了下来。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2009/01/11/lvm-kcopyd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dell PowerEdge 860 安装Debian GNU/Linux 4.0 (i386) 时使用LVM遇到Waiting for root filesystem</title>
		<link>http://www.bsdmap.com/2007/12/26/pe860-debian40/</link>
		<comments>http://www.bsdmap.com/2007/12/26/pe860-debian40/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 08:25:35 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[PowerEdge 860]]></category>
		<category><![CDATA[Waiting for root filesystem]]></category>

		<guid isPermaLink="false">http://www.bsdmap.com/~nnix/2007/12/26/dell-poweredge-860-%e5%ae%89%e8%a3%85debian-gnulinux-40-i386-%e6%97%b6lvm%e4%b8%8d%e7%a8%b3%e5%ae%9a/</guid>
		<description><![CDATA[　　Dell PowerEdge 860 安装Debian GNU/Linux 4.0 (i386) 时，我使用了LVM，结果在重启的过程中遇到了找不到卷组，Waiting for root filesystem的提示。不排除是我这台设备的问题。由于时间关系，我没有在其它同型号设备上做LVM安装。 我现在就在机房安装PE860，发现重启的时候偶尔会遇到LVM不工作，提示找不到vg0（卷组)。实际上是遇到了两次，第一次还以为是安装问题，第二次又出现，就有些担心了，于是不敢在这台设备上使用LVM。不得不再重装一次。 补充，貌似不是LVM的问题，在安装第二台的时候，没有使用LVM，但在重启之后，也出现了一次Waiting for root filesystem…… 找到一篇全英的文章： 大致的解决办法是，假如真的完全进入不了系统（我还是比较幸运的，只是偶尔进不去系统），可以用急救盘启动，然后 chroot /mnt/debian /bin/bash apt-get upgade apt-get install udev]]></description>
			<content:encoded><![CDATA[<p>　　Dell PowerEdge 860 安装Debian GNU/Linux 4.0 (i386) 时，我使用了LVM，结果在重启的过程中遇到了找不到卷组，Waiting for root filesystem的提示。不排除是我这台设备的问题。由于时间关系，我没有在其它同型号设备上做LVM安装。</p>
<p>我现在就在机房安装PE860，发现重启的时候偶尔会遇到LVM不工作，提示找不到vg0（卷组)。实际上是遇到了两次，第一次还以为是安装问题，第二次又出现，就有些担心了，于是不敢在这台设备上使用LVM。不得不再重装一次。</p>
<p>补充，貌似不是LVM的问题，在安装第二台的时候，没有使用LVM，但在重启之后，也出现了一次Waiting for root filesystem……</p>
<p>找到一篇全英的文章：</p>
<p>大致的解决办法是，假如真的完全进入不了系统（我还是比较幸运的，只是偶尔进不去系统），可以用急救盘启动，然后</p>
<p>chroot /mnt/debian /bin/bash</p>
<p>apt-get upgade</p>
<p>apt-get install udev</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2007/12/26/pe860-debian40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lvcreate -s</title>
		<link>http://www.bsdmap.com/2007/12/02/lvcreate-s/</link>
		<comments>http://www.bsdmap.com/2007/12/02/lvcreate-s/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 11:16:49 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lvcreate]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[snaphot]]></category>

		<guid isPermaLink="false">http://bsdmap.org/~nix/2007/12/02/lvcreate-s/</guid>
		<description><![CDATA[Create a snapshot logical volume (or snapshot) for an  existing, so  called  original logical volume (or origin).  Snapshots provide a &#8216;frozen image&#8217;of the contents of the  origin  while  the origin  can still be updated. They enable consistent backups and online recovery of removed/overwritten data/files. The  snapshot does  not  need  the same amount of storage the [...]]]></description>
			<content:encoded><![CDATA[<p>Create a snapshot logical volume (or snapshot) for an  existing, so  called  original logical volume (or origin).  Snapshots provide a &#8216;frozen image&#8217;of the contents of the  origin  while  the origin  can still be updated. They enable consistent backups and online recovery of removed/overwritten data/files. The  snapshot does  not  need  the same amount of storage the origin has. In a typical scenario, 15-20% might be enough. In case  the  snapshot runs  out  of  storage,  use lvextend(8) to grow it. Shrinking a snapshot is supported by lvreduce(8) as well.  Run  lvdisplay(8) on  the snapshot in order to check how much data is allocated to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2007/12/02/lvcreate-s/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LVM1使用备忘</title>
		<link>http://www.bsdmap.com/2007/11/23/lvm1%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/</link>
		<comments>http://www.bsdmap.com/2007/11/23/lvm1%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 16:06:19 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://bsdmap.org/~nix/2007/11/23/lvm1%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/</guid>
		<description><![CDATA[删除vg时，提供vg被active不能删除。 使用lvmchange -R　(reset lvm) 然后就可以删除了 扩展lv的大小(可以在线操作，即在lv被mount的状态下操作） lvextend -l +10G /dev/vg0/dbslave 接着需要扩展文件系统的大小了，ext2/ext3文件系统使用e2fsprogs软件包里的工具resize2fs 需要在umont的状态下操作，操作之前需要先fsck文件系统 e2fsck /dev/vg0/dbslave resize2fs /dev/vg0/dbslave 在线扩展lv的文件系统，需要使用LVM带的e2fsadm工具，不过这个工具需要使用/sbin/ext2online这个工具。]]></description>
			<content:encoded><![CDATA[<p>删除vg时，提供vg被active不能删除。<br />
使用lvmchange -R　(reset lvm)<br />
然后就可以删除了</p>
<p>扩展lv的大小(可以在线操作，即在lv被mount的状态下操作）<br />
lvextend -l +10G /dev/vg0/dbslave</p>
<p>接着需要扩展文件系统的大小了，ext2/ext3文件系统使用e2fsprogs软件包里的工具resize2fs<br />
需要在umont的状态下操作，操作之前需要先fsck文件系统<br />
e2fsck /dev/vg0/dbslave<br />
resize2fs /dev/vg0/dbslave</p>
<p>在线扩展lv的文件系统，需要使用LVM带的e2fsadm工具，不过这个工具需要使用/sbin/ext2online这个工具。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2007/11/23/lvm1%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LVM2使用备忘</title>
		<link>http://www.bsdmap.com/2007/11/22/lvm2%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/</link>
		<comments>http://www.bsdmap.com/2007/11/22/lvm2%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 17:33:12 +0000</pubDate>
		<dc:creator>洪川</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://bsdmap.org/~nix/2007/11/22/lvm2%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/</guid>
		<description><![CDATA[初始化配置文件 vgscan 建立物理卷 pvcreate /dev/sda2 pvcreate /dev/sda3 建立卷组 vgcreate  vg0 /dev/sda2 扩展逻辑卷 vgextend vg0 /dev/sda3 建立逻辑卷 lvcreate -L 60G -n lv_name  vg0 删除逻辑卷 lvremove /dev/vg0/lv_name 扩充和减小逻辑卷的容量 #e2fsadm -L +100M /dev/vg0/vg1   -L 表示增减空间 +表示加 -表示建 #e2fsadm -L -100M /dev/vg0/vg1 这里要注意文件系统必需是ext2或ext3,而且需要卸载文件系统来执行,减小的时候需要知道剪掉空间的大小,不然会造成丢失]]></description>
			<content:encoded><![CDATA[<p>初始化配置文件<br />
vgscan</p>
<p>建立物理卷<br />
pvcreate /dev/sda2<br />
pvcreate /dev/sda3</p>
<p>建立卷组<br />
vgcreate  vg0 /dev/sda2</p>
<p>扩展逻辑卷<br />
vgextend vg0 /dev/sda3</p>
<p>建立逻辑卷<br />
lvcreate -L 60G -n lv_name  vg0</p>
<p>删除逻辑卷<br />
lvremove /dev/vg0/lv_name</p>
<p>扩充和减小逻辑卷的容量<br />
#e2fsadm -L +100M /dev/vg0/vg1  <br />
-L 表示增减空间 +表示加 -表示建<br />
#e2fsadm -L -100M /dev/vg0/vg1<br />
这里要注意文件系统必需是ext2或ext3,而且需要卸载文件系统来执行,减小的时候需要知道剪掉空间的大小,不然会造成丢失</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdmap.com/2007/11/22/lvm2%e4%bd%bf%e7%94%a8%e5%a4%87%e5%bf%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

