Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 Braille

1,611 bytes added, 11:47, 24 February 2012
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…'
[[Category:OPS235]][[Category:OPS235 Labs]]
{{Draft}}
{{Admon/caution|Braille Only|If you are not using a braille reader, please use [[OPS235 Lab 2]] instead of this lab.}}
{{Admon/note|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 ==

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