Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - SSD

163 bytes added, 17:20, 13 June 2016
no edit summary
#Re-issue the '''ssm''' command. Do you see a new /dev/sda3 partition under Physical Volumes?
#To add the newly created partition, you need to add it into LVM to be used. Issue the following command to add the partition into LVM: <br><b><code><span style="color:#3366CC;font-size:1.2em;">pvcreate /dev/vda3</span></code></b> (or ''pvcreate /dev/sda3'' ) (enter '''y''' to proceed - ignore warning)
# Issue the following command to add your new-created and formatted partition called /dev/vda3 to your volume group:<br><b><code><span style="color:#3366CC;font-size:1.2em;">vgextend vgname centos_centos2 /dev/vda3</span></code></b># Commands to '''Create New Logical Volume''' button and fill out the details for this a new logical volume includingby issuing the following command: <br><b><code><span style="color:#3366CC;font-size: '''1GB''', LV Properties1.2em;">lvcreate -L 2G centos_centos2</span></code></b>#Create an "/archive" directory by issuing the following command: '''linear''', file system<b><code><span style="color: '''ext4''' file system name#3366CC;font-size: '''1.2em;">mkdir /archive'''</span></code></b># Now, select '''issue the following command to mount''' and mount it at: this logical volume to the newly-created '''/archive'''directory:<br><b><code><span style="color:#3366CC;font-size:1. Have the system create the directory ''2em;">mount -t ext4 /dev/vda3 /archive'' if it does not exist (Refer to diagram on right for reference).</span></code></b>
#Confirm that this new Logical Volume now exists by changing to the directory /archive. Did you need to restart your centos2 VM to confirm that the '''/archive''' directory is now on your '''centos2''' VM?
#Repeat to resize (i.e. edit) the '''archive''' logical volume to '''1.5 GB''' and verify your results.
13,420
edits

Navigation menu