Jump to: navigation, search

OPS235 Lab 4 - CentOS6

943 bytes removed, 11:25, 1 January 2014
Investigation 2: How can a PV be added to an existing VG?
== Investigation 2: How can a PV be added to an existing VG? ==
'''# Add an additional 2 GB virtual disk to your ''<u>fedora1centos1</u>'' system, and we will use it as an additional physical volume:'''# Start <code>virt-manager</code>.# Shutdown ''fedora1'' if it is running.# Open the console window for ''fedora1''.# Select the menu option View>Details.# Click ''Add Hardware'' button at the bottom left-hand corner.# In the ''Adding new virtual hardware'' window that appears, select a Hardware Type of ''"storage"'' and click ''"Forward"''.# Make certain option "Managed or other existing storage" is selected. Click on the ''Browse'' button, then click on ''New Volume''.# Give the new virtual disk file a name of <code>fedora1b</code>, a format of ''raw'', with a ''Max Capacity'' and ''Allocation'' of 2000 MB. Click ''Finish''.# Select the new virtual disk file ''fedora1b.img'' and click ''Choose Volume''.# Select a device type of ''Virtio Disk''.# Finish creating the new virtual disk by clicking ''Forward'' and then ''Finish''.# Boot the system. You should now have both <code>/dev/vda</code> and <code>/dev/vdb</code>.
# Record the size of the volume group and the amount of free space (Hint: use a command that you learned in a previous lab).
# Partition Use fdisk to partition /dev/vdb with a single partition that fills the whole disk.
# Check the messages printed when <code>fdisk</code> exits -- you may need to reboot the system in order for the new partition table to take effect.
# Run this command to format the physical volume: <code>pvcreate /dev/Mark''vdb1''</code>as a physical volume usable by LVM.# Add the new physical volume to the existing volume group: <code>vgextend ''nameOfVolumeGroup'' /dev/vdb1</code>.
# Verify that the volume group is larger and has more free space.

Navigation menu