1,885
edits
Changes
→State when starting Lab 4
{{Admon/note|Recovering VMs|Most of these investigations will take place in you virtual machines. If you make a significant mistake, your virtual machine may not boot. Remember that you created backups of your virtual machines in Lab 3, and you can restore them if something goes wrong.}}
Please read this page to get an overview of LVM:
* [[Logical Volume Management]]
'''Perform this investigation on the VM named ''fedora2''.'''
[[Image:Ops235_lab4_1.png|thumb|right|Screenshot of system-config-lvm in Fedora 12. Click to enlarge.]]
* Try shrinking <code>/</code> -- what happens? Why?
'''Repeat the operations from Investigation 1, using the virtual machine ''fedora3'' (command-line tools only). Write down the exact commands used at each step:'''
# Determine the current LVM configuration using the <code>pvs</code>, <code>vgs</code>, and <code>lvs</code> command.
# Shrink <code>lv_archive</code> to 1G (use <code>umount</code>, <code>resize2fs</code>, <code>lvreduce</code>, <code>resize2fs</code>, and <code>mount</code>)
'''Add an additional 5 GB virtual disk to your ''fedora1'' system, and use it as an additional physical volume:'''
# Start <code>virt-manager</code>.
# Change your system configuration so that the new filesystem is mounted on <code>/home</code> from now on.
'''On your host (disk pack), using your choice of the GUI and/or command-line tools:'''
# Create a new logical partition ('''NOT a logical volume!''') - minimum 5G, leaving at least 10G free space in the extended partition.
# Grow the root filesystem to fill the available space.
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:
Make sure that your lab notes answer the Investigation 5 question.
# Change to the directory containing the lynx-2.8.6-24.fc12.x86_64.rpm: <code>rpm -i lynx-2.8.6-17.fc10.i386.rpm</code>
Answer the Investigation 6 question.
{{Admon/note|Internet Connection|In order for yum to work you require a connection to the Internet. Establish this connection by using the browser to log into Senenet}}
Answer the Investigation 7 question.
# Look at the /etc/passwd file.
# Look at the names of the users. What do you think these user names represent? Are they people?
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
# Add your matrix account user to '''fedora3'''.
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
Be sure to record your observations in your lab notes.
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
Backup your virtual machines again.
# Backup of the virtual machines.
# What is a VG? PV? LV?