LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2019, 09:45 AM   #16
Jay88
Member
 
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by grail View Post
It would seem the most valuable information from your data is:
Code:
Your current lvm space:
7      171GB   320GB   149GB   logical                lvm

The 3 current partitions of this space:
Disk /dev/mapper/VolGroup00-LogVol01: 1074MB
1      0.00B  1074MB  1074MB  linux-swap(v1) -- swap
Disk /dev/mapper/VolGroup00-LogVol02: 62.9GB
1      0.00B  62.9GB  62.9GB  ext3           -- home
Disk /dev/mapper/VolGroup00-LogVol00: 26.2GB
1      0.00B  26.2GB  26.2GB  ext3           -- root (/)
So here you can see you have 149GB partition which is currently using 1074MB + 62.9GB + 26.2GB ~ 90GB

So you have about 59GB of free space to extend VolGroup00-LogVol02 which is your home directory or you can create a new volume and mount it elsewhere
Can I use G-Parted to extend my home directory or do I need to use another tool? And does it have to be on a live media?
 
Old 05-28-2019, 09:56 AM   #17
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,600

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
if you want to configure your logical volumes you need to use something else, gparted cannot do that.
https://linuxconfig.org/linux-lvm-lo...volume-manager
https://www.howtoforge.com/linux_lvm

You have free space somewhere and you can add it to your /home (=extend it) probably.
 
1 members found this post helpful.
Old 05-28-2019, 10:48 AM   #18
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,361

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
Easiest thing to do is just enlarge the /home volume to use all the available space in the LVM volume. Your root filesystem seems to have plenty of space, so I'd just give it all to /home.
Code:
lvextend -l +100%FREE --resizefs VolGroup00-LogVol02
That needs to be run as root, of course. The "100%FREE" can be changed to some smaller percentage if you don't want to give everything to /home. Just don't forget the important "+" sign. You can include the "--test" option if you just want to see what the command would do. You can, and should, do it online from the running system.
 
1 members found this post helpful.
Old 05-28-2019, 11:24 AM   #19
Jay88
Member
 
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rknichols View Post
Easiest thing to do is just enlarge the /home volume to use all the available space in the LVM volume. Your root filesystem seems to have plenty of space, so I'd just give it all to /home.
Code:
lvextend -l +100%FREE --resizefs VolGroup00-LogVol02
That needs to be run as root, of course. The "100%FREE" can be changed to some smaller percentage if you don't want to give everything to /home. Just don't forget the important "+" sign. You can include the "--test" option if you just want to see what the command would do. You can, and should, do it online from the running system.
Output from the command is below (I used +90%FREE):
Code:
 TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
  Size of logical volume VolGroup00/LogVol02 changed from 58.59 GiB (1875 extents) to 107.81 GiB (3450 extents).
  Logical volume LogVol02 successfully resized.
Thanks!

Can I just double check, if I do decide to get rid of the Windows partition in future and do a complete re-install of Linux there will not be any problems in resizing my home partition with the available space?
 
Old 05-28-2019, 01:52 PM   #20
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,361

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
Quote:
Originally Posted by Jay88 View Post
Output from the command is below (I used +90%FREE):
Code:
 TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
  Size of logical volume VolGroup00/LogVol02 changed from 58.59 GiB (1875 extents) to 107.81 GiB (3450 extents).
  Logical volume LogVol02 successfully resized.
OK. Now you'll have to do it without the "--test" option so that something actually gets done. (Test mode is not clever enough to change the wording on those last two lines.)
Quote:
Can I just double check, if I do decide to get rid of the Windows partition in future and do a complete re-install of Linux there will not be any problems in resizing my home partition with the available space?
That going to be a little more complicated, but not much. You don't have to reinstall. You just use vgextend to extend the VolGroup00 volume group to include what is now the Windows partition. That space will then become free space in the VG, which you can use however you wish.

Of course if you do want to reinstall, the installer will give you the option to ignore the current partitioning and use all the space for Linux.
 
2 members found this post helpful.
Old 05-28-2019, 06:06 PM   #21
Jay88
Member
 
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rknichols View Post
OK. Now you'll have to do it without the "--test" option so that something actually gets done. (Test mode is not clever enough to change the wording on those last two lines.)
That going to be a little more complicated, but not much. You don't have to reinstall. You just use vgextend to extend the VolGroup00 volume group to include what is now the Windows partition. That space will then become free space in the VG, which you can use however you wish.

Of course if you do want to reinstall, the installer will give you the option to ignore the current partitioning and use all the space for Linux.
Okay I will cross that bridge when I get to it or if I get to it at all. I hardly use the Windows partition at all but if I still have enough space to comfortably run my applications on Linux by extending to the available space I might as well leave it for now. I suppose if I do extend over Windows I will no longer require GRUB so it should make updating my kernel a lot easier...

Thanks to everyone that replied to this thread.
 
Old 05-29-2019, 04:30 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,905

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
Quote:
I suppose if I do extend over Windows I will no longer require GRUB so it should make updating my kernel a lot easier...
Having or not having windows has nothing to do with the need for Grub. Grub is a bootloader and you will need it or some other bootloader in order to boot whichever Linux system you have.
With regard to updating kernels, some Linux systems remove old kernels and only keep 2, others need to be removed manually so part of this depends upon which Linusyou are using.
 
2 members found this post 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
problem in interpreting command output Upendra Pratap Singh Linux - Newbie 6 08-02-2015 04:47 AM
interpreting output of "du" command? junglepunk Linux - Newbie 11 06-24-2010 05:22 PM
Interpreting output of df -h command kushalkoolwal Debian 1 06-30-2007 08:29 AM
Interpreting the output of 'lspci' command. drminix Linux - Hardware 2 06-14-2005 04:20 AM
Interpreting "sar -n DEV" output rfrancis Red Hat 0 01-07-2005 12:42 PM

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

All times are GMT -5. The time now is 09:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration