Changes

Jump to: navigation, search

OPS235 Lab 4 - CentOS6

21 bytes added, 11:30, 14 January 2014
no edit summary
# You are going to repeat the same LVM management operations (as your did with the ''centos2'' VM in '''lab3'''), but you will using command-line tools in the '''centos3''' VM. Since the centos3 VM only operates in command-line 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> commandcommands.
## 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>mkdir</code>, <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>, and <code>mount</code>)
13,420
edits

Navigation menu