Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-28-2007, 01:44 PM   #1
Registered: Jun 2004
Distribution: debian etch
Posts: 40

Rep: Reputation: 15
lvm issues: trouble adding HDDs

hi there,

I'm attempting to add a HDD to my machine, which is using LVM, to extend the usable drive space.
i have read the howto, and google the heck out of this, to no avail.
most of it has gone off without a hitch, but i think i am missing a step somewhere.
( also, i'm attempting to get acquainted with encrypted lvm, and i'm assuming that this shouldn't make a difference. Please correct me if i am wrong. )

what i have done:
- physically installed the new 60GB hdd
- i formated the disk with fdisk, giving it an ID of linux lvm,
creating one partition the size of the whole disk
- i executed: mkfs -t ext3 /dev/hdb1
- i exetecuted: pvcreate /dev/hdb1
no problem
- I added the PV to the VG, bear, by executing: vgextend bear /dev/hdb1
no problem
- i am trying to extend my 'home' logical volume,
so, i execute: lvextend -L +59G /dev/bear/home
and i get an error
i also tried: lvextend -L +59G /dev/bear/home /dev/hdb1
both commands return the same error message:
"Extending logical volume home to 162.39 GB
Insufficient suitable allocatable extents for logical volume home: 794 more required"

at this point, i'm at a total loss of what to do.
google, as well as all the forums i normally visit have shared no love.
can you?

Last edited by spargonaut; 04-28-2007 at 01:47 PM.
Old 04-28-2007, 02:00 PM   #2
Registered: Jun 2004
Distribution: debian etch
Posts: 40

Original Poster
Rep: Reputation: 15
ok, so, i have just determined that i am retarded.
not that this is something new, its just more proof.

problem fixed.
solution is as follow,
hopefully, this will help someone else in the future,
if not myself.

so, just like, when you buy an HDD at the store, and you buy a "60gb" HDD, what you really get is something along the lines of 58Gb or so.
i knew this.
so, to get the right file size, i executed: cat /proc/partitions
and it indicated that hdb1 was 58.6 gb.
so i was trying to execute: vgextend -L +58G /dev/home/bear
and getting errors
so, after playing around a lil, and executing: vgdisplay
i noticed that the "FREE PE / Size " was reporting 55.9Gb
so, i executed the command: vgextend -L +55G /dev/home/bear
and it worked perfectly. ( i tried +56G also, but it bitched )
anyway, i followed it up with: resize2fs
and now, df is reporting that i now have 163 Gb available to use.
feel free to slap me with a herring for my ignorance.

this really seems to be my luck.
i actually break down enough to actually make a new thread,
and 5 minutes after i do, i figure out what the hell the problem is.

i am now a happy camper.


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
Panic on reboot after adding LVM. duvalr Linux - Kernel 1 03-23-2007 04:30 AM
Using LVM and adding a drive reeseslover531 Fedora 3 09-30-2006 11:03 AM
LVM - adding a new scsi hard disk ddaas Red Hat 1 07-28-2005 02:13 AM
Adding drive with LVM DBabo Linux - Software 2 06-11-2005 10:06 PM
ReiserFS trouble or rash or bad HDDs? ghight Linux - Hardware 3 02-23-2005 05:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:54 AM.

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