Changes

Jump to: navigation, search

User:Chris Tyler/draft/ops235lab

1,209 bytes added, 09:04, 2 February 2010
Investigation 3: How can a PV be added to an existing VG?
=== Investigation 3: How can a PV be added to an existing VG? ===
'''Add an additional 5 GB virtual disk to your ''fedora1'' system, and use it as an additional physical volume:'''* Provision # 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''# In the ''Adding Virtual Hardware'' window that appears, select a Hardware Type of ''storage'' and click ''Forward''.# Select ''File (Disk Image)'' for the storage space. Click on the ''Browse'' button near the ''Location'' field, add a new volume (which creates a new file in <code>/var/libvirt/images</code>), then click ''New Volume''.# Give the new virtual disk file a name of <code>fedora1b</code>, with an additional 5G a ''Max Capacity'' and ''Allocation'' of 2000 MB. Click ''Finish''.# Select the new virtual disk file and click ''Choose Volume''.# Select a device type of ''Virtio Disk''.# Finish creating the new virtual disk.# Boot the system. You should now have both /dev/vda and /dev/vdb.* Add # Record the size of the volume group and the amount of free space.# Partition /dev/vdb with a single partion that virtual fills the whole disk .# Run this command to format the physical volume: <code>pvcreate /dev/''vdb1''# 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. 
'''Using that additional space, create a separate filesystem for <code>/home</code>:'''
* Create the logical volume <code>lv_home</code> (1G, ext4), and migrate /home onto it (lvcreate, mkfs, mount, mv, rm, umount, edit fstab, mount)using steps you learned in earlier investigations.
=== Investigation 4: How can I use LVM to manage storage on my disk pack? ===

Navigation menu