Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - SSD

467 bytes removed, 16:41, 13 June 2016
no edit summary
#You <u>'''must'''</u> restart your centos2 VM to allow changes to take effect.
#Open a terminal as root, and format your newly-created partition by issuing the command: <b><code><span style="color:#3366CC;font-size:1.2em;">mkfs -t ext4 /dev/vda3</span></code></b><br>(or ''mkfs -t ext4 /dev/sda3'')
#Re-issue the '''Restart the system-config-lvm utilityssm'''command. 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/vda3</span></code></b> (or ''pvcreate /dev/sda3'' ) (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 the <u>unallocated</u> partition /dev/vda3 and then click # Command to '''Add to Existing Volume Group''' (click on other button in next screen to continue). The screen should now show the partition ''/dev/vda3'' contained in our default Volume Group (refer # Commands to diagram on right-side for reference).</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 (Refer to diagram on right for reference).</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> <li>Use system-config-lvm #Repeat to resize (i.e. edit) the '''archive''' logical volume to '''1.5 GB''' and verify your results.</li></ol>
13,420
edits

Navigation menu