How To Extend-Reduce LVM
How To Extend-Reduce LVM
How To Extend-Reduce LVM
STORAGE 78 I TecMint :
Extend/Reduce
LVM’s (Logical
Volume
Management) in
Linux – Part II
by Babin Lonston | Published: August Vi/Vim Editor BEGINNER'S GUIDE
8, 2014 | Last Updated: June 27, 2017 Learn vi/vim as a Full Text Editor
SPONSORED SEARCHES
logical volume
Requirements
Create Flexible Disk Storage
with LVM – Part I
When do we need to
reduce volume?
May be we need to create a
separate partition for any other
use or we need to expand the
size of any low space partition, if
so we can reduce the large size
partition and we can expand the
low space partition very easily by
the following simple easy steps.
My Server Setup –
Requirements Linux System Administrator Bundle
with 7-Courses (96% off)
Operating System – CentOS
6.5 with LVM Installation Add to Cart - $69
Server IP – 192.168.0.200
Ending In: 3 days
Reduce Logical
Volume LINUX EBOOKS
# fdisk -l /dev/sda
# pvcreate /dev/sda1
# pvs
Extending Volume
Group
Add this pv to vg_tecmint vg to
extend the size of a volume
group to get more space for
expanding lv.
# vgs
# pvscan
Ad
# vgdisplay
# lvdisplay
RedHat RHCSA and RHCE Certification Exam Study Ebook Get This Book
# vgdisplay
# vgs
# lvs
Reducing Logical
Volume (LVM)
Here we are going to see how to
reduce the Logical Volumes.
Everyone
RedHat RHCSAsayand
its critical and may
RHCE Certification Exam Study Ebook Get This Book
end up with disaster while we
reduce the lvm. Reducing lvm is
really interesting than any other
part in Logical volume
management.
# lvs
# df -h
# umount -v /mnt/tecmint_reduce_test/
Unmount Parition
Ad
# lvdisplay vg_tecmint_extra
Calculate PE Size
# resize2fs /dev/vg_tecmint_extra/tecmint_reduce_test
# lvdisplay vg_tecmint_extra
Sharing is Caring...
Share on Facebook
Share on Twitter
Share on Linkedin
Share on Reddit
If You
Appreciate
What We Do
Here On
TecMint, You
Should
Consider:
the thousands of
published articles
available FREELY to
all.
Tags: lvm
PREVIOUS NEXT
STORY STORY
Installing Kernel
MariaDB 3.16
10.1 in Released
Debian –
Jessie Compile
and and
Running Install
Various on
MariaDB Debian
Queries GNU/Linux
RedHatYOU MAYand
RHCSA ALSO LIKE...
RHCE Certification Exam Study Ebook Get This Book
18 17 79
OwnClo
How to Create ud 9
Setup Centrali Release
DRBD to zed d–
Replicat Secure Create
e Storage Persona
Storage using l/Private
on Two iSCSI Cloud
CentOS Target Storage
7 on in Linux
Servers RHEL/C 19 FEB,
14 JAN,
entOS/F 2015
2019 edora
Part -I
14 JUL,
2014
78 RESPONSES
Comments 8
Pingbacks 0
Godwin Chanda
December 19, 2019 at 3:06 pm
Free-flowing explanation
from start to finish. Many
thanks.
Reply
Harsh
November 13, 2019 at 8:45 am
This was very helpful!!
RedHat RHCSA and RHCE Certification Exam Study Ebook Get This Book
Thanks Babin!
Reply
Aditya Garg
August 17, 2019 at 11:53 am
In summary, to reduce ext
filesystem:
◾ unmount/mount at the
end
◾ fsck
◾ resize the filesystem
◾ lvreduce
◾ resize again to avoid
discrepancies between LV
and FS
◾ fsck
1 thru 5 are taken care by
single command: lvreduce -L
(size) -r /dev/mapper/vg-lv
As seen here:
https://access.redhat.com/documentation/en-
us/red_hat_enterprise_linux/6/html/logical_volume_manager_administration/lv_reduce
Zak
July 10, 2019 at 12:24 am
Thanks, this was a very
helpful write up!
Reply
Bhargavi
June 12, 2019 at 5:20 pm
Hi,
I have created one hard disk
(sdc) and want to add in
(sdb) hard disk how to add in
command line in LVM please
RedHat RHCSA and RHCE Certification Exam Study Ebook Get This Book
let me know.
Reply
Babin
March 25, 2019 at 10:23 pm
@Mihir,
Still, XFS did not provide an
option to reduce, but you can
grow the size on the fly.
Reply
Mihir Agrawal
March 21, 2019 at 8:50 pm
How to reduce xfs file
system?
Reply
Peter Haas
February 28, 2019 at 2:55 pm
It is worth mentioning if your
partition is xfs then you will
need to use ‘xfs_growfs‘.
xfs seems popular for later
releases of Centos.
Reply
« Older Comments
Comment
Name * Email *
RedHat RHCSA and RHCE Certification Exam Study Ebook Get This Book
Website
Notify me of followup
comments via e-mail. You can
also subscribe without
commenting.
Post Comment
QUESTIONS
Best Command Line
HTTP Clients for Linux
HowRHCSA
RedHat to Setupand
andRHCE Certification
15 BasicExam
MySQLStudy Ebook 21 Best Open Source
Get This Book
Manage Log Rotation Interview Questions for Text Editors (GUI + CLI)
Using Logrotate in Linux Database Administrators in 2019