LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2007, 09:47 PM   #1
deim
Newbie
 
Registered: Mar 2007
Posts: 0

Rep: Reputation: 0
LVM - Extending logical volume - Insufficient free space


Hi guys,

I want to merge 2 disks into one logical volume.

Created group with one disk (280GB), and to experiment - created logical volume 250GB:
Code:
fileserver:/home # pvdisplay
  --- Physical volume ---
  PV Name               /dev/hdh
  VG Name               archive
  PV Size               279.46 GB / not usable 24.15 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              8942
  Free PE               942
  Allocated PE          8000
  PV UUID               u8b2Nn-sZxV-Msuh-xHuA-I7bF-TF68-kVAJ7v

  --- NEW Physical volume ---
  PV Name               /dev/hdg
  VG Name
  PV Size               149.05 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               RL6frm-Aaa9-HNpm-wIkO-loAT-ua8Q-mlnvtX
Code:
fileserver:/home # vgdisplay
  --- Volume group ---
  VG Name               archive
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               279.44 GB
  PE Size               32.00 MB
  Total PE              8942
  Alloc PE / Size       8000 / 250.00 GB
  Free  PE / Size       942 / 29.44 GB
  VG UUID               EXL7F1-ZLGr-WU79-Tc1a-TZin-zHsX-ieduFe
Code:
fileserver:/home # lvdisplay
  --- Logical volume ---
  LV Name                /dev/archive/fullarch
  VG Name                archive
  LV UUID                3XfcsV-cI5r-ztEN-v605-AViv-gKkk-qWPt0Z
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                250.00 GB
  Current LE             8000
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
Now, umount it (already done):
Code:
# umount /dev/archive/fullarch
umount: /dev/archive/fullarch: not mounted
Now, trying to extend lv to +5GB:

Code:
# lvextend -L+5g /dev/archive/fullarch
  Extending logical volume fullarch to 255.00 GB
  Insufficient free space: 8160 extents needed, but only 942 available
...and I'm stuck right here. As far as I understand, LE is equal to PE. And I have total PE - 8942, and of them - free PE 942. So, I'm using only 8000 LE/PE. By extending to +5GB, I want to extend it from 8000 to 8192, and 750 PE/LE will still be free.
I don't get it - why it complains that it needs 8160 and only 942 available, while actually it needs only 160 ADDITIONAL extents?!

I think I'm missing something terribly.

Now, not only I can't resize lv to the second drive, but I can't even resize lv to the full size of first drive.

Oh, forgot to mention - the only thing I've changed from default values when was creating VG - I've changed size of extents from 4MB to 32MB to make it possible to have ~1TB volume.
 
  


Reply



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
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 07:21 AM
LVM: How to create logical (physical) volume with extent sie 32 Mb consistgd Linux - Software 4 11-14-2006 05:03 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM
LXer: Consistent backup with Linux Logical Volume Manager (LVM) snapshots LXer Syndicated Linux News 0 06-02-2006 04:21 PM
lvm extending logical partation Ammad Linux - General 0 09-25-2005 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 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
Open Source Consulting | Domain Registration