Changes

Jump to: navigation, search

OPS245 Lab 5

No change in size, 16:05, 7 February 2021
m
Part 1: Managing File System Size with Existing Hard Drive: - moding away from using root for everything.
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo ls /dev/vd*</span></code></b><br><br>'''NOTE:''' If nothing displays, issue the command: '''sudo ls /dev/sd*''' and use that device pathname '''/dev/sda''' instead, and notify your instructor when about to run your lab5-check.bash shell script at the end of this lab.<br><br>
# Issue the following command to install the '''ssm''' command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">sudo yum install system-storage-manager</span></code></b>
# Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo ssm list</span></code></b>. Take a few moments to note the volume group, physical volume and logical volume sections of the command output.
# Compare this output from the ssm command with these other lvm commands: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo lvs</span></code></b>, <b><code><span style="color:#3366CC;font-size:1.2em;">sudo pvs</span></code></b>, and <b><code><span style="color:#3366CC;font-size:1.2em;">sudo vgs</span></code></b>. Which method do you prefer to use?
# Check to see if there is any remaining space on your existing hard disk. Can you see any?
# You can create a partition by using the fdisk command. Issue the following command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">sudo fdisk /dev/vda</span></code></b> (or fdisk /dev/sda if there is no /dev/vda).
#At the '''fdisk''' prompt, issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">p</span></code></b>. What does this do?
#Now issue the commands <b><code><span style="color:#3366CC;font-size:1.2em;">n</span></code></b> (new partition), <b><code><span style="color:#3366CC;font-size:1.2em;">p</span></code></b> (primary partition), <b><code><span style="color:#3366CC;font-size:1.2em;">3</span></code></b> (i.e. next available partition number). When prompted for initial block, press '''enter''' to accept the default beginning block size, and type: <b><code><span style="color:#3366CC;font-size:1.2em;">+3G</span></code></b> at ending block (create a 3GB partition) and press '''enter'''.
#At the fdisk prompt, issue the command <b><code><span style="color:#3366CC;font-size:1.2em;">p</span></code></b> to review the partition information.
#Enter the command <b><code><span style="color:#3366CC;font-size:1.2em;">w</span></code></b> to save partition table and exit (ignore WARNING message).
932
edits

Navigation menu