Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!