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. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-28-2007, 01:44 PM
|
#1
|
|
Member
Registered: Jun 2004
Distribution: debian etch
Posts: 40
Rep:
|
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?
thanks.
Last edited by spargonaut; 04-28-2007 at 01:47 PM.
|
|
|
|
04-28-2007, 02:00 PM
|
#2
|
|
Member
Registered: Jun 2004
Distribution: debian etch
Posts: 40
Original Poster
Rep:
|
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.
thanks.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|