Changes

Jump to: navigation, search

OPS235 Lab 5

525 bytes removed, 09:39, 22 June 2016
no edit summary
'''Perform the following steps:'''
# Perform this Part Remain in your '''centos3centos2''' VMfor this section.# Run the following commands and make note of the output of the commands: <br><b><code><span style="color:#3366CC;font-size:1.2em;">ls /dev/vd*</span></code></b>,<br><b><code><span style="color:#3366CC;font-size:1.2em;">ssm list</span></code></b>, and <b><code><span style="color:#3366CC;font-size:1.2em;">df -h</span></code></b>
<ol>
<li value="3">Record the size of the volume group and the amount of free space</li>
<li>At the top of your VM window (make certain <u>not</u> full screen mode) click the '''view''' menu and change view from '''Console''' to <u>Details</u>''' .</li>
<li>At the bottom left-hand corner, click '''Add Hardware''' and add a new storage device of '''2GBs''', make sure the '''Bus type''' is selected as: '''VirtIO disk'''disk.<br><br>'''NOTE: Make certain to click "select managed or other existing storage", and fill in the pathname circled in red as shown in the diagram on the right-hand-side.<br><br>'''</li> <li>Go back Click the VM menu, and return to the '''console''' viewto access your centos2 VM display.</li>
<li>Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">ls /dev/vd*</span></code></b>, what has changed?</li>
<li>Use '''fdisk''' (''refer to how to use in Part 1'') to create a new single '''primary ''' partition for '''/dev/vdb''' that fills the ''entire '' disk, save partition table (accepting defaults prompts would work), restart your '''centos3''' VM and then '''format''' that partition for file type: '''ext4'''.</li> <li>Now we'll make the new device a '''physical volume''', add it to the '''volume group''', and extend '''lv_rootlv_archive''':</li>
</ol>
:: <b><code><span style="color:#3366CC;font-size:1.2em;">pvcreate /dev/vdb1</span></code></b> (enter '''y''' to proceed - ignore warning)
:: <b><code><span style="color:#3366CC;font-size:1.2em;">vgsvgextend cent0s_centos2 /dev/vdb1</span></code></b> (to determine: ''name_of_volumegroup'')
:: <b><code><span style="color:#3366CC;font-size:1.2em;">vgextend ''name_of_volumegroup'' /dev/vdb1</span></code></b> :: <b><code><span style="color:#3366CC;font-size:1.2em;">lvextend -L +2G -r ''name_of_volumegroup''centos_centos2/lv_rootlv_archive</span></code></b>
<li>Record the size of the volume group and the amount of free space. What has changed and what caused those changes?</li>
<li>Among the changes, note that your root file-system is now 2GB bigger, and you have not even rebooted your machine since you used fdisk to create a partition!</li>
<li>Reduce the size of the '''lv_rootlv_archive''' partition by '''1GB''' by issuing the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">lvreduce ''name_of_volumegroup''centos_centos_2/lv_root lv_archive --size -1G</span></code></b></li>Confirm that the file system has been reduced.</li><li>Increase the size of the '''lv_root''' partition by another '''1GB''' by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">lvextend ''name_of_volumegroup''/lv_root --size +1G</span></code></b></li>Confirm that the file system can been increased.</li><li>Record the LVM Management commands in your lab log-book.</li>
</ol>
13,420
edits

Navigation menu