How to increase Logical Volume Size in Linux

0 votes

Hi Guys,

I have one Logical Volume in my Linux system. Now I want to increase the size of this volume. How can I do that?

Jul 9, 2020 in Linux Administration by akhtar
• 38,260 points
1,333 views

1 answer to this question.

0 votes

Hi@akhtar,

To increase the Logical Volume Size, the Linux system has one command named lvextend. This command helps to increase the size of the volume according to our needs. You can go through the below-given example.

[root@localhost ~]# lvextend --size +5G /dev/myvg/mylv
  Size of logical volume myvg/mylv changed from 50.00 GiB (12800 extents) to 55.00 GiB (14080 extents).
  Logical volume myvg/mylv successfully resized.
[root@localhost ~]# lvdisplay myvg/mylv
  --- Logical volume ---
  LV Path                /dev/myvg/mylv
  LV Name                mylv
  VG Name                myvg
  LV UUID                yEPJZN-5Ucq-sL2u-VEKU-Nlpt-iTMh-HrH2uf
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2020-07-08 14:08:36 -0400
  LV Status              available
  # open                 0
  LV Size                55.00 GiB
  Current LE             14080
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:3

I hope this will help you.

answered Jul 9, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
1 answer

How to find Resident Set Size of a process in Linux?

Hi@akhtar, RSS is a memory currently used by ...READ MORE

answered Oct 12, 2020 in Linux Administration by MD
• 95,460 points
1,779 views
0 votes
1 answer

How to increase Swap Memory in CentOS 7?

Follow the below steps and procedures: Prerequisites Must have ...READ MORE

answered Oct 5, 2018 in Linux Administration by Frankie
• 9,830 points
15,967 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,220 points
2,625 views
0 votes
1 answer

How to create a symlink in Linux?

To create a symbolic link, you can ...READ MORE

answered Feb 1, 2019 in Linux Administration by Omkar
• 69,220 points
1,222 views
0 votes
1 answer

How to create Volume Group in Linux?

Hi@akhtar, To create a Volume Group, you need ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,409 views
0 votes
1 answer
0 votes
1 answer

How to create Physical Volume in Linux?

Hi@akhtar, To create Physical volume in the Linux ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
5,398 views
0 votes
1 answer

Volume group "mylv" not found Cannot process volume group mylv

Hi@akhtar, You got this error because your command ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
4,629 views
0 votes
1 answer

How to create Logical Volume from Volume Group in Linux?

Hi@akhtar, You can use lvcreate command to create ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
1,801 views
0 votes
1 answer

How to format Logical Volume in Linux?

Hi@akhtar, In Linux, you can find lots of ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
976 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP