LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2007, 05:52 AM   #1
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Rep: Reputation: 15
Not enough PE when running lvextend!?


Dear,

I recently set up a spare hdd with LVM2. I happen not to have partitionned the disk with LV sizes suitable for my environment, but LVM is supposed to help make those changes a breeze right???

Ok so basically when I do:

bash-3.1# vgdisplay
--- Volume group ---
VG Name my_vg_name
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
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 17.12 GB
PE Size 4.00 MB
Total PE 4384
Alloc PE / Size 4352 / 17.00 GB
Free PE / Size 1332 / 5.12 GB
VG UUID CLj3Qx-SoIh-j2Ls-vCkt-T13V-eTYA-5Kz5ct

Which is about right (supposed to be 18G hdd though).

What happens is that the disk was actually setup with 3 LVs at first. I tried to reduce the third LV so that I could then extend the the second LV but this didn't work, so I lvremoved the third LV.

Then:

lvextend -L+3G /dev/my_vg/my_logical_volume#2
Extending logical volume lvm2 to 9.00 GB
Insufficient free space: 2304 extents needed, but only 1312 available

Which makes sense half way since 2304 extents are needed but only 1312 are available. Though vgdisplay clearly states that there is 5.12GB left free on the disk...

Let's try to recreate a third LV:

lvcreate -L5G -n my_logical_volume#3 my_volume_group
Logical volume "my_logical_volume#3" created

And again:

vgdisplay
--- Volume group ---
VG Name my_vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 17.12 GB
PE Size 4.00 MB
Total PE 4384
Alloc PE / Size 4352 / 17.00 GB
Free PE / Size 32 / 128.00 MB
VG UUID CLj3Qx-SoIh-j2Ls-vCkt-T13V-eTYA-5Kz5ct


By comparing the output of vgdisplay, you can see that creating a new LV of 5G uses 1300 PEs but extending an existing LV requires 2304 PEs, however. Is this how it is suposed to work or am I doing things the wrong way around? The LVM-howto also states that there are different mapping modes (linear/stripped) but I haven't got my head around this yet, could that be the source of the problem??

Any advice appreciated. Thanks

Last edited by Chikne; 01-30-2007 at 05:53 AM.
 
Old 01-31-2007, 07:27 PM   #2
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Original Poster
Rep: Reputation: 15
This is the version of LVM that I downloded tried first 2.02.13 from linuxpackages. It must be buggy since after downloading a more recent version and compiled it from source it works ok...
 
Old 02-01-2007, 02:11 PM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Why don't you use the official Slackware version?
 
Old 02-02-2007, 03:27 AM   #4
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uselpa
Why don't you use the official Slackware version?
Do you mean the one that comes installed with Slackware? Because I run 2.6 kernel...
 
Old 02-02-2007, 04:49 AM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Yes, me too.
There's an LVM2 package on the CDs/DVD that works wonderfully with the 2.6 kernel.
 
Old 02-04-2007, 06:23 AM   #6
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uselpa
Yes, me too.
There's an LVM2 package on the CDs/DVD that works wonderfully with the 2.6 kernel.
Sorry but, do you mean on the slackware CDs/DVDs???
 
Old 02-04-2007, 10:24 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Yes, it's on the official Slackware CDs/DVD.
On my favorite mirror, you can download from here.
 
  


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
Getting Smart running on Suse 10.1 on IBM T22 laptop running KDE 3.5.1 headdeball Linux - Desktop 2 01-20-2007 05:44 AM
After lvextend wrong free space epiphiny Fedora 4 11-19-2006 03:09 PM
lvextend - where's my data? zdenisl Linux - Software 4 05-13-2006 08:36 AM
LVM and lvextend mirroring smkamene Linux - Software 0 02-26-2005 08:48 PM
any linux distro can running in RAM , not need CD_ROM reading when running. wangcity Linux - General 3 09-18-2003 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:37 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