Fill This Form To Receive Instant Help
Homework answers / question archive / Introduction to Linux UNIX DCOM 224 Final Project Overview: This final is a practical based activity covering several areas of Linux management we discussed throughout the semester
Introduction to Linux UNIX
DCOM 224 Final Project
Overview: This final is a practical based activity covering several areas of Linux management we discussed throughout the semester. Read each section carefully and thoroughly before executing the tasks within the section. Remember, you have access to the any book(s), self-prepared notes, labs the internet, and the system's help, man, and info pages. You should not ask any other students for assistance!
A couple of suggestions and things to note:
Be certain you are working in your own Virtual Machine as the student user!
Section 0: Initial Preparation
3. Change the hostname of your CentOS Linux to your last name by typing this command
sudo hostnamectl set-hostname <your lastname>
sudo systemctl restart system-hostnamed
reboot or restart your CentOS and verify the host name is changed when you open the terminal
Section 1: Storage Management
You added 5GB drive and partitioned 4GB and 1GB space is available in Lab 2 and Lab 3. Using the free space you created in lab 2 and Lab 3, partition the free space using the specification provided.
Step 0
Before you proceed, enter the following command:
sudo pvs
Make sure you get the following result
Enter
sudo parted /dev/sdb
If your console (terminal) does not provide the result, you may have to go back and complete lab 2 and lab 3.
This picture shows that you will be partitioning unallocated space to do partition, create physical volume, volume group and logical volume and mount to /hrdata folder.
Sdb1 and sdb2 have been partitioned, added to the volume group, backup and created three logical volumes, sysbk, databk and logbk.
This final lab, you will be partitioning sdb3, create physical volume, volume group and logical volume to the given criteria.
Step1:
This step criteria is
Partition Type: primary
File system type: ext4
Size: 50MB
Use “parted” command to create third partition in unallocated space of 5GB disk size you added in lab 2
Create a new logical partition, physical volume, and volume group to store the HR data.
Partition characteristics: Recommended to use “parted” command.
After creating primary partition of 50MB size in sdb3
Step 2:
Enter “sudo partprobe” command to write the new partition in kernel
Enter sudo parted /dev/sdb and enter “p” to view the newly created partition
[Paste Screen Shot]
Step 3: After allocating the third partition, create physical volum.
Create a physical volume /dev/sdb3 using pvcreate command
Step 3: Verify physical volume, sdb3 is created by sudo pvdisplay
[Paste Screenshot]
Step 4: Create a volume group and label as “hvrg”
Criteria:
Volume group characteristics:
Name: hrvg
Step 5: Verify volume group, hrvg is created .
Enter sudo vgdisplay hrvg
[Paste Screen Shot]
Step 6: Create Logical Volume for the given criteria:
LV name: hrdatalv
LV Size: 40 MB
Type: ext4
Disk: sdb
Label: HRdata
Directory to mount on: /hrdata
Step 7: Verify logical Volume is created
Enter sudo lsblk –f /dev/hrvg/hrdatalv
[Paste Screen Shot]
Step 8: Mount the logical volume to a directory
Step 9: Verify the logical volume is mounted
Enter sudo lsblk –f /dev/hrvg/hrdatalv
[Paste Screen Shot]
Section 2: Package management
References:
https://www.cyberciti.biz/howto/question/linux/linux-rpm-cheat-sheet.php
https://access.redhat.com/articles/yum-cheat-sheet
Enter the following command in terminal
wget https://packages.endpoint.com/rhel/7/os/x86_64/john-1.8.0-6.ep7.x86_64.rpm
Verify you download the file in final directory
[Paste Screen shot]
Command:
[Paste Screen Shot]
All the files that were installed with the john package. Use “rpm” command
Command:
[Paste Screen shot]
Command:
[Paste Screen Shot]
Section 3: Automation – Extra Credit
1. Create a crontab entry for student to run /bin/echo "1st day of the month!" at 1:10 PM on the first day of the month
2. Create a crontab entry for student to run /bin/echo "doing weekday backups" at 10:30 PM Monday through Friday
3. Verify you entered last two requirements by viewing the content of /var/spool/cron/student
[Paste Screen Shot]
Grading Rubrics: