Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 - Fedora17

12 bytes added, 13:55, 26 January 2012
no edit summary
{{Admon/note|Recovering VMs|'''Most of these investigations will take place in you virtual machines.''' If you make a significant mistake, your virtual machine may not boot. Remember that you created backups of your virtual machines in Lab 3, and you can '''restore them if something goes wrong'''.}}
== Redistributing Size Among Logical Volumes ==
=== Investigation 1: Adjusting Sizes of lv_root and lv_home == === Why Readjust sizes of lv_root and lv_home? ===
If you refer to the LV sizes of f16host, you may notice that the size of '''lv_root''' (your root system) is quite small compared to the size of '''lv_home'''. Since virtual machines that you have created are stored in the directory pathname <code>/var/lib/libvirt/images/</code>, then it is important that there is ample space to accommodate future Virtual Machines (eg. assignments) or future growth of file-systems.
Although you will be performing Logical Volume Management graphically in Investigation #1, we will be adjusting the sizes of lv_root and lv_home for this section via command line.
{{Admon/important|LV resize is Required!|You MUST perform the following steps in order to re size lv_home and lv_root logical volumes. Failure to perform this operation will likely cause the user to run out of space in <code>/var/lib/libvirt/images/</code> directory used to hold future Virtual Machine installations (e.g. assignments).}}
'''Perform the following operations to readjust size of lv_root and lv_home in f16host:'''
 
 
<u>'''<font>Steps:</font>'''</u>
# Make certain you are in your '''f16host''' system.
# Open a terminal.# login in as super-user.Log all users out of GUI# Issue the following Linux command to <u>reduce</u> Press the logical volume size of lv_home: <code>'''lvreduce keyboard combination Ctrl-r vg_f16host/lv_home Alt-F2 to a switch to a text-size 150G'''</code>based Virtual Terminal# Issue the following Linux command Login to <u>increase</u> the logical volume size of lv_root: <code>'''lvextend vg_f16host/lv_root --size +25G'''</code>your account, then login as root# Issue Enter the '''vgs''', '''pvs''', and '''lvs''' following Linux commands to verify new volume information for f16host.# Proceed to Investigation #1.:
:: umount /home
:: lvreduce -L 20G -r vg_f16host/lv_home
:: lvextend -l 100%FREE -r vg_f16host/lv_root
::mount -a
::logout
<ol>
<li>Press the keyboard combination Ctrl-Alt-F7 to return to GUI </li>
<li>Log into your account.</li>
<li>Open a terminal.</li>
<li>Issue the '''vgs''', '''pvs''', and '''lvs''' commands to verify new volume information for your f16host.</li>
<li>Proceed to Investigation #1.</li>
</ol>
== Investigation 1: How are LVMs are managed using system-config-lvm? ==
13,420
edits