I have a question regarding managing free or "unallocated" space in an LVM setup on CentOS.
What i need to do is make /var bigger, to accommodate some additional VM's that i am creating.
1. I would need to claim some of that free space Edit #1:
here is the output from fdisk /dev/sda. I don't have a complete understanding of the Start /End /Blocks, but being that as it is, I still don't see the free space that should be available
[root@physical ~]# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0004cb56
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 448595967 223784960 8e Linux LVM
/dev/sda3 448598016 546254265 48828125 83 Linux
> Edit #2
OK so now I can see the space is there in parted! Wonderful and thank you!!
Now my question is, what would I have to do to actually grab some of this space to use it? I am assuming whatever I grab, in my exact scenario would now be called ***/dev/sda4***. Would you be able to guide me on claiming 100GB from this free space?
Thanks so much!
[root@physical ~]# parted /dev/sda
(parted) print free
Model: ATA ST31000340NS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
32.3kB 1049kB 1016kB Free Space
1 1049kB 525MB 524MB primary xfs boot
2 525MB 230GB 229GB primary lvm
230GB 230GB 1049kB Free Space
3 230GB 280GB 50.0GB primary
280GB 1000GB 721GB Free Space
Asked by Jay Jay
(21 rep)
Mar 9, 2017, 11:01 PM
Last activity: Jul 11, 2025, 08:06 PM
Last activity: Jul 11, 2025, 08:06 PM