Changes

Jump to: navigation, search

OPS235 Lab 5

163 bytes added, 08:20, 22 June 2016
no edit summary
'''Perform the following steps:'''
# Launch Remain in your '''centos2''' VM and open a shell terminalfor this section.# Open a shell terminal, and login Make certain that you are logged in as '''root'''.
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">ls /dev/vd*</span></code></b><br><br>'''NOTE:''' If nothing displays, issue the command: '''ls /dev/sd*''' and use that device pathname '''/dev/sda''' instead.<br><br>
# Issue the following command to install the '''ssm''' command: <b><code><span style="color:#3366CC;font-size:1.2em;">yum install system-storage-manager</span></code></b>
#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;">+2G</span></code></b> at ending block (create 2GB for 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, then issue .#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).#You <u>'''must'''</u> '''restart ''' your centos2 VM to allow changes to take effect.#Verify that you created this partition by issuing the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">fdisk -l /dev/vda</span></code></b>
#Open a terminal as root, and format your newly-created partition by issuing the command: <b><code><span style="color:#3366CC;font-size:1.2em;">mkfs -t ext4 /dev/vda3</span></code></b><br>(or ''mkfs -t ext4 /dev/sda3'')
#Re-issue the '''ssm''' command. Do you see a new /dev/sda3 partition under Physical Volumes?
13,420
edits

Navigation menu