Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7

795 bytes added, 09:51, 18 June 2015
no edit summary
# Issue the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">mount</span></code></b>
# What is the purposed of issuing this command without arguments? Can you see the lv_archive partition?
# Create a new Confirm that the directory called named '''/archive'''is mounted.# You can use the '''umount''' command to unmount a file-system (eg. for maintenance purposes). Note the the name of the command is umount, <u>not</u> unmount.# Issue Make certain you are not located in the /archive directory, and issue the following commandto unmount the /archive directory: <br><b><code><span style="color:#3366CC;font-size:1.2em;">mount /dev/vdb -t ext4 umount /archive </span></code></b># Issue the '''mount''' command (without arguments) to verify that the '''lv_archive''' logical volume is mountedconfirm it has been unmounted.# Without changing to the '''/archive''', list View the contents of that directory.# Issue the file-system table /etc/fstab by issuing the following command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">umount cat /etc/archive fstab</span></code></b># Issue Note the line that automatically mounts a file-system (''/dev/sda3'', type 'mount'ext4'' command ) to verify that lv_archive logical volume has been unmounted'''/archive'''.# Although This was automatically performed for you might have been successful unvia the '''system-mounting the lv_archive logical volume, can you think of any reasons why you might not be able to unconfig-mount that logical volume? lvm''' utility.# Quickly view View and record the tutorial about fields for the <b>[http:'''//man7.org/linux/man-pages/man5/fstab.5.html /etc/fstab]</b> file to understand the purpose of this file archive''' mount in your lab logbook, and the major elements contain in this file.# Issue then issue the following commandto reconnect or mount '''/archive''': <br><b><code><span style="color:#3366CC;font-size:1.2em;">echo "mount &nbsp; -t ext4 &nbsp; /dev/vdb ''name_of_volumegroup'/archive ext4 defaults 1 1" >> &nbsp; /etc/fstabarchive</span></code></b># Confirm that those contents this file-system has been properly mounted. Note: You could have been added also issue the command: '''mount -a''' to <u>automatically</u> mount the file-systems contained in the bottom of '''/etc/fstab'''file.# Issue <br><br>Tip: If you had to do manually configure /etc/fstab (eg. only in text-based mode - centos3), you could have issued the command: <br> <b><code><span style="color:#3366CC;font-size:1.2em;">mount -aecho "/archive ext4 defaults 1 1" >> /etc/fstab</span></code></b> (although we don't need to do this, since it was already done).<br><br># Check '''A curious question''': If root needs to see if unmount the '''/archivehome''' is now mounteddirectory for maintenance (i.e. What do you think the above operation did? Confirm by rebooting your VM prevent regular users from logging in), but were forced to see if login as a regular user, then open a terminal and su into '''root'/archive'', then we wouldn' is mountedt be able to unmount /home, since we are still logged in! How can we as a Linux System Administrator get around the problem (hint: you already learned it somewhere in lab3!!! Wow, using what we already taught can pay-off in the future ... lol!).
'''Answer the Part 1 observations / questions in your lab log book.'''
13,420
edits

Navigation menu