Changes

Jump to: navigation, search

OPS235 Lab 4 - Fedora17

238 bytes added, 12:27, 5 February 2011
no edit summary
* [[Logical Volume Management]]
== Investigation 1: How are LVMs are managed using system-config-lvm? ==
'''Perform this investigation on the VM named ''<u>fedora2</u>''.'''
[[Image:Ops235_lab4_1.png|thumb|right|Screenshot of system-config-lvm in Fedora. Click to enlarge.]]
# Let's learn to manage or administer our LVM graphically for our Virtual Machine ('''Fedora2''').<br />Fedora provides a tool called <code>system-config-lvm</code> to graphically administer LVM. It will appear on the menu as System>Administration>Logical Volume Management. Verify that this package is present, and install it if required (<code>yum install system-config-lvm</code>).
# Use this tool to determine the current LVM configuration by clicking on the appropriate element and reading the properties in the right-hand panel -- write down the answers:
#* What are the names and sizes of the PVs?
# Try shrinking <code>/</code> -- what happens? Why?
== Investigation 2: How are LVMs are managed from the command line? using Command-Line Tools ==# You are going to repeat the same LVM management operations (as your did with the ''fedora2'Repeat the operations from Investigation 1' VM), but you will using command-line tools in the virtual machine ''<u>fedora3</u>'fedora 3''' (VM. Since the fedora3 VM only operates in command-line tools only)mode, you will need to refer to the '''"Logical Volume Management"''' link above. # Write down the exact commands used at each step, and record appropriate command output:'''# : Determine the current LVM configuration using the <code>pvs</code>, <code>vgs</code>, and <code>lvs</code> command.# : Grow the home filesystem to 2G using the command <code>lvextend</code> and <code>resize2fs</code>.# : Create a new 2G LV containing an ext4 filesystem and mount it at /archive (use <code>lvcreate</code>, <code>mkfs</code>, <code>mount</code>, edit the file <code>/etc/fstab</code>, and then reboot to confirm automatic mount).# : Copy the contents of <code>/etc</code> into <code>/archive</code>.# : Shrink <code>lv_archive</code> to 1G (use <code>umount</code>, <code>resize2fs</code>, <code>lvreduce</code>, <code>resize2fs</code>, and <code>mount</code>)
== Investigation 3: How can a PV be added to an existing VG? ==
13,420
edits

Navigation menu