@JaredBusch said in Question about fdisk:
@scottalanmiller said in Question about fdisk:
@travisdh1 said in Question about fdisk:
So raw partitions with no LVM? Sad geek.
Is parted available in CentOS7? It's been so long I forget, but parted tends to act better if you are able to use it.
If I remember correctly, it is.
Yes, by default. No idea how he went with that assumption.
The disk is bigger.
But it is not visible yet.
Normally, you simply use fdisk
to delete the partition and recreate it, then LVM and such see the space. But I cannot do that because of the above.
That would not be normal at all when using LVM. fdisk/parted shouldn't need to be used.
pvresize /dev/pathtopv
lvextend -r -l +95%FREE /dev/pathtolv
(pick you're preferred percentage, I like to leave room for temporary snapshots)
The final step depends on the filesystem in use.
XFS xfs_growfs /mount/point
EXT4 resize2fs /mount/point
The deleting and recreating the partition bit is only needed when directly on the physical hardware. Since you resized the virtual partition, just skip that.