{"id":380,"date":"2009-05-28T09:19:40","date_gmt":"2009-05-28T14:19:40","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=380"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"how-to-create-a-new-logical-volume-in-redhat-enterprise-5-linux","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=380","title":{"rendered":"How to create a new logical volume in Red Hat Enterprise 5 Linux."},"content":{"rendered":"<p>(1) Click on System \u2013 Administration \u2013 Logical Volume Manager.<\/p>\n<p>(2) Expand Uninitilized Entities on the left window by clicking on the arrow next to it. You will now see the <\/p>\n<p>available physical disk partitions if there is any.  For example \/dev\/sda or \/dev\/sdb, sda and sdb are two physical <\/p>\n<p>disk drives.<\/p>\n<div style=\"float: left;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 300;\ngoogle_ad_height = 250;\ngoogle_ad_format = \"300x250_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>(3) Display the drive partition information by clicking on the arrow to the left of it. In this example I will use <\/p>\n<p>the drive \/dev\/sdb.  Click on Partiton 1 which is displayed below \/dev\/sdb, the partion number may differ for you.<\/p>\n<p>The properties of the uninitialized partition 1, \/dev\/sdb1 will be displayed to the very right of the screen. Below <\/p>\n<p>is an example of what you will see.<\/p>\n<p>Properties of Disk Entry \/dev\/sdb1 (note this disk entry name, you will need it for later)<br \/>\nMount Point: Unmounted<br \/>\nMount Point when Rebooted: None<br \/>\nFile System: No Filesystem<br \/>\nNot initialized: Foreign boot partition<br \/>\nSCSI Address: 0:0:1:0<br \/>\nSCSI ID: 360060e800429c400000029c400002b00<\/p>\n<p>(4) On the top menu bar, click on Tools \u2013 Initialize Block Device. In the Initialize Block Device window you will <\/p>\n<p>be prompted with the message Enter path of Block Device to initialize.  Type the path name \/dev\/sdb1, and click on <\/p>\n<p>Initialize.  When prompted with a warining message \u201cAll data on disk entity \/dev\/sdb1 will be lost! Are you certain <\/p>\n<p>that you wish to initialize it?\u201d, select Yes.<\/p>\n<p>(5) You will now see Partition 1 appear under the category Unallocated Volume in the left window.  The properties <\/p>\n<p>of will be displayed in the right window, details as shown below.<\/p>\n<p>Properties for Unallocated Volume \/dev\/sdb1<br \/>\nPhysical Volume Name: \/dev\/sdb1<br \/>\nVolume Group Name: \u2014<br \/>\nPhysical Volume Size: 450.00G<br \/>\nSpace Used: 0<br \/>\nSpace Free: 450.00G<br \/>\nTotal Physical Extents: 0<br \/>\nAllocates Physical Extensts: 0<br \/>\nAttributes: \u2014<br \/>\nPV UUID: 6mp2WC-hk3d-TWAj-dfBf-txin-A9jG-1RrOew<br \/>\nSCSI AddressL 0:0:1:0<br \/>\nSCSI ID: 360060e800429c400000029c400002b00<\/p>\n<p>Select Create new Volume Group. Enter the Volume Group Name as DataVolGroup<\/p>\n<p>(6) In the left window under Volume Groups, select the new volume group DataVolGroup \u2013 DataVolumeGroup Physical <\/p>\n<p>View \u2013 DataVolumeGroup Logical View.  This will display the properties of DataVolumeGroup in the right window.<br \/>\nClick on Create New Logical Volume, this will open up the Create NEw Logical Volume window. Enter the name DataLV <\/p>\n<p>for LV name and for the size of the volume click on Use remaining, this will maximize the volume size.<\/p>\n<p>For Filesystem select Ext3, you have a choice between None, Ext3 and Ext2. The explanation of each filesystem type <\/p>\n<p>is beyond the scope of this article, I may explain that in future posting.  Select Mount when rebooted and for <\/p>\n<p>Mount point enter \/data.<\/p>\n<p>Click on Ok, you will now see the pop up message \u201cThe specified mount point, \/data, does not exist.  Do you wish to create it?\u201d. Select Yes to continue.<\/p>\n<p>You are done, a reboot may be required. To confirm that the new logical volume was created and mounted after reboot, ether the commands below.<\/p>\n<p>Open a terminal window for the steps below.<br \/>\nmount<br \/>\n\/dev\/mapper\/DataVolGroup-DataLV- on \/data type ext3 (rw)<\/p>\n<p>The mount command displays the new logical volume \/dev\/mapper\/DataVolGroup-DataLV mounted on \/data, and the filesystem type is ext3.  You can access the new partition via the path \/data.<\/p>\n<p>To check the size of the new partition, use the df command with the -h option to make it human readable.<\/p>\n<p>df -h<br \/>\n\/dev\/mapper\/DataVolGroup-DataLV   443G 199M 421G 1% \/data<\/p>\n<p>Here is what the above output represents.<\/p>\n<p>Filesystem = \/dev\/mapper\/DataVolGroup-DataLV<br \/>\nSize = 443G<br \/>\nUsed = 199M<br \/>\nAvailable = 421G<br \/>\nUse% = 1%<br \/>\nMounted on = \/data<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(1) Click on System \u2013 Administration \u2013 Logical Volume Manager. (2) Expand Uninitilized Entities on the left window by clicking on the arrow next to it. You will now see the available physical disk partitions if there is any. For&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=380\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/380"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":5,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":999,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions\/999"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}