Open main menu

CDOT Wiki β

Changes

User:Chris Tyler/draft/ops235lab

344 bytes added, 07:40, 2 February 2010
Investigation 2: How are LVMs managed from the command line?
=== Investigation 2: How are LVMs managed from the command line? ===
* '''Repeat the operations from Investigation 1, using the virtual machine ''fedora3 '' (command-line tools only). Write down the exact commands used at each step:'''** # Determine the current LVM configurationusing 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).** Backup # 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>)** Try shrinking / and observe that it is not permitted
=== Investigation 3: How can a PV be added to an existing VG? ===