LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2011, 08:27 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question How can I find out if I can allocate more space to LVM?


I am trying to figure out the procedure for figuring out if there is space left on a disk to extend an lvm... either by growing the logical volume to a physical volume that has not been totally allocated or by determining if there is any disk left to add to the pv and then the lv... how do I determine this?
 
Old 03-31-2011, 08:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well fdisk, parted etc will show you unallocated partition space, and tools like pvdisplay will show you space within the lvm pv's you already have. you can also then compare the lv's themselves to the size of the filesystems they contain, as there can in principle be wasted space in there, albeit it very unlikely.
 
Old 03-31-2011, 12:09 PM   #3
simontag
LQ Newbie
 
Registered: Oct 2006
Location: MidWest
Distribution: Slackware 13
Posts: 8

Rep: Reputation: 2
To just find out if there is available space, the easiest way is as described by acid*, though I would say cfdisk is the easiest visually.

Main disk /dev/sda
# cfdisk /dev/sda
Attached Thumbnails
Click image for larger version

Name:	cfdisk.devsda.jpg
Views:	11
Size:	47.2 KB
ID:	6587  
 
Old 03-31-2011, 02:32 PM   #4
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
cfdisk is interesting but it does not seem to be on our servers - thanks for he help though - both you guys!
 
Old 03-31-2011, 07:30 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
fdisk doesn't show unpartitioned space, although you can infer it. parted "print" shows the (imbedded) free space nicely. Can be scripted/saved, so it perhaps more useful than cfdisk in cases like this.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1Tb sata hdd installing Debian how much space to allocate EDDY1 Linux - Newbie 9 12-10-2010 03:28 AM
User wants to allocate more than 3Gb memory space in RHel5 batkinso Red Hat 3 07-24-2007 10:21 AM
Space for Auto Allocate partitioning? Pekay Mandriva 12 01-19-2006 05:46 PM
How to allocate a block of 16MB in kernel space using my driver module s_anumolu Linux - General 1 07-15-2005 12:48 AM
Need to allocate more space to email - Help lizard99 Linux - Software 5 04-23-2005 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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