{"id":244,"date":"2010-06-03T14:10:57","date_gmt":"2010-06-03T21:10:57","guid":{"rendered":"http:\/\/infinitedisorder.com\/?p=244"},"modified":"2010-06-11T15:23:28","modified_gmt":"2010-06-11T22:23:28","slug":"quickly-create-a-linux-logical-volume","status":"publish","type":"post","link":"https:\/\/infinitedisorder.com\/?p=244","title":{"rendered":"create a linux logical volume"},"content":{"rendered":"<p>List out all your disks to see which ones are mapped to which \/dev\/sdx<br \/>\n#fdisk -l<br \/>\nDelete any existing partitions with fdisk \u00a0-&gt; d -&gt; w<br \/>\n#fdisk \/dev\/sda<br \/>\nUse pvcreate to prepare the disks<br \/>\n#pvcreate \/dev\/sda; pvcreate \/dev\/sdb; pvcreate \/dev\/sdc; pvcreate \/dev\/sdd<br \/>\nCreate a volume group<br \/>\n#vgcreate VolGroup00 \/dev\/sda \/dev\/sdb \/dev\/sdc \/dev\/sdd<br \/>\nCheck to see total size of volume group<br \/>\n#vgdisplay VolGroup00<br \/>\nCreate a volume group spanning the entire space<br \/>\n#lvcreate VolGroup00 &#8211;size 3.63T -n LogVol00<br \/>\nCreate the filesystem<br \/>\n#mkfs \/dev\/VolGroup00\/LogVol00<br \/>\nMap the new filesystem to a folder<br \/>\n#mkdir \/backup; mount \/dev\/VolGroup00\/LogVol00 \/backup<\/p>\n<p>Thats it, modify your fstab if you want it to mount on boot.<\/p>\n<p>If you need to remove a drive which has failed use this:<br \/>\n#vgreduce VolGroup00 &#8211;removemissing &#8211;force<\/p>\n","protected":false},"excerpt":{"rendered":"<p>List out all your disks to see which ones are mapped to which \/dev\/sdx #fdisk -l Delete any existing partitions with fdisk \u00a0-&gt; d -&gt; w #fdisk \/dev\/sda Use pvcreate to prepare the disks #pvcreate \/dev\/sda; pvcreate \/dev\/sdb; pvcreate \/dev\/sdc; pvcreate \/dev\/sdd Create a volume group #vgcreate VolGroup00 \/dev\/sda \/dev\/sdb \/dev\/sdc \/dev\/sdd Check to see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=244"}],"version-history":[{"count":6,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions\/250"}],"wp:attachment":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}