LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I find out if I can allocate more space to LVM? (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-find-out-if-i-can-allocate-more-space-to-lvm-872147/)

Thaidog 03-31-2011 08:27 AM

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?

acid_kewpie 03-31-2011 08:30 AM

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.

simontag 03-31-2011 12:09 PM

1 Attachment(s)
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

Thaidog 03-31-2011 02:32 PM

cfdisk is interesting but it does not seem to be on our servers - thanks for he help though - both you guys!

syg00 03-31-2011 07:30 PM

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.


All times are GMT -5. The time now is 01:27 PM.