OPS235 Lab 3 Braille

From CDOT Wiki
Revision as of 11:47, 24 February 2012 by Chris Tyler (talk | contribs)
Jump to: navigation, search
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 to the XML configuration file. Use the filename /var/lib/libvirt/images/fedora1-1.img.
  5. Redefine the VM using the XML configuration file: virsh define fedora1.xml
  6. 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
  7. Start the VM.
  8. You should now have a new disk, /dev/vdb
  9. Use fdisk to create a single primary partition that fills all of the new disk.
  10. Use pvcreate to format the new partition as a physical volume: pvcreate /dev/vdb1
  11. Use vgextend to add the new PV to your volume group: vgextend InsertNameOfYourVGhere /dev/vdb1
  12. 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!
  13. Confirm that the LV has been resized.
  14. Record notes about this investigation in your lab book.