Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

At the command prompt, type partprobe and press Enter. 1 0 At the command prompt, type pvcreate device and press Enter, where device is the

At the command prompt, type partprobe and press Enter.
10
At the command prompt, type pvcreate device and press Enter, where device is the device file for the 1 GB partition that you created in Step 4. Next, type pvdisplay and press Enter to view the details for your PV.
11
At the command prompt, type vgcreate vg00/dev/sda6 and press Enter. Next, type vgdisplay and press Enter to view the details for your VG.
12
At the command prompt, type lvcreate L 0.9GB n newdata vg00 and press Enter to create a 0.9 GB LV called newdata from the vg00 VG. Next, type lvdisplay and press Enter to view the path and size of your new LV.
13
At the command prompt, type mkfs t ext4/dev/vg00/newdata and press Enter to format the newdata LV using the ext4 filesystem. Next, type mkdir /newdata and press Enter to create a mount point for the newdata LV. Following this, type mount /dev/vg00/newdata /newdata and press Enter to mount the newdata LV to the /newdata directory.
14
At the command prompt, type df -hT and press Enter to verify that your LV is mounted via the device mapper. Next, type ls -l /dev/vg00/newdata and press Enter, noting it is a symbolic link to a device mapper device file. Following this, type lsblk and press Enter to note the relationship between your LV and your PV.
15
At the command prompt, type ls F /newdata and press Enter. Is there a lost+found directory available? Why?
16
At the command prompt, type pvcreate device and press Enter, where device is the device file for the 1 GB partition that you created in Step 6. Next, type pvdisplay and press Enter to view the details for your PV.
17
At the command prompt, type vgextend vg00 device and press Enter, where device is the device file for the 1 GB partition that you created in Step 6. Next, type vgdisplay and press Enter. Note that the total size of your VG reflects both PVs.
18
At the command prompt, type lvextend L +0.9GB -r /dev/vg00/newdata and press Enter to extend your newdata LV by another 0.9 GB. Next, type lvdisplay and press Enter, noting the size has doubled. Following this, type df -hT and press Enter, noting the ext4 filesystem was automatically resized to match the new LV capacity.
19
At the command prompt, type lsblk and press Enter to note the relationship between your LV and your two PVs.
20
At the command prompt, type vi /etc/fstab and press Enter. Add the following line to the bottom of the file to ensure that the newdata LV is mounted at boot time:
/dev/vg00/newdata /newdata ext4 defaults 00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions