Linux Experiment - 9: 1. Aim/Overview of The Practical
Linux Experiment - 9: 1. Aim/Overview of The Practical
• Assume Volume group “vg02” is already exists. Provide all the steps with commands
to extend the volume group with 50GB ?.
• What are the steps involved to create the logical volume from scratch?
QUES .1:How to do you scan the new disk for LVM physical volume?
The vgscan command scans all supported disk devices in the system looking for LVM
physical volumes and volume groups. This builds the LVM cache file in the
/etc/lvm/cache/.cache file, which maintains a listing of current LVM devices.
LVM runs the vgscan command automatically at system startup and at other times during
LVM operation, such as when you execute a vg create command or when LVM detects an
inconsistency.
This study source was downloaded by 100000837639765 from CourseHero.com on 12-13-2021 07:15:34 GMT -06:00
https://www.coursehero.com/file/85596640/linux9docx/
This study source was downloaded by 100000837639765 from CourseHero.com on 12-13-2021 07:15:34 GMT -06:00
https://www.coursehero.com/file/85596640/linux9docx/
QUES.2:Assume Volume group “vg02” is already exists. Provide all the
steps with commands to extend the volume group with 50GB?
Firstly, create Physical volume (/dev/sdaX, where X is the partition number) of size 50GB.
Now run following command: # vgextend vgname /dev/sdaX
This study source was downloaded by 100000837639765 from CourseHero.com on 12-13-2021 07:15:34 GMT -06:00
https://www.coursehero.com/file/85596640/linux9docx/
QUES.3:How to Reduce Or Shrink The Size Of LVM Partition?
Step:1 Umount the file system. ...
Step:2 check the file system for Errors using e2fsck command. ...
Step:3 Reduce or Shrink the size of /home to desire size. ...
Step:4 Now reduce the size using lvreduce command. ...
Step:5 (Optional) For the safer side, now check the reduced file system for errors.
QUES.4: What are the steps involved to create the logical volume from scratch?
Step 1: Partitioning the disk for creating Physical volume. ...
Step 2: Creating with Physical volume (PV). ...
Step 3: Creating with Volume Group (VG). ...
Step 4: Creating with Logical Volume (LV). ...
Step 5: Creating and mounting the filesystem in Linux.
This study source was downloaded by 100000837639765 from CourseHero.com on 12-13-2021 07:15:34 GMT -06:00
https://www.coursehero.com/file/85596640/linux9docx/
Powered by TCPDF (www.tcpdf.org)