0% found this document useful (0 votes)
50 views

Linux Experiment - 9: 1. Aim/Overview of The Practical

This document summarizes a Linux experiment performed by a student. It includes 4 questions about Linux Volume Management: 1) How to scan a new disk for LVM physical volumes, 2) How to extend an existing volume group by 50GB, 3) How to reduce the size of an LVM partition, and 4) The steps to create a logical volume from scratch. The student provides the commands and steps to answer each question. They conclude with the key learning outcomes from completing the experiment.

Uploaded by

TAHLEEL RASHID
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Linux Experiment - 9: 1. Aim/Overview of The Practical

This document summarizes a Linux experiment performed by a student. It includes 4 questions about Linux Volume Management: 1) How to scan a new disk for LVM physical volumes, 2) How to extend an existing volume group by 50GB, 3) How to reduce the size of an LVM partition, and 4) The steps to create a logical volume from scratch. The student provides the commands and steps to answer each question. They conclude with the key learning outcomes from completing the experiment.

Uploaded by

TAHLEEL RASHID
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

LINUX EXPERIMENT – 9

Student Name: Vaibhav UID: 20MCA1024


Branch: MCA Section/Group: 1\A
Semester: 1ST Date of Performance: 22/12/2020
Subject Name: Linux Administration Lab Subject Code:CAT-618

1. Aim/Overview of the practical:


• How to do you scan the new disk for LVM physical volume?

• Assume Volume group “vg02” is already exists. Provide all the steps with commands
to extend the volume group with 50GB ?.

• How to Reduce Or Shrink The Size Of LVM ParLLon?

• What are the steps involved to create the logical volume from scratch?

2. Steps/Commands involved to perform practical:

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.

Learning outcomes (What I have learnt):


1. To scan the new disk for LVM physical volume
2. Assume Volume group “vg02” is already exists. Provide all the steps with commands to
extend the volume group with 50GB ?.
3. To Reduce Or Shrink The Size Of LVM Partition?
4. Steps involved to create the logical volume from scratch?

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)

You might also like