Changes

Jump to: navigation, search

OPS235 Lab 4 19

2,444 bytes added, 12:30, 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.'''}}
=LVM Continued / User & Group Management=
 
In this lab, we will continue to use LVM in order to make our file system(s) more flexible. We will also learn how to manage user accounts (eg. creation and removal). We will also learn how to setup accounts that automatically contain pre-existing files to make account creation easier for the system administrator. We will also learn how to manage groups to allow users to share resources (eg. files).
 
==Introduction==
 
In this lab you're going to:
 
:* Learn how to grow file systems by adding virtual hard disks to your VMs.
:* Learn how to manage user accounts and groups for sharing files.
 
== Required Materials (Bring to All Labs) ==
 
* Fedora 19 DESKTOP LIVE CD (Useful as a rescue disk)
* Fedora 19 x86_64 FULL INSTALLATION DVD
* SATA Hard Disk (in removable disk tray)
* USB Memory Stick
* Lab Logbook
 
==Prerequisites==
 
* Completion and Instructor "Sign-off" of Lab 3: [[OPS235 Lab 3]]
 
==Linux Command Online Reference==
Each Link below displays online manpages for each command (via [http://linuxmanpages.com/ http://linuxmanpages.com]):
 
{|width="100%" cellpadding="5"
|'''LVM Information Utilities:'''
|'''LVM Management Utilities:'''
|'''Additional Utilities:'''
|- valign="top"
|
*[http://linuxmanpages.com/man8/vgs.8.php vgs]
*[http://linuxmanpages.com/man8/lvs.8.php lvs]
*[http://linuxmanpages.com/man8/pvs.8.php pvs]
*[http://linuxmanpages.com/man8/vgdisplay.8.php vgdisplay]
*[http://linuxmanpages.com/man8/lvdisplay.8.php lvdisplay]
*[http://linuxmanpages.com/man8/pvdisplay.8.php pvdisplay]
|
*[http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-system-config-lvm.html system-config-lvm] (Tutorial)
*[http://linuxmanpages.com/man8/lvextend.8.php lvextend]
*[http://linuxmanpages.com/man8/resize2fs.8.php resize2fs]
*[http://linuxmanpages.com/man8/lvcreate.8.php lvcreate]
*[http://linuxmanpages.com/man8/lvreduce.8.php lvreduce]
*[http://linuxmanpages.com/man8/pvcreate.8.php pvcreate]
*[http://linuxmanpages.com/man8/vgextend.8.php vgextend]
|}
 
==Resources on the web==
 
Additional links to tutorials and HOWTOs:
'''Please read this page to get an overview of LVM:'''<br /><br />
:* [[Logical Volume Management]] ('''Note:''' It is recommended to return to this guide as a reference when performing the next several investigations)
 
 
= Storage Setup (prior to starting Lab 4) =
/dev/vda2 vg_fedora3 lvm2 a- 9.80G 3.83G
* '''f17host f19host (i.e. "disk pack")'''
Four PVs, minimum VG size 60G
== Investigation 3: How can I use LVM to manage storage on my disk pack? ==
'''On your <u>f17hostf19host</u> (i.e. "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.
# Add that partition as a PV into the existing VG (using the commands you used in the previous investigation).
== Investigation 5: Adding users ==
{{Admon/note|Use f17hostf19host|Perform these steps in the '''f17hostf19host''' system. Due to a configuration issue, these steps may not work normally in the fedora1 virtual host (previous versions of this lab used fedora1 for this investigation).}}
# Read the man page for the useradd command.

Navigation menu