Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - CentOS7

270 bytes added, 08:24, 2 May 2015
no edit summary
<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> (performed in step 1), what's has changed?</li>
<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>
:: <b><code><span style="color:#3366CC;font-size:1.2em;">vgextend vg_centos3 /dev/vdb</span></code></b>
:: <b><code><span style="color:#3366CC;font-size:1.2em;">lvextend -L +2G -r vg_centos3/lv_root</span></code></b> <ol> <livalue="9">Now rerun the '''ls/dev/vd*''' , '''pvs/''' , '''vgs/''' , '''lvs/''' and '''df -h''' commands. What has changed and what caused those changes?</li> <li>Among the changes, note that your root filesystem file-system is now 2GB bigger - and you have not even rebooted your machine!</li>
</ol>
13,420
edits