Changes

Jump to: navigation, search

OPS235 Lab 5

12 bytes added, 14:41, 27 June 2016
no edit summary
<li>Record the size of the volume group and the amount of free space. What has changed and what caused those changes?</li>
<li>Issue the '''ssm list''' command. Note that your home file-system is now 2GB bigger, and you have not even rebooted your machine since you used fdisk to create a partition!</li>
<li>'''Reboot ''' your centos2 VM</li>
<li>Record the LVM Management commands in your lab log-book.</li>
</ol>
<li>View and record the fields for the '''/archive''' mount in your lab logbook, and then issue the following command to reconnect or mount '''/archive''':<br><b><code><span style="color:#3366CC;font-size:1.2em;">mount &nbsp; -t ext4 &nbsp; /dev/centos_centos2/archive &nbsp; /archive</span></code></b></li><li>Use the ls command to view the contents of the /archive directory. What do you see?</li><li>Unmount the /archive directory by issuing the following command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">umount /archive</span></code></b></li>
<li>Issue the following command to add an entry to automatically mount the /archive directory upon bootup:<br><b><code><span style="color:#3366CC;font-size:1.2em;">echo "/dev/centos_centos2/archive /archive ext4 defaults 1 2" >> /etc/fstab</span></code></b><br>(although we don't need to do this, since it was already done).</li>
<li>'''Reboot ''' your centos2 VM so see if the /archive directory is automatically mounted.<br><br>'''Note:''' You could have also issued the command: '''mount -a''' to <u>automatically</u> mount the file-systems contained in the '''/etc/fstab''' file without booting the VM (good for testing before trying a reboot).<br><br></li>
</ol>
13,420
edits

Navigation menu