Difference between revisions of "OPS235 Lab 3 Braille"

From CDOT Wiki
Jump to: navigation, search
(Created page with 'Category:OPS235Category:OPS235 Labs {{Draft}} {{Admon/caution|Braille Only|If you are not using a braille reader, please use OPS235 Lab 2 instead of this lab.}} {{Adm…')
(No difference)

Revision as of 10:47, 24 February 2012

Important.png
This is a draft only!
It is still under construction and content may change. Do not rely on this information.
Stop (medium size).png
Braille Only
If you are not using a braille reader, please use OPS235 Lab 2 instead of this lab.
Note.png
htp
Wherever this document says "htp", it should be changed to "http". This was done in order to avoid reported problems with some braille readers.

Investigation 1: Adding a physical volume

  1. Stop the VM "fedora1".
  2. Dump the XML for the virtual machine 'fedora1' into a file: virsh dumpxml fedora1 >fedora1.xml
  3. Examine the file to determine the structure.
  4. Add another virtual disk. Use the filename /var/lib/libvirt/images/fedora1-1.img.
  5. Create the tile /var/lib/libvirt/images/fedora1-1.img as an empty file with a size of 10G: dd if=/dev/zero of=/var/lib/libvirt/images/fedora1-1.img bs=1G count=10
  6. Start the VM.
  7. You should now have a new disk, /dev/vdb
  8. Use fdisk to create a single primary partition that fills all of the new disk.
  9. Use pvcreate to format the new partition as a physical volume: pvcreate /dev/vdb1
  10. Use vgextend to add the new PV to your volume group: vgextend InsertNameOfYourVGhere /dev/vdb1
  11. Use lvextend to extend the size of the root filesystem by 5G: lvextend InsertNameOfYourVGhere/InsertNameOfYourLVhere --size +5G -r
    • Note that the -r resizes the filesystem withing the LV and is critically important!
  12. Confirm that the LV has been resized.
  13. Record notes about this investigation in your lab book.