LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2017, 01:02 PM   #1
Falco2016
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
Angry Increasing my home volume's size didn't increase more free space


I have a 4TB physical disk that has 2TB partitioned that is LUKS encrypted. I created a new partition using the parted command and mkpart. I used the unpartitioned 2TB space and created /dev/sda2. I created physical volume using pvcreate /dev/sda2 command. I extended the existing VolGrp0 using vgextend command [vgextend VolGrp0 /dev/sda2]. Finally, I increased the volume size of /home using the lvextend /VolGrp0/home /dev/sda2 command. The lvdisplay command now shows the volume as being 2.0TiB. But "df -h" still shows home volume as 100% full. The original df -h display showed home as 180GB. How come the home volume did not increase in size using df? When I try to copy files to the volume it says there are no more space, but system-config-lvm shows home as 2TB. Please help.
 
Old 02-09-2017, 02:44 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
you need to expand the filing system itself, what are you using EXT4? ZFS? etc, with EXT4 you could use resize2fs for example.
 
Old 02-09-2017, 02:50 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,452

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
You didn't resize the filesystem. You run into the same problem if you enlarge a partition without adjusting the filesystem structure to make use of the space. Fortunately, enlarging the filesystem can still be done.
Code:
fsadm resize /dev/VolGrp0/home
Most filesystems will allow you to do that while mounted. You could have avoided the extra step by including the "--resizefs" option in your vgextend command.

FYI, when going in the other direction (shrinking), it is imperative that the filesystem either be shrunk first or as part of the lvreduce or lvresize operation. Omitting that leads to a corrupted filesystem, which might or might not be recoverable depending on what else you did before you realized your error.
 
1 members found this post helpful.
Old 02-13-2017, 09:12 AM   #4
Falco2016
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile Thank you

Thanks everyone. I will try resize the filesystem.
 
Old 02-13-2017, 10:48 AM   #5
Falco2016
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for your solution. My issue was resolved by your code.
 
Old 02-13-2017, 01:43 PM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
If that has fixed it then you should mark this as solved and click rknichols's response as helpful .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to increase logical volume to match physical volume, after increasing size of virtualbox virtual drive mjl3434 Linux - General 4 02-10-2016 08:29 AM
LXer: Extend LVM partition size when there is no free space in the Volume Group LXer Syndicated Linux News 0 06-23-2014 07:00 PM
[SOLVED] Increase home to fill free space gap after resizing windows tradet Linux - General 3 08-10-2010 03:48 PM
LVM2 volume size / free space ,mismatch Grismar Linux - Newbie 4 09-28-2009 03:47 AM
Free space not showing correct after increasing root partition size with GParted. avanindra Linux - Newbie 3 08-06-2009 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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