Open main menu

CDOT Wiki β

Changes

User:Chris Tyler/draft/ops235lab

607 bytes added, 08:35, 2 February 2010
Investigation 1: How are LVMs managed using system-config-lvm?
=== Investigation 1: How are LVMs managed using system-config-lvm? ===
[[Image:Ops235 lab_4_1Ops235_lab4_1.png|300pxthumb|right|Screenshot of system-config-lvm in Fedora 12. Click to enlarge.]]
# 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.
# Use this tool to determine the current LVM configurationby 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?
#* What is the name and size of the VG?
#* What are the names and sizes of the LVs?
#* Is there any space in the VG which is not allocated to a LV?
* # Increase the size of the home filesystem to 2G2 GB:## Click on the LV containing the home filesystem.## Click on ''Edit Properties''.## Change the size to 2 GB and click ''Ok''.** # Create a new 2G LV containing an ext4 filesystem named lv_archive and mount it at /archive*## Click on ''Logical View''.## Click the ''Create New Logical Volume''.## Set the name, size, filesystem, and mount point.## Click ''Ok''.* Backup <code>/etc</code> into <code>/archive</code>## Copy the files in /etc into the filesystem mounted at <code>/archive</code> (use the graphical tools or the command line. If using cp, remember to use the -R option).** Shrink the size of <code>lv_archive </code> to 1G1 GB.** Try shrinking <code>/</ and observe that it is not permittedcode> -- what happens? Why?
=== Investigation 2: How are LVMs managed from the command line? ===