{"id":91,"date":"2008-09-25T22:01:28","date_gmt":"2008-09-26T03:01:28","guid":{"rendered":"http:\/\/www.cyberward.net\/blog\/?p=91"},"modified":"2008-09-25T22:01:28","modified_gmt":"2008-09-26T03:01:28","slug":"resizing-a-logical-volume","status":"publish","type":"post","link":"http:\/\/www.cyberward.net\/blog\/2008\/09\/resizing-a-logical-volume\/","title":{"rendered":"Resizing a logical volume"},"content":{"rendered":"<p>I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command.<\/p>\n<pre>rsync --exclude=\".*\" -ave ssh \/my\/masters userId@x.x.x.y:\/media\/pictures<\/pre>\n<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>\n<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>\n<pre>lvextend -L +40G \/dev\/vg\/pictures<\/pre>\n<p>This will grow the logical volume by 40 gig. Next we need to resize the filesystem to fill up the space.<\/p>\n<pre>resize2fs \/dev\/vg\/pictures<\/pre>\n<p>I have done this before, but this time I got a message to run e2fsck first.<\/p>\n<pre>e2fsck -f \/dev\/vg\/pictures<\/pre>\n<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>\n<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>\n","protected":false},"excerpt":{"rendered":"<p>I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command. rsync &#8211;exclude=&#8221;.*&#8221; -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; &hellip; <a href=\"http:\/\/www.cyberward.net\/blog\/2008\/09\/resizing-a-logical-volume\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[3],"tags":[46,47,23,83,24],"series":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pffAy-1t","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/91"}],"collection":[{"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/tags?post=91"},{"taxonomy":"series","embeddable":true,"href":"http:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/series?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}