LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-14-2017, 02:29 PM   #1
billlee
Member
 
Registered: Jun 2003
Location: East Texas
Distribution: Fedora (24)
Posts: 47

Rep: Reputation: 16
LVM Problems - unable to allocate disk space


I installed Fedora24 on a laptop. The install gave me the opportunity to delete all old file structure and start from scratch. When I was finished and starting to load the user data, I found that I only had 15gb available on a 750gb disk.

I have spent the last 48 hours trying to learn and understand LVM. Apparently to no avail. Here's what I ended up with:

Code:
pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               fedora_gamma
  PV Size               698.15 GiB / not usable 3.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              178725
  Free PE               23652
  Allocated PE          155073
  PV UUID               ElM5dd-2ol4-oM4n-kGAP-wn9M-X0Wp-dkEXE5
   
vgdisplay
  --- Volume group ---
  VG Name               fedora_gamma
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  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               698.14 GiB
  PE Size               4.00 MiB
  Total PE              178725
  Alloc PE / Size       155073 / 605.75 GiB
  Free  PE / Size       23652 / 92.39 GiB
  VG UUID               m0tY58-bjsK-lVwz-2nvn-V092-1VST-A5HSgG
   
lvdisplay
  --- Logical volume ---
  LV Path                /dev/fedora_gamma/swap
  LV Name                swap
  VG Name                fedora_gamma
  LV UUID                ROWS7y-yPyX-vvKE-lkBd-Bpz5-J5Sy-6HgzzK
  LV Write Access        read/write
  LV Creation host, time gamma, 2017-06-12 19:24:41 -0500
  LV Status              available
  # open                 2
  LV Size                5.75 GiB
  Current LE             1473
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/fedora_gamma/root
  LV Name                root
  VG Name                fedora_gamma
  LV UUID                3QgF6y-wo0M-JfOL-0opp-Kw9W-xFze-Syn3dW
  LV Write Access        read/write
  LV Creation host, time gamma, 2017-06-12 19:24:41 -0500
  LV Status              available
  # open                 1
  LV Size                600.00 GiB
  Current LE             153600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
But I am still hung up with the 15gb max!

Code:
df -h /
Filesystem                     Size  Used Avail Use% Mounted on
/dev/mapper/fedora_gamma-root   15G  6.5G  8.6G  44% /
(The amount used is a portion of the user data having been loaded into the user's home directory.)

I am stumped! I am stupid! I am frustrated! Perhaps somebody can help?

Thanks.
Bill Lee
 
Old 06-14-2017, 03:29 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,232
Blog Entries: 4

Rep: Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260
Well, it looks to my calculator that your physical volume-group is 714,900 MB.

You've then divided that into two pieces, 5GB and 600GB.

Therefore, I predict that your file systems, in either or both cases, are too small. They are not aware of the actual amount of disk storage that is available to them. LVM seems to have done its job, but the filesystems that manage those regions of disk storage don't know how big their play-pen actually is.

Last edited by sundialsvcs; 06-14-2017 at 03:36 PM.
 
Old 06-14-2017, 04:06 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,596

Rep: Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164
Did you manually create the logical volumes and filesystems?

I assume that sda1 is the /boot partition which I guess is ~500MB. Although the root logical volume is 600GB the actual filesystem size is 15GB. You should be able to enlarge it to the LV's full size.
 
Old 06-14-2017, 04:45 PM   #4
billlee
Member
 
Registered: Jun 2003
Location: East Texas
Distribution: Fedora (24)
Posts: 47

Original Poster
Rep: Reputation: 16
YES! YES! YES!

Once you said the magic words, I was quickly able to Google "linux how to increase filesystem size" and the Google quick response was a very nice "lead me by the hand" article https://help.1and1.com/servers-c3768...e-a756168.html

To answer michaelk: yes, I had already created and sized the logical volumes, and the boot partition is, indeed ~500mb

Thanks for the help.

Last edited by billlee; 06-15-2017 at 05:42 AM. Reason: misspelled words
 
  


Reply


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
Problem with adding disk space and LVM lax617 Linux - Newbie 7 12-03-2013 07:55 AM
df command does not show LVM disk space guertin Linux - Software 5 09-09-2013 09:51 AM
How can I find out if I can allocate more space to LVM? Thaidog Linux - General 4 03-31-2011 07:30 PM
LXer: Managing disk space with LVM LXer Syndicated Linux News 0 07-22-2007 07:18 AM
LXer: Managing Disk Space with LVM LXer Syndicated Linux News 0 04-28-2006 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

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