[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

How to extend logic volume

I have a virtual machine running on an CentOS 6.3 and one of the partitions got filled up.

I still have some spare space on this volume group/vg_Data, you can see below:

[root@centaur ~]# vgdisplay
  --- Volume group ---
  VG Name               vg_Data
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  349
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               6
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               906.44 GiB
  PE Size               4.00 MiB
  Total PE              232048
  Alloc PE / Size       215040 / 840.00 GiB
  Free  PE / Size       17008 / 66.44 GiB
  VG UUID               y0CLON-lDga-xIV4-O9gH-wfOq-W5s4-gCngsl

  --- Volume group ---
  VG Name               vg_os
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               24.53 GiB
  PE Size               4.00 MiB
  Total PE              6279
  Alloc PE / Size       4292 / 16.77 GiB
  Free  PE / Size       1987 / 7.76 GiB
  VG UUID               Eb6bgz-caVc-y4In-K2k2-6uv9-6WFy-g2TTNs

[root@centaur ~]#

How could I add this "Free  PE / Size       17008 / 66.44 GiB" to /dev/vg_Data/alchemyData?
0
Jason Yu
Asked:
Jason Yu
1 Solution
 
MazdajaiCommented:
If you want to add the remaining to the LV, you can use the following:

lvextend -rv -l +100%FREE /dev/vg_Data/alchemyData

Open in new window


This will use all the remaining extends into the LV and grow the file system.
0
 
Jason YuAuthor Commented:
Is this the only command I need run for extending this volume to the maxmium?

thanks.
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now