How to reduce or shrink the size of LVM partition ? 

Below are the logical Steps to reduce size of LVM partition : 

-Umount the filesystem using umount command, 

-use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G 

-Now use the lvreduce command , e.g lvreduce -L 10G /dev/mapper/myvg-mylv 

Above Command will shrink the size & will make the filesystem size 10GB. 

 

How to create partition from the raw disk ? 

Ans: Using fdisk utility we can create partitions from the raw disk.Below are the steps to create partition from the raw dsik : 

– fdisk  /dev/hd* (IDE) or /dev/sd* (SCSI) 

– Type n to create a new partition 

–  After creating partition , type w command to write the changes to the partition table. 

 

Ron Jagannathan has written 54 articles

Ronan is a Caffeine dependent life-form from Planet Earth who wants to be a Jedi Knight of cloud computing. A man of mystery and power, whose power is exceeded only by his mystery. Quantum Physicist, TransHumanist, Systems Architect, Unix Administrator, Artificial Intelligence, Machine Learning and DIY Gadget enthusiast. Believes that the Universe has a high probability of being a simulation.
But he's real and hopefully some of his readers are too.
email: Ron.Jagannathan@gmail.com ph: 202 355 5205
https://www.linkedin.com/in/ronjagan/
My Famous Quotes:
“In a Unix Universe, God is known by a four letter word called root. To err is human...to really foul requires you to be root.. err.. god.” ― Ron Jagannathan

Github: github.com/ronjag
Linkedin: linkedin.com/in/ronjagan/

“Quotes found on the Internet are not always accurate.” ― Abraham Lincoln

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>