Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS6

1 byte added, 11:50, 1 January 2014
Investigation 4: Extend the size of lv_root using command-line tools
Perform this investigation in fedora3.
Let's say that you have run out of disk space on your computer (fedora3centos3), you need more space on the root filesystem, perhaps to host more webpages or a larger database or new software. What are your options? Getting a replacement harddrive would probably require reinstallation of the operating system and backup/restore of the data.
Because we're using LVM though - we can avoid that. We can add a new harddrive (which will serve as a physical volume) to the volume group, and extend the root logical volume to make use of the new available space.
'''Perform the following operations to increase the size of lv_root in fedora3centos33:'''
<u>'''<font>Steps:</font>'''</u>
<code>pvcreate /dev/vdb
vgextend vg_fedora3 vg_centos3 /dev/vdb
lvextend -l +100%FREE -r vg_fedora3vg_centos3/lv_root</code>
<li>Now rerun the ls/pvs/vgs/lvs/df commands. What has changed and what caused those changes?</li>
<li>Among the changes, note that your root filesystem is now 2GB bigger - and you have not even rebooted your machine!</li>

Navigation menu