LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2017, 06:50 PM   #16
MrCoolLV
LQ Newbie
 
Registered: Feb 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled

like this ?


1. pvresize /dev/sda2
2. pvresize /dev/sda5
3. lvextend -L+900G --resizefs /dev/debian-vg/root
 
Old 02-15-2017, 08:19 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,843

Rep: Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404
Use gparted to increase the size of the extended partition sda2 to use all of the unallocated disk space then pvresize for sda5.
 
Old 02-15-2017, 08:31 PM   #18
MrCoolLV
LQ Newbie
 
Registered: Feb 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
lol I have, doesnt give me that option only new
 
Old 02-15-2017, 08:55 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,843

Rep: Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404Reputation: 2404
You should be able to resize on the fly but its been awhile so you might have to reboot to a rescue or live CD. Make sure you have a good backup of all important data just in case.

As stated earlier adding a new partition and creating a new PV to extend the root LV would be quicker.
 
Old 02-15-2017, 09:09 PM   #20
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,080

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
When gparted booted, it made the LV active. You need to deactivate it. While running from the gparted CD, start up a root shell and run
Code:
vgchange -an debian-vg
It should report "0 logical volumes now active ...". Type ctrl-R in the gparted window to refresh the device list, and you should now be able to resize the extended partition.

Note that old versions of gparted may not allow this. I know that it does not work in version 0.23.0 and does work in version 0.26.1.

You don't need to reactivate the LV. That happens automatically when you boot.
 
Old 02-15-2017, 09:13 PM   #21
MrCoolLV
LQ Newbie
 
Registered: Feb 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
ok will give that shot over the weekend
 
  


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
Debian server on Linode - drive is full norkers Linux - Server 9 01-16-2015 10:55 AM
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 08:18 AM
How to extend the Ubuntu Linux hard disk size to use full capacity ? albertwt Linux - Newbie 9 12-24-2010 02:22 AM
Is it possible to extend my VG and then LV to an attached usb drive ? itsakc Linux - Newbie 2 01-05-2009 08:24 AM
Is it possible to extend my VG and then LV to an attached usb drive ? itsakc Linux - Server 1 01-05-2009 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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