Hi,
I must preface this by mentioning that I am currently in the early phases of Linux addiction...but enjoying the challenge so far.
I was hoping someone could assist in helping me with resolving a partition issue I have created..
The need is to extend a partition that is running out of space (sda2 - /dev/mapper/centos-home/Data to be exact).
I feel I have missed a step but would like some advice on how to resolve.
Please refer attachments for results of df -h, lsblk and fdisk -l
Any advice would be much appreciated.
Cheers
Help with Extension of Volume
Help with Extension of Volume
- Attachments
-
- lsblk.png (8.41 KiB) Viewed 248 times
-
- df.png (8.73 KiB) Viewed 248 times
-
- fdisk.png (25.79 KiB) Viewed 248 times
Re: Help with Extension of Volume
Looks like you did everything to extend the logical Volume but didn't resize the filesystem on it. If you'd used lvresize -r ... when you resized teh LV then it would have done that for you. Now you need to extend it manually - for ext3/4 that's using resize2fs and for xfs it's xfs_growfs.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: Help with Extension of Volume
Thank you for the quick response.
Correct me if I am wrong...but I could run the following command to determine filesystem?
lsblk -f /dev/sda2
Then, simply the following command to extend it the 50 GB?
resize2fs /dev/sda2
If its an xfs filesystem, then the following command to extend sda2 50 GB?
xfs_growfs -d /dev/sda2
Correct me if I am wrong...but I could run the following command to determine filesystem?
lsblk -f /dev/sda2
Then, simply the following command to extend it the 50 GB?
resize2fs /dev/sda2
If its an xfs filesystem, then the following command to extend sda2 50 GB?
xfs_growfs -d /dev/sda2
Re: Help with Extension of Volume
Yes except that the device you want to resize is your LV that's mounted as /home not /dev/sda2 which is your LVM Physical Volume. Use /dev/mapper/centos-home if it's /home you want to resize.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: Help with Extension of Volume
Ahh, perfect..I understand now.
Thank you so much.
Cheers
Thank you so much.
Cheers