LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-02-2009, 10:58 AM   #1
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Rep: Reputation: 15
Question Error in extending LVM...


Hi

I am facing problem in extending of LVM it was successfully extended before but due to some reason i had to reduce it. Now when again I try to extend it it's give me an error message which is mentioned below please have a look and suggest me what should i do.

I issued below mentioned command:-
lvextend -L +8000M /dev/My_VolGroup00/Home02

And got below error:-

Insufficient free space: 250 extents needed, but only 161 available

Extending logical volume Home02 to 15.62 GB


Thanks & Regards
Charanjit Singh
 
Old 08-02-2009, 11:16 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

First thought is that there's not enough disk space available to extend your logical volume by 8Gb. You need to check before extending a logical volume if there are enough extents free. Using the commands pvdisplay, vgdisplay and lvdisplay should give you all the info you need.

Kind regards,

Eric
 
Old 08-03-2009, 01:43 AM   #3
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
If suppose there is no space so how could i free it because Its not allowing me to add in current logical volume. Without it i will not able to view that volumegroup.

Thanks
Charanjit
 
Old 08-03-2009, 01:47 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Can you post the output of pvdisplay, vgdisplay and lvdisplay commands?

Kind regards,

Eric
 
Old 08-03-2009, 12:18 PM   #5
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
Hi Eric

Below are the outputs of LVM commands, please have a look.

PVDISPLAY O/P

[root@station1 ~]# pvdisplay

--- Physical volume ---
PV Name /dev/sda2
VG Name My_VolGroup00
PV Size 7.90 GB / not usable 23.41 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 252
Free PE 0
Allocated PE 252
PV UUID NmUdFi-GoCh-2IZQ-DSJE-tX3L-irbf-lgSlRH

--- Physical volume ---
PV Name /dev/sdb1
VG Name My_VolGroup00
PV Size 8.00 GB / not usable 29.35 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 255
Free PE 0
Allocated PE 255
PV UUID gN1kff-O0pA-PKbo-R21i-WCMu-OXe1-CXoc4K

--- Physical volume ---
PV Name /dev/sdc1
VG Name My_VolGroup00
PV Size 8.00 GB / not usable 29.35 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 255
Free PE 0
Allocated PE 255
PV UUID rOcEU0-Dz3G-9V8s-XLDo-IPb0-Tnaq-42yif1

--- Physical volume ---
PV Name /dev/sdd1
VG Name My_VolGroup00
PV Size 8.00 GB / not usable 29.35 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 255
Free PE 161
Allocated PE 94
PV UUID fgENfH-wDur-YFsX-sHzz-PcBu-6Q0Y-IaRv2A


VGDISPLAY O/P


[root@station1 ~]# vgdisplay
--- Volume group ---
VG Name My_VolGroup00
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 4
Act PV 4
VG Size 31.78 GB
PE Size 32.00 MB
Total PE 1017
Alloc PE / Size 856 / 26.75 GB
Free PE / Size 161 / 5.03 GB
VG UUID ZR9iIH-edSc-dqvZ-Z7Ln-6Ylu-lckz-qEDq0Q


LVDISPLAY O/P
[root@station1 ~]# lvdisplay
--- Logical volume ---
LV Name /dev/My_VolGroup00/Root01
VG Name My_VolGroup00
LV UUID qtN1JL-UnKA-hDko-yn9v-EZFI-CxkD-pyv5gH
LV Write Access read/write
LV Status available
# open 1
LV Size 9.75 GB
Current LE 312
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/My_VolGroup00/Home02
VG Name My_VolGroup00
LV UUID elT5lL-YY2x-6ZyZ-lHVe-SQde-Tmb1-CF1PKf
LV Write Access read/write
LV Status available
# open 1
LV Size 7.81 GB
Current LE 250
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Logical volume ---
LV Name /dev/My_VolGroup00/Var03
VG Name My_VolGroup00
LV UUID cihuCk-9v7W-lUhI-1c3T-Wuqu-Fbuq-38mZ2C
LV Write Access read/write
LV Status available
# open 1
LV Size 8.19 GB
Current LE 262
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:2

--- Logical volume ---
LV Name /dev/My_VolGroup00/Swap00
VG Name My_VolGroup00
LV UUID giGfaN-56vw-FdXG-lMXb-PWcB-uSfd-pB3stQ
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3

Thanks & Regards
Charanjit
 
Old 08-03-2009, 01:01 PM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
You appear to have only 5152MB of free space on the disks.

You have three choices:
  1. Add another disk to the Volume Group; extend the volume group to include the new disk; extend the logical volume.
  2. Reduce one of the other logical volumes to free up space (risky, ensure you have a backup first) requires logical volume to be unmounted.
  3. Increase the logical volume to include the 161 free extents that you have available.

That's pretty much it.
 
Old 08-03-2009, 01:21 PM   #7
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello Charanjit,

I agree with Disillusionist. You only have those options listed. Your PE (Physical extent) size is 32Mb and you only have 161 PE's free on /dev/sdd1, the others are used up. So doing the math you get exactly what Disillusionist said, roughly 5Gb, and also those possibilities. I'd also go with option 1 or 3.

Kind reqards,

Eric
 
  


Reply

Tags
extending, lvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending LVM partition?? your_shadow03 Linux - Newbie 3 01-16-2009 03:43 AM
Problem extending EXT3 on LVM using resize2fs divot_powell Linux - Software 2 11-20-2007 03:54 AM
Extending home partition with LVM The_Outlander Slackware 2 01-03-2007 09:13 PM
lvm extending logical partation Ammad Linux - General 0 09-25-2005 05:39 AM
extending ext3 lvm Kroenecker Linux - Newbie 2 12-31-2003 07:51 PM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration