{"id":405,"date":"2017-05-20T19:57:10","date_gmt":"2017-05-20T23:57:10","guid":{"rendered":"https:\/\/blog.lufamily.ca\/kang\/?p=405"},"modified":"2024-02-15T14:01:24","modified_gmt":"2024-02-15T19:01:24","slug":"three-cheers-for-software-raid","status":"publish","type":"post","link":"https:\/\/blog.lufamily.ca\/kang\/2017\/05\/20\/three-cheers-for-software-raid\/","title":{"rendered":"Three Cheers for Software RAID"},"content":{"rendered":"<p>Last year, I built a NAS machine as referenced by my <a href=\"https:\/\/blog.lufamily.ca\/kang\/2016\/10\/17\/linux-openvpn-and-ip-routes\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post here<\/a>. This month, my media drive composed of an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Logical_Volume_Manager_(Linux)\" target=\"_blank\" rel=\"noopener noreferrer\">LVM<\/a> logical volume of almost 5TB is almost filled.<\/p>\n<p>This drive contains all purchased media and our home videos for Plex, as well as our\u00a0time machine backups. To alleviate the storage shortage, I purchased two <a href=\"https:\/\/www.wdc.com\/products\/internal-storage\/wd-red.html\" target=\"_blank\" rel=\"noopener noreferrer\">4TB\u00a0<\/a><span id=\"productTitle\" class=\"a-size-large\">Western Digital WD40EFRX hard drives. This weekend I took the plunge and installed the two new drives into my NAS computer. In the spirit of the moment, without performing a backup, I proceeded to:<\/span><\/p>\n<ul>\n<li>Use <em>parted\u00a0<\/em>to partition the drives;<\/li>\n<li>Use <em>mdadm\u00a0<\/em>to create a RAID 1 device\u00a0of the two drives;<\/li>\n<li>Created a new LVM physical volume with the new RAID device;<\/li>\n<li>Added the volume to the existing volume group;<\/li>\n<li>Extend the logical volume to newly added 4TB;<\/li>\n<li>and finally, Extend the <em>ext4<\/em> file system to include the 4TB<\/li>\n<\/ul>\n<p>In the end, I now have a near 9TB network drive that should last me for quite sometime.<\/p>\n<p>In researching how to extend the logical volume, I also found out how I can upgrade my drives in my existing physical volumes to higher capacity drives without having to recopy everything to another drive first. This should come in handy in the future, because my NAS computer box has no more drive bays.<\/p>\n<p>I know I probably should have taken a backup before this, but everything worked and I couldn&#8217;t be happier. Hurray, hurray, and hurray for software RAID.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year, I built a NAS machine as referenced by my previous post here. This month, my media drive composed of an LVM logical volume of almost 5TB is almost filled. This drive contains all purchased media and our home videos for Plex, as well as our\u00a0time machine backups. To alleviate the storage shortage, I &hellip; <a href=\"https:\/\/blog.lufamily.ca\/kang\/2017\/05\/20\/three-cheers-for-software-raid\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Three Cheers for Software RAID&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"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,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[111],"tags":[5,28],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-tech","tag-nas","tag-technology"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7V6i8-6x","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":2,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":407,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/405\/revisions\/407"}],"wp:attachment":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}