Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7

82 bytes added, 09:49, 24 June 2015
no edit summary
|}
<ol>
<li value="20">'''Restart the system-config-lvm utility'''. Do you see a new /dev/sda3 partition under Physical Volumes?</li> <li>To add the newly created partition, you need to add it into LVM to be used. '''Exit the system-config-lvm utility ''' and '''issue the following command to add the partition into LVM:'''<br><b><code><span style="color:#3366CC;font-size:1.2em;">pvcreate /dev/sda3vda3</span></code></b> (enter '''y''' to proceed - ignore warning)</li> <li'''>Restart system-config-lvm'''. You should notice a section at the bottom indicating <u>Unallocated </u> Physical Volumes. Click on that the <u>unallocated</u> section and click on the button to add that unallocated Physical Volume to our current Volume Group. The screen should then now show the partition ''/dev/sda3 vda3'' contained in our default Volume Group(refer to right-side diagram).</li>
<li>Click on Logical View (i.e. above home, root, swap), and then click on '''Create New Logical Volume''' button and fill out the details for this new logical volume including: size: '''1GB''', LV Properties: '''linear''', file system: '''ext4''' file system name: '''archive''', select '''mount''' and mount it at: '''/archive'''. Have the system create the directory /archive if it does not exist.</li>
<li>Confirm that this new Logical Volume now exists by changing to the directory /archive. Did you need to restart your centos2 VM to confirm that the '''/archive''' directory is now on your '''centos2''' VM?</li>
13,420
edits

Navigation menu