Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7

552 bytes added, 09:08, 3 May 2015
no edit summary
::<b><code><span style="color:#3366CC;font-size:1.2em;">df -h</span></code></b>
<ol>
<li value="3">Record the size of the volume group and the amount of free space</li> <li>Open the '''centos3 virtual machine <u>Details</u>''' view.</li>
<li>Go to the '''hardware details''' view</li>
<li>Click '''Add Hardware''' and add a new storage device of '''2GBs''', make sure it's a '''VirtIO disk'''.</li>
<li>Go back to the '''console''' view</li>
<li>Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">ls /dev/vd*</span></code></b>, what has changed?</li>
<li>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.</li> <li>Use '''fdisk''' to partition '''/dev/vdb''' with a Linux single partition that fills the whole disk.</li> <li>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. <li>Now we'll make the new device as a '''physical volume''', add it to the '''volume group''', and extend '''lv_root''':</li>
</ol>
:: <b><code><span style="color:#3366CC;font-size:1.2em;">pvcreate /dev/vdb</span></code></b>
<ol>
<li value="9">Now rerun the '''ls /dev/vd*''' , '''pvs''' , '''vgs''' , '''lvs''' and '''df -h''' commands.</li> <li>Record the size of the volume group and the amount of free space. What has changed and what caused those changes?</li> <li>Among the changes, note that your root file-system is now 2GB bigger - , and you have not even rebooted your machine!</li>
</ol>
# 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.
13,420
edits

Navigation menu