Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - CentOS7

1,598 bytes added, 07:11, 2 May 2015
no edit summary
</ol>
'''!! increase & shrink LV via command line!!'''
'''Answer Part 2 observations / questions in your lab log book.'''
===Part 3: Manually Creating, Formatting Partition & Add to an Existing Volume Group===
# Add an additional 2 GB virtual disk to your ''<u>centos1</u>'' system, we will use it as an additional physical volume.
# Do the rest of this investigation in the command line.
# You should now have both <code>/dev/vda</code> and <code>/dev/vdb</code>.
# Record the size of the volume group and the amount of free space (Hint: use a command that you learned in a previous lab).
# Read the resource [http://tldp.org/HOWTO/Partition/fdisk_partitioning.html Partitioning with fdisk] to learn how to properly create a partition with the fdisk command.
# Use fdisk to partition /dev/vdb with a Linux single partition that fills the whole disk.
# Check the messages printed when <code>fdisk</code> exits -- you may need to reboot the system in order for the new partition table to take effect.
# Mark ''vdb1'' as a physical volume usable by LVM.
# Add the new physical volume to the existing volume group.
# Verify that the volume group is larger and has more free space.
{{Admon/note|Think!|The next part of this investigation requires some research, thought, and creativity.}}
'''Using that additional space, create a separate filesystem for <code>/home</code>:'''
# Create the logical volume <code>lv_home</code> (1G ext4)
# Find a way to move the contents of <code>/home</code> onto it.
# Change your system configuration so that the new filesystem is mounted on <code>/home</code> from now on.
'''Answer Part 3 observations / questions in your lab log book.'''
= INVESTIGATION 2: CREATING VIRTUAL HARD DRIVES =
13,420
edits