1,234
edits
Changes
→Investigation 4: Adjusting Sizes of lv_root and lv_home
{{Admon/note|VM Backups and Recovery|Most of these investigations will take place in your 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 2, and you can restore them if something goes wrong.<br /><br />'''Remember: if you did not create backups for all of your VMs, then you don't have any restoration points to fall-back to!'''|}}
== Investigation 4: Adjusting Sizes Extend the size of lv_root and lv_home ==
<u>'''<font>Steps:</font>'''</u>
<ol>
<li value="6">Press Run the keyboard combination '''Ctrlfollowing commands and make note of the output:</li> <code>ls /dev/vd* pvs vgs lvs df -Alt-F1''' h</code> <li>Open the fedora3 virtual machine console</li> <li>Go to return to GUI (or similar key-combination with other function key). the hardware details view</li> <li>Log into your accountClick "Add Hardware" and add a new storage device of 2GBs, make sure it's a VirtIO disk.</li> <li>Open a terminal.Go back to the console view</li> <li>Issue Run the same ls command now, what's changed?</li> <li>Now we''vgs'''ll make the new device as a physical volume, '''pvs'''add it to the volume group, and '''extend lv_root:</li> <code>pvcreate /dev/vdb vgextend vg_fedora3 /dev/vdb lvextend -l +100%FREE -r vg_fedora3/lv_root</code> <li>Now rerun the ls/pvs/vgs/lvs''' /df commands to verify new volume information for your f16host.What has changed and what caused those changes?</li> <li>Proceed to Investigation #2.Among the changes, note that your root filesystem is now 2GB bigger - and you have not even rebooted your machine!</li>
</ol>