<?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>Cyberward.net &#187; rsync</title>
	<atom:link href="http://www.cyberward.net/blog/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberward.net/blog</link>
	<description>The Drive Failures and Shutter Clicks of Christopher Ward</description>
	<lastBuildDate>Mon, 03 Oct 2011 13:00:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Resizing a logical volume</title>
		<link>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/</link>
		<comments>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 03:01:28 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Building a NAS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=91</guid>
		<description><![CDATA[I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command. rsync --exclude=".*" -ave ssh /my/masters userId@x.x.x.y:/media/pictures This will copy everything new from /my/masters to the backup machine at /media/pictures without copying any &#8220;dot&#8221; files. This also does not delete anything from the new machine. Anyway, I was doing [...]]]></description>
			<content:encoded><![CDATA[<p>I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command.</p>
<pre>rsync --exclude=".*" -ave ssh /my/masters userId@x.x.x.y:/media/pictures</pre>
<p>This will copy everything new from /my/masters to the backup machine at /media/pictures without copying any &#8220;dot&#8221; files. This also does not delete anything from the new machine.</p>
<p>Anyway, I was doing the rsync, but ran out of space on the backup box. A ctrl-z, and now I need to make more space. I am running ext3, so it should be just a few commands. First I unmounted (umount) the filesystems just to be sure. Then :</p>
<pre>lvextend -L +40G /dev/vg/pictures</pre>
<p>This will grow the logical volume by 40 gig. Next we need to resize the filesystem to fill up the space.</p>
<pre>resize2fs /dev/vg/pictures</pre>
<p>I have done this before, but this time I got a message to run e2fsck first.</p>
<pre>e2fsck -f /dev/vg/pictures</pre>
<p>This finished without issue, and I then ran the resize2fs command and it finished after a couple of minutes. Remount the filesystem, a &#8220;df&#8221; and it confirms that there is more space available.</p>
<p>I removed the last file copied to make sure it wasn&#8217;t wrecked somehow, and then kicked off the rsync again. It just picked up where it left off.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/09/resizing-a-logical-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I need more space.</title>
		<link>http://www.cyberward.net/blog/2008/05/i-need-more-space/</link>
		<comments>http://www.cyberward.net/blog/2008/05/i-need-more-space/#comments</comments>
		<pubDate>Fri, 30 May 2008 00:39:21 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=16</guid>
		<description><![CDATA[So after I talked about my backup strategy, I went and started my command to sync my pictures. I went to checkup on it, and it was stuck. I checked, and I was out of space. Oh oh. I stopped the sync. Now what? Well, the drives are sporting LVM2, and I had extra space [...]]]></description>
			<content:encoded><![CDATA[<p>So after I talked about my backup strategy, I went and started my command to sync my pictures. I went to checkup on it, and it was stuck. I checked, and I was out of space. Oh oh. I stopped the sync. Now what? Well, the drives are sporting LVM2, and I had extra space available, so I just added some.</p>
<p>First add some more space to the volume:<br />
# lvextend -L +1G /dev/vgnas/pictures</p>
<p>Then tell ext3 about the extra space.<br />
# resize2fs /dev/vgnas/pictures</p>
<p>Thats it. I did it live, without unmounting. I then went back to my rsync command, and it continued right where it left off. Sometimes I really like linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/05/i-need-more-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

