Changes

Jump to: navigation, search

OPS235 Lab 3 - Fedora17

1,411 bytes removed, 12:31, 24 September 2018
no edit summary
[[Category:OPS235]][[Category:OPS235 Labs]]
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
=Logical Volume Management and Software Package Management=
:* Learn how to add and remove software packages on your different Linux systems.
:* Learn how to properly adjust your various Linux file systems by using and managing LVM both graphically (fedora2) as well as command line (fedora3).
:* Learn how to work with (create/modify) traditional paritions using cfdisk and gparted.
== Required Materials (Bring to All Labs) ==
RPM maintains a database of installed software. This information is very useful to system administrators. In Lab 3, you queried that database using RPM with the -q argument. When you query the RPM database, you can separately specify:
:* Which packages you want information aboutto do an <u>operational task</u> (like installing or removing a package), using a '''select-option''':* What <u>information </u> you want about those packages, using a '''query-option'''
'''Perform the following steps:'''
== Investigation 2: How do you install and remove software with RPM? ==
# Change Use the graphical file manager (Nautilus) to change to the directory on your Installation DVD containing . Go to the sub-directory called '''Packages''' and then go to the sub-directory '''l''' (for files beginning with the letter l like the '''lynx''' package). You should see a filecalled: <code>lynx-2.8.7-78.fc16fc17.x86_64.rpm</code># Execute this the following command: <code>rpm -i lynx-2.8.7-78.fc16fc17.x86_64.rpm</code># Issue an RPM query to check that lynx is installed.# ___________________________________________________Record this command in your lab log-book.# Issue this the following command: <code>rpm -e lynx</code># Issue an RPM query to verify that lynx is no longer installed. Record this command in your lab log-book.# ___________________________________________________Move to the appropriate sub-directory for packages that begin with the letter '''b'''.# Issue this the following command: <code>rpm -i BackupPC-3.2.1-7.fc17.x86_64.rpm</code> and note the result
'''Answer the Investigation 2 observations / questions in your lab log book.'''
</ol>
</li>
<li>Issue an RPM query to verify that BackupPC is installed. Record this command in your lab log-book.</li>____________________________________________________
<li>Issue the command: <code>yum remove BackupPC</code></li>
<li>Issue an RPM query to verify that BackupPC is no longer installed. Record this command in your lab log-book.</li>____________________________________________________ <li>Install <code>nled</code> using '''yum'''. Record this command in your lab log-book.</li>____________________________________________________
<li>Issue this command: <code>yum info cups</code></li>
</ol>
'''Answer the Investigation 3 observations / questions in your lab log book.'''
=Logical Volume Management(Introduction)=
== Check Current LVM Information Prior to Performing Investigations ==
lv_swap vg_fedora3 -wi-ao 520.00m
* '''f16host f17host (i.e. "removable hard disk" or "disk pack")'''
Does not use LVM. Confirm this using the same commands used above.
<li>Now we'll make the new device as a physical volume, add it to the volume group, and extend lv_root:</li>
<code>pvcreate /dev/vdb
 
vgextend vg_fedora3 /dev/vdb
 
lvextend -l +100%FREE -r vg_fedora3/lv_root</code>
<li>Now rerun the ls/pvs/vgs/lvs/df commands. What has changed and what caused those changes?</li>
'''Answer the Investigation 5 observations / questions in your lab log book.'''
=Updated backup instructions = Investigation 6: How are LVMs managed using Command-Line Tools? == '''Perform this investigation on the VM named ''<u>fedora3</u>''.'''  {{Admon/note|Only Take Notes - Do not Execute Commands|You are going to repeat the same LVM management operations (as your did with the ''fedora2'' VM), but you will using command-line tools in the '''fedora 3''' VM. You are required to record the Linux commands to acheive the same results as in '''Investigation #2'''. You are '''<u>not</u>''' required to issue those commands on your '''fedora3''' VM.|}}  # Take time to view the following reference for LVM management via command line: [[Logical Volume Management]]<ol> <li value="2">Write down the exact commands used at each step as well as command output in your Lab3 log-book: <!-- MURRAY: I commented out this section because the VG does not have available space with the new lab2 configuration. -CTyler  <li>Grow the '''home''' filesystem to '''2G''' using the command <code>lvextend</code>.</li> <li>Create a '''new 2G LV''' containing an ext4 filesystem and mount it at '''/archive'''. See important note below:</li> </ol> {{Admon/note|Learn How to Learn|Refer to the section called '''Using LVM''' and sub-section '''Filesystems on LVs''' in [[Logical Volume Management]] to complete part "c".|}}  <ol type="a"> <li value="4">Reboot your Fedora3 VM to confirm the operation that you performed in the previous step.</li> <li>Copy the contents of <code>'''/etc'''</code> into <code>'''/archive'''</code></li> <li>Shrink <code>'''lv_archive'''</code> to '''1G''' (Refer to the section involving reducing file-systems in use [[Logical Volume Management]].<br />You should be using the commands: <code>umount</code>, <code>resize2fs</code>, <code>lvreduce</code>, and <code>mount</code>)</li> -->
</ol>If you completed this lab correctly - please make sure you are still making full backups of your virtual machines.
Remember adding a new harddrive to fedora3? You will need to back up that drive as well. If you don'''Answer the Investigation 6 observations / questions in t - you will only have half of your lab log bookmachine backed up, which is of no use for a recovery.'''
= Completing the lab =
{{Admon/important|Time for a new backup!|If you have successfully completed this lab, make a new backup of your virtual machines.}}
 
'''Notes:'''
# rpm command options
# yum command options
# How to use pvs/vgs/lvs/df/pvcreate/vgextend/lvextend
# Answer to this question "What is the license of the nautilus package?"
'''Arrange evidence for each of these items on your screen, then ask your instructor to review them and sign off on the lab's completion:'''
 # Larger <code>/home</code> nled installed on '''fedora2'''.# Listing of Linux commands to perform Investigation #3 the host (via CLIdisk pack - main system f16host).
# Unnecessary/unused packages have been deleted (list at least 4, and show that they are no longer installed).
# '''nled''' installed on the host (disk pack - main system '''f16host''').
# Answer to this question:
#* What is the license of the '''nautilus''' package?
# Fresh backup of the virtual machines.
 
= Preparing for Quizzes =
# Describe the steps to switch between text-based and graphical consoles on your f16host system.
# List the steps required to swap sizes between lv_root and lv_home logical volumes on your f16host system.
# What is a VG? PV? LV?
# What commands are used to determine VG / PV / LV information?

Navigation menu