<?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>Frozen Industries &#187; file systems</title>
	<atom:link href="http://www.frozenindustries.com/category/file-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frozenindustries.com</link>
	<description>A Project Blog</description>
	<lastBuildDate>Thu, 27 May 2010 15:18:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux Software RAID10 Benchmarks</title>
		<link>http://www.frozenindustries.com/2010/01/31/linux-software-raid10-benchmarks/</link>
		<comments>http://www.frozenindustries.com/2010/01/31/linux-software-raid10-benchmarks/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 21:55:34 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/?p=205</guid>
		<description><![CDATA[Tests are done across four 7200RPM SATAII drives on a PCI-X card sitting on a PCI (32-bit, 133MB/sec theoretical max) bus, probably the slowest bus configuration possible, and then again after being moved to a motherboard with dual PCI-X slots. Server is running Ubuntu 9.10 AMD64 Server. Benchmark is a simple &#8216;dd&#8217; sequential read and [...]]]></description>
			<content:encoded><![CDATA[<p>Tests are done across four 7200RPM SATAII drives on a PCI-X card sitting on a PCI (32-bit, 133MB/sec theoretical max) bus, probably the slowest bus configuration possible, and then again after being moved to a motherboard with dual PCI-X slots. Server is running Ubuntu 9.10 AMD64 Server.</p>
<p>Benchmark is a simple &#8216;dd&#8217; sequential read and write.</p>
<blockquote><p>write: dd if=/dev/zero of=/dev/md2 bs=1M<br />
read: dd if=/dev/md2 of=/dev/null bs=1M</p></blockquote>
<p>mdadm &#8211;create /dev/md2 &#8211;verbose &#8211;level=10 &#8211;layout=n2 &#8211;raid-devices=4 /dev/sd[ftlm]1</p>
<blockquote>
<table>
<tbody>
<tr>
<td></td>
<td>PCI</td>
<td>PCI-X</td>
</tr>
</tbody>
<tbody>
<tr>
<td>write:</td>
<td>13.2 MB/s</td>
<td>144 MB/s</td>
</tr>
<tr>
<td>read:</td>
<td>4.0 MB/s</td>
<td>89.3 MB/s</td>
</tr>
</tbody>
</table>
</blockquote>
<p>mdadm &#8211;create /dev/md2 &#8211;verbose &#8211;level=10 &#8211;layout=f2 &#8211;raid-devices=4 /dev/sd[ftlm]1</p>
<blockquote>
<table>
<tbody>
<tr>
<td></td>
<td>PCI</td>
<td>PCI-X</td>
</tr>
</tbody>
<tbody>
<tr>
<td>write:</td>
<td>48.3 MB/s</td>
<td>131 MB/s</td>
</tr>
<tr>
<td>read:</td>
<td>92.7 MB/s</td>
<td>138 MB/s</td>
</tr>
</tbody>
</table>
</blockquote>
<p>mdadm &#8211;create /dev/md2 &#8211;verbose &#8211;level=10 &#8211;layout=o2 &#8211;raid-devices=4 /dev/sd[ftlm]1</p>
<blockquote>
<table>
<tbody>
<tr>
<td></td>
<td>PCI</td>
<td>PCI-X</td>
</tr>
</tbody>
<tbody>
<tr>
<td>write:</td>
<td>47.4 MB/s</td>
<td>135 MB/s</td>
</tr>
<tr>
<td>read:</td>
<td>98.7 MB/s</td>
<td>142 MB/s</td>
</tr>
</tbody>
</table>
</blockquote>
<p>And more comparisons:</p>
<p>RAID1 (PCI)</p>
<blockquote><p>write: 38.9 MB/s<br />
read: 64.8 MB/s</p></blockquote>
<p>Single Disk (PCI)</p>
<blockquote><p>write: 59.4 MB/s<br />
read: 71.9 MB/s</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2010/01/31/linux-software-raid10-benchmarks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Stale LVM Devices</title>
		<link>http://www.frozenindustries.com/2010/01/23/remove-stale-lvm-devices/</link>
		<comments>http://www.frozenindustries.com/2010/01/23/remove-stale-lvm-devices/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 06:47:04 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/?p=182</guid>
		<description><![CDATA[Have an LVM device left on your system from a drive that was removed before pvremove was run? $ sudo dmsetup remove /dev/mapper/removed-device]]></description>
			<content:encoded><![CDATA[<p>Have an LVM device left on your system from a drive that was removed before pvremove was run?</p>
<blockquote><p>$ sudo dmsetup remove /dev/mapper/removed-device</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2010/01/23/remove-stale-lvm-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace an LVM Drive with a Larger One</title>
		<link>http://www.frozenindustries.com/2009/03/21/replace-an-lvm-drive-with-a-larger-one/</link>
		<comments>http://www.frozenindustries.com/2009/03/21/replace-an-lvm-drive-with-a-larger-one/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 06:56:19 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/?p=125</guid>
		<description><![CDATA[LVM allows you to hot add devices to expand volume space. It also allows you to hot remove devices, as long as there are enough free extents in the volume group (vgdisplay) to move data around. Here I&#8217;m going to replace a 400 GB drive (sdg) with a 750 GB one (sdf) from logical volume [...]]]></description>
			<content:encoded><![CDATA[<p>LVM allows you to hot add devices to expand volume space. It also allows you to hot remove devices, as long as there are enough free extents in the volume group (vgdisplay) to move data around. Here I&#8217;m going to replace a 400 GB drive (sdg) with a 750 GB one (sdf) from logical volume &#8220;backup&#8221; on volume group &#8220;disks&#8221;. It does not matter how many hard drives are in the volume group, and the filesystem can stay mounted.</p>
<ol>
<li>Partition and create a physical volume on the device<br />
<blockquote><p>$ sudo pvcreate /dev/sdh1</p></blockquote>
</li>
<li>Add the new drive to the volume group<br />
<blockquote><p>$ sudo vgextend disks /dev/sdh1</p></blockquote>
</li>
<li>Move all extents from the old drive to the new one (this step may take hours)<br />
<blockquote><p>$  sudo pvmove /dev/sdg1</p></blockquote>
</li>
<li>Remove the old drive<br />
<blockquote><p>$ sudo vgreduce disks /dev/sdg1</p></blockquote>
</li>
<li>Expand the logical volume to use the rest of the disk. In this case, another 350GB.<br />
<blockquote><p>$ sudo lvextend -l+83463 /dev/disks/backup</p></blockquote>
</li>
<li>Expand the file system<br />
<blockquote><p>$ sudo resize2fs /dev/disks/backup</p></blockquote>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2009/03/21/replace-an-lvm-drive-with-a-larger-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mdadm Cheatsheet</title>
		<link>http://www.frozenindustries.com/2008/11/04/building-and-finding-raid-arrays/</link>
		<comments>http://www.frozenindustries.com/2008/11/04/building-and-finding-raid-arrays/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 18:49:15 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/?p=101</guid>
		<description><![CDATA[Scan a system for RAID arrays and save findings so the array reappears across reboots: # mdadm --detail --scan &#62;&#62; /etc/mdadm/mdadm.conf Create a RAID5 array out of sdm1, sdj1, and sdk1 (all partitioned with raid-autodetect partitions) # mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sd[mjk]1 Create a RAID1 array # mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sd[ts]1 Remove [...]]]></description>
			<content:encoded><![CDATA[<p>Scan a system for RAID arrays and save findings so the array reappears across reboots:</p>
<blockquote><p><code># mdadm --detail --scan &gt;&gt; /etc/mdadm/mdadm.conf</code></p></blockquote>
<p>Create a RAID5 array out of sdm1, sdj1, and sdk1 (all partitioned with raid-autodetect partitions)</p>
<blockquote><p><code># mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sd[mjk]1</code></p></blockquote>
<p>Create a RAID1 array</p>
<blockquote><p><code># mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sd[ts]1</code></p></blockquote>
<p>Remove a RAID array</p>
<blockquote><p><code># mdadm --stop /dev/md1<br />
# mdadm --zero-superblock /dev/sd[ts]1</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2008/11/04/building-and-finding-raid-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hdparm -t /dev/md0</title>
		<link>http://www.frozenindustries.com/2007/06/22/hdparm-t-devmd0/</link>
		<comments>http://www.frozenindustries.com/2007/06/22/hdparm-t-devmd0/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 14:25:49 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2007/06/22/hdparm-t-devmd0/</guid>
		<description><![CDATA[/dev/md0: Timing buffered disk reads: 1248 MB in 3.00 seconds = 415.65 MB/sec]]></description>
			<content:encoded><![CDATA[<blockquote><p><code>/dev/md0:<br />
Timing buffered disk reads:  1248 MB in  3.00 seconds = 415.65 MB/sec</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2007/06/22/hdparm-t-devmd0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MDADM Versions</title>
		<link>http://www.frozenindustries.com/2007/06/16/mdadm-versions/</link>
		<comments>http://www.frozenindustries.com/2007/06/16/mdadm-versions/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 20:36:24 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2007/06/16/mdadm-versions/</guid>
		<description><![CDATA[mdadm - kernel - distro 1.12.0 - 2.6.15 - Ubuntu 6.06 LTS 2.5.6 - 2.6.20 - Ubuntu 7.04 2.6.3 - 2.6.24 - Ubuntu 8.04 LTS 2.6.7 - 2.6.27 - Ubuntu 8.10 2.6.7.1 - 2.6.28 - Ubuntu 9.04 1.12.0 - 2.6.9 - CentOS 4.5 2.5.4 - 2.6.18 - CentOS 5.0 2.5.6 - 2.6.18 - Debian 4.0r0 [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><code>mdadm - kernel - distro</code></p></blockquote>
<blockquote><p><code>1.12.0 - 2.6.15 - Ubuntu 6.06 LTS</code><code><br />
2.5.6  - 2.6.20 - Ubuntu 7.04</code><br />
<code>2.6.3 - 2.6.24 - Ubuntu 8.04 LTS<br />
2.6.7 - 2.6.27 - Ubuntu 8.10<br />
</code><code>2.6.7.1 - 2.6.28 - Ubuntu 9.04</code><br />
<code> 1.12.0 - 2.6.9  - CentOS 4.5</code><br />
<code>2.5.4  - 2.6.18 - CentOS 5.0</code><br />
<code>2.5.6  - 2.6.18 - Debian 4.0r0</code><br />
<code>2.6.1  - 2.6.21 - Fedora 7</code></p></blockquote>
<p>MDADM 2.x on kernels &gt;2.6.17 supports online resizing of RAID 5 arrays <img src='http://www.frozenindustries.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2007/06/16/mdadm-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed Up Rebuilding Linux Software RAID Arrarys</title>
		<link>http://www.frozenindustries.com/2007/05/16/speed-up-rebuilding-linux-raid-arrarys/</link>
		<comments>http://www.frozenindustries.com/2007/05/16/speed-up-rebuilding-linux-raid-arrarys/#comments</comments>
		<pubDate>Wed, 16 May 2007 17:16:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2007/05/16/speed-up-rebuilding-linux-raid-arrarys/</guid>
		<description><![CDATA[# cat /proc/mdstat md0 : active raid5 sdf1[7] sdb1[0] sde1[5] sdg1[4] sdh1[3] sdd1[2] sdc1[1] 1465175424 blocks level 5, 64k chunk, algorithm 2 [7/6] [UUUUUU_] [&#62;....................] recovery = 1.3% (3331200/244195904) finish=2357.0min speed=1700K/sec Ouch. Two files are used to control the speed of rebuilding RAID arrays in Linux. /proc/sys/dev/raid/speed_limit_min /proc/sys/dev/raid/speed_limit_max Even though my _max file is set [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p># cat /proc/mdstat</p></blockquote>
<blockquote><p>md0 : active raid5 sdf1[7] sdb1[0] sde1[5] sdg1[4] sdh1[3] sdd1[2] sdc1[1]<br />
1465175424 blocks level 5, 64k chunk, algorithm 2 [7/6] [UUUUUU_]<br />
[&gt;....................]  recovery =  1.3% (3331200/244195904) <strong>finish=2357.0min speed=1700K/sec</strong></p></blockquote>
<p>Ouch. Two files are used to control the speed of rebuilding RAID arrays in Linux.</p>
<blockquote><p>/proc/sys/dev/raid/speed_limit_min<br />
/proc/sys/dev/raid/speed_limit_max</p></blockquote>
<p>Even though my _max file is set to 200,000K/sec and my system is not doing anything, my RAID 5 rebuild process is hovering around the _min rebuild speed, of 1,000K/sec. With my setup this will take approximately 40 hours to complete, which is too long for me to wait.  So, I pushed the _min speed up to 10,000K/sec, which will now take 6 hours to finish, and use slightly more of my system&#8217;s idle resources.</p>
<blockquote><p>root# echo &#8220;10000&#8243; &gt; /proc/sys/dev/raid/speed_limit_min</p></blockquote>
<p>Later I set _min to 50,000K/sec, and the rebuild speed topped out at 25,000K/sec.</p>
<blockquote><p> #cat /proc/mdstat</p>
<p>Personalities : [raid5]<br />
md0 : active raid5 sdf1[7] sdb1[0] sde1[5] sdg1[4] sdh1[3] sdd1[2] sdc1[1]<br />
1465175424 blocks level 5, 64k chunk, algorithm 2 [7/6] [UUUUUU_]<br />
[=&gt;...................]  recovery =  5.1% (12661840/244195904) <strong>finish=149.9min speed=25726K/sec</strong></p></blockquote>
<p>The rebuild took less than 3 hours, down from the original 40.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2007/05/16/speed-up-rebuilding-linux-raid-arrarys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swap Hard Drives with Ubuntu 6.10</title>
		<link>http://www.frozenindustries.com/2007/01/16/swap-hard-drives-with-ubuntu-610/</link>
		<comments>http://www.frozenindustries.com/2007/01/16/swap-hard-drives-with-ubuntu-610/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 20:50:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2007/01/16/swap-hard-drives-with-ubuntu-610/</guid>
		<description><![CDATA[I recently upgrade my main workstation&#8217;s hard drive under Ubuntu 6.10 and noticed a couple things changed during the process. Here are my instructions for a fast and reliably hard drive swap. I&#8217;m using SATA drives without LVM using the default Ubuntu install and partition options for this howto. Prepare Shutdown your machine and install [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgrade my main workstation&#8217;s hard drive under Ubuntu 6.10 and noticed a couple things changed during the process. Here are my instructions for a fast and reliably hard drive swap. I&#8217;m using SATA drives without LVM using the default Ubuntu install and partition options for this howto.</p>
<ol>
<li>Prepare</li>
<ol>
<li>Shutdown your machine and install your new hard drive. Don&#8217;t mess with your current hard drive (yet)</li>
<li>Find a LiveCD, I used the Ubuntu 6.10 LiveCD, it matched my OS, but it doesn&#8217;t have to. Knoppix should work fine.</li>
<li>Boot using your LiveCD</li>
<li>After booting, open a terminal and &#8220;sudo su&#8221; to become root</li>
</ol>
<li>Setup your new drive</li>
<ol>
<li>Use <strong>cfdisk /dev/sda</strong> to look at your partitions on your current drive. I have sda1 of type linux as most of my current drive, and a 6 GB sda5 as linux swap at the end</li>
<li>Duplicate this on your new drive using <strong>cfdisk /dev/sdb</strong>, adjusting for space as necessary. I created a new primary partition using cfdisk using all but 6 GB of space, then a new logical partition using the rest of the space. You must create the partitions in this order to get the right numbering</li>
<li>make the primary partition to bootable</li>
<li>set the swap partition as type 82 (linux swap)</li>
<li>save and quit</li>
<li>create filesystems on the new partitions using <strong>mkfs.ext3 /dev/sdb1</strong> and <strong>mkswap /dev/sdb5</strong></li>
</ol>
<li>Copy data</li>
<ol>
<li>Make directories to mount your old and new partitions, in this case, /mnt/sda1 and /mnt/sdb1</li>
<li>Mount your drives to these partitions using <strong>mount /dev/sda1 /mnt/sda1</strong> and <strong>mount /dev/sdb1 /mnt/sdb1</strong></li>
<li>Copy all your data from your old drive to your new drive using <strong>cp -a /mnt/sda1/* /mnt/sdb1/ </strong>. The -a will preserve owners, permissions, date, etc.</li>
<li>Get up and do something else. It took 70 minutes for my machine to copy about 150 GB of data from one drive to the other</li>
</ol>
<li>Fix the boot options</li>
<ol>
<li>This is where Ubuntu 6.10 differs from previous versions. Fstab and menu.lst both use UUID numbers to find partitions. To get the UUID number of your new partitions, run <strong>vol_id /dev/sdb1</strong> and <strong>vol_id /dev/sdb5</strong> . Copy these numbers into their appropriate places in your /mnt/sdb1/etc/fstab and /mnt/sdb1/boot/grub/menu.lst files. You may need to dig around the menu.lst to find all the entries.</li>
<li>Now install grub onto the MBR of the new drive to make it bootable. To do this I first chroot into my new system using <strong>chroot /mnt/sdb1 /bin/bash</strong> . Now that you&#8217;re in the new system, run <strong>grub</strong>. Inside grub, run <strong>setup (hd1,0)</strong> then <strong>root (hd1)</strong> . This will differ if you have a different drive setup. Quit grub (<strong>quit</strong>).</li>
</ol>
<li>Finish up</li>
<ol>
<li>Logout of your chroot (<strong>logout</strong>), unmount your mounted drives <strong>umount /dev/sda1</strong> and <strong>umount /dev/sdb1</strong>, and shutdown your computer. Disconnect your old drive, plug your new drive into the old drive&#8217;s cable, and start your computer back up. If everything went well, it will boot back up as if nothing happened.</li>
</ol>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2007/01/16/swap-hard-drives-with-ubuntu-610/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Couple Ways to Run FSCK on Ubuntu</title>
		<link>http://www.frozenindustries.com/2006/11/19/a-couple-ways-to-run-fsck-on-ubuntu/</link>
		<comments>http://www.frozenindustries.com/2006/11/19/a-couple-ways-to-run-fsck-on-ubuntu/#comments</comments>
		<pubDate>Sun, 19 Nov 2006 19:32:08 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2006/11/19/a-couple-ways-to-run-fsck-on-ubuntu/</guid>
		<description><![CDATA[My server decided that an executable file didn&#8217;t really exist on the file system, or so I thought. Lack of sleep was the main problem, but here are some things I did to check my file system for errors. I setup this file system on a Ubuntu 6.06 AMD64 install with LVM, so everything is [...]]]></description>
			<content:encoded><![CDATA[<p>My server decided that an executable file didn&#8217;t really exist on the file system, or so I thought. Lack of sleep was the main problem, but here are some things I did to check my file system for errors. I setup this file system on a Ubuntu 6.06 AMD64 install with LVM, so everything is in LVM instead of standard partitions.</p>
<blockquote><p># sudo e2fsck -n /dev/mapper/Ubuntu-root</p></blockquote>
<p>This was showing errors, but I ran it while the system was mounted and running, so there were open files, so this was normal. The -n kept e2fsck from attempting to fix anything, which was good because later I ran the command after booting from an Ubuntu LiveCD and found no errors.</p>
<p>Before booting from the LiveCD I tried to get the system to fix itself by running fsck on boot. Two methods I used to do this on Ubuntu were running these from the live system before rebooting, they both accomplish the same thing, so only one was really needed.</p>
<blockquote><p># sudo touch /forcefsck</p>
<p># sudo tune2fs -C 40 /dev/mapper/Ubuntu-root</p></blockquote>
<p>These appeared to have no affect, probably because the filesystem was fine, but I took down the system and ran fsck from a LiveCD instead. Of course, this wasn&#8217;t as simple as it should have been, the LiveCD did not detect my LVM volumes, so /dev/mapper/Ubuntu-root was missing. The fix was to install LVM2 and start it up.</p>
<blockquote><p># sudo apt-get install lvm2<br />
# sudo /etc/init.d/lvm start</p></blockquote>
<p>The /dev/mapper/ entries then appeared and I could run all the fscks I wanted. At this point my fsck checks were coming out clean, so file system corruption was not to blame.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2006/11/19/a-couple-ways-to-run-fsck-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Drive to an LVM Volume</title>
		<link>http://www.frozenindustries.com/2006/09/25/add-a-drive-to-an-lvm-volume/</link>
		<comments>http://www.frozenindustries.com/2006/09/25/add-a-drive-to-an-lvm-volume/#comments</comments>
		<pubDate>Tue, 26 Sep 2006 05:24:17 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[file systems]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.frozenindustries.com/2006/09/25/add-a-drive-to-an-lvm-volume/</guid>
		<description><![CDATA[This guide shows how to add a drive to an existing LVM volume. Erase the partition table on drive /dev/hdd and create the Physical volume # dd if=/dev/zero of=/dev/hdd bs=1024k count=1 # pvcreate /dev/hdd Look at the current volume group, for fun # sudo vgdisplay -A &#8212; Volume group &#8212; VG Name disks System ID [...]]]></description>
			<content:encoded><![CDATA[<p>This guide shows how to add a drive to an existing LVM volume.</p>
<ol>
<li>Erase the partition table on drive /dev/hdd and create the Physical volume</li>
</ol>
<blockquote><p># dd if=/dev/zero of=/dev/hdd bs=1024k count=1<br />
# pvcreate /dev/hdd</p></blockquote>
<ol>
<li value="2">Look at the current volume group, for fun</li>
</ol>
<blockquote><p># sudo vgdisplay -A</p></blockquote>
<blockquote><p>&#8212; Volume group &#8212;<br />
VG Name               disks<br />
System ID<br />
Format                lvm2<br />
Metadata Areas        7<br />
Metadata Sequence No  2<br />
VG Access             read/write<br />
VG Status             resizable<br />
MAX LV                0<br />
Cur LV                1<br />
Open LV               1<br />
Max PV                0<br />
Cur PV                7<br />
Act PV                7<br />
<strong> VG Size               859.70 GB<br />
PE Size               4.00 MB<br />
Total PE              220084<br />
Alloc PE / Size       220084 / 859.70 GB<br />
Free  PE / Size       0 / 0</strong><br />
VG UUID               N4TcI6-DIRS-3edy-FAa0-tdUL-MTSX-bs2lJE</p></blockquote>
<ol>
<li value="3">Add the Physical Volume to the existing Volume Group, which I creatively named &#8220;disks&#8221;</li>
</ol>
<blockquote><p># sudo vgextend disks /dev/hdd</p></blockquote>
<ol>
<li value="4">Look at the current Volume Group again, my how it has grown</li>
</ol>
<blockquote><p># sudo vgdisplay -A</p></blockquote>
<blockquote><p>&#8212; Volume group &#8212;<br />
-snip-<br />
<strong> VG Size               1.11 TB<br />
PE Size               4.00 MB<br />
Total PE              291625<br />
Alloc PE / Size       220084 / 859.70 GB<br />
Free  PE / Size       71541 / 279.46 GB</strong></p></blockquote>
<ol>
<li value="5">Extend the Logical Volume, this time named &#8220;backup&#8221;, use the free extents reported by vgdisplay</li>
</ol>
<blockquote><p># sudo lvextend -l+71541 /dev/disks/backup</p>
<p>Extending logical volume backup to 1.11 TB<br />
Logical volume backup successfully resized</p></blockquote>
<ol>
<li value="6">And then look at vgdisplay again, whee</li>
</ol>
<blockquote><p># sudo vgdisplay -A</p></blockquote>
<blockquote><p>&#8212; Volume group &#8212;<br />
-snip-<br />
<strong>  VG Size               1.11 TB<br />
PE Size               4.00 MB<br />
Total PE              291625<br />
Alloc PE / Size       291625 / 1.11 TB<br />
Free  PE / Size       0 / 0</strong></p></blockquote>
<ol>
<li value="7">Now the final and most exciting step, expanding the filesystem. You&#8217;re using XFS right? And here&#8217;s a surprise, it should be mounted when you resize it. xfs_growfs will automatically resize the XFS filesystem to use all the available free space, and do it in less than a second.</li>
</ol>
<blockquote><p># sudo xfs_growfs /backup</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frozenindustries.com/2006/09/25/add-a-drive-to-an-lvm-volume/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
