Difference between revisions of "OPS235 Lab 4 19"
(Created page with 'Category:OPS235Category:OPS235 Labs = Storage Setup (prior to starting Lab 4) = At this point, having completed Lab 3 you should have <u>roughly</u> the…') |
|||
Line 1: | Line 1: | ||
[[Category:OPS235]][[Category:OPS235 Labs]] | [[Category:OPS235]][[Category:OPS235 Labs]] | ||
+ | |||
+ | =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) | ||
+ | :* [http://fedoranews.org/alex/tutorial/rpm/ Using the RPM Utility] | ||
+ | :* [http://www.centos.org/docs/5/html/yum/ Using the YUM Utility] | ||
+ | |||
= Storage Setup (prior to starting Lab 4) = | = Storage Setup (prior to starting Lab 4) = | ||
Revision as of 22:37, 29 August 2013
Contents
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):
LVM Information Utilities: | LVM Management Utilities: | Additional Utilities: |
} Resources on the webAdditional links to tutorials and HOWTOs:
Please read this page to get an overview of LVM:
Storage Setup (prior to starting Lab 4)At this point, having completed Lab 3 you should have roughly the following disk storage setup:
This VM has a GUI and no free space in the VG. VG #PV #LV #SN Attr VSize VFree vg_fedora1 1 2 0 wz--n- 9.80G 0 LV VG Attr LSize lv_root vg_fedora1 -wi-ao 8.83G lv_swap vg_fedora1 -wi-ao 992.00M PV VG Fmt Attr PSize PFree /dev/vda2 vg_fedora1 lvm2 a- 9.80G 0
This VM has a GUI and free space in the VG. VG #PV #LV #SN Attr VSize VFree vg_fedora2 1 3 0 wz--n- 14.80G 4.07G LV VG Attr LSize lv_home vg_fedora2 -wi-ao 1.95G lv_root vg_fedora2 -wi-ao 7.81G lv_swap vg_fedora2 -wi-ao 992.00M PV VG Fmt Attr PSize PFree /dev/vda2 vg_fedora2 lvm2 a- 14.80G 4.07G
This VM has no GUI installed. VG #PV #LV #SN Attr VSize VFree vg_fedora3 1 3 0 wz--n- 9.80G 3.83G LV VG Attr LSize lv_home vg_fedora3 -wi-ao 1.00G lv_root vg_fedora3 -wi-ao 4.00G lv_swap vg_fedora3 -wi-ao 992.00M PV VG Fmt Attr PSize PFree /dev/vda2 vg_fedora3 lvm2 a- 9.80G 3.83G
Four PVs, minimum VG size 60G Single filesystem on vg_main/root, size 50G At least 10G available space in VG 20% of disk space unallocated to any partition (min 15G) Logical Volume Management (Continued)ResourcesPlease read this page to get an overview of LVM:
Investigation 1: How are LVMs are managed using Command-Line Tools
Investigation 2: How can a PV be added to an existing VG?Add an additional 2 GB virtual disk to your fedora1 system, and use it as an additional physical volume:
Using that additional space, create a separate filesystem for
Investigation 3: How can I use LVM to manage storage on my disk pack?On your f17host (i.e. "disk pack"), using your choice of the GUI and/or command-line tools:
User/Group ManagementInvestigation 4: The /etc/passwd file
Investigation 5: Adding users
Investigation 6: Managing Groups
Be sure to record your observations in your lab notes. Investigation 7: Deleting users
Be sure to record your observations in your lab notes.
Investigation 8: Modifying users
Completing the labArrange proof of the following on the screen:
Preparing for the Quizzes
|