LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-22-2017, 01:09 PM   #1
ComputerCritic
Member
 
Registered: Mar 2017
Posts: 43

Rep: Reputation: Disabled
Angry Resize space


I am using OpenSUSE Leap. When I try to resize the LVM which is currently 7.84MiB, It shows "The partition /dev/sda8 is in use. It cannot be resized."
Why hasn't anyone else posted this problem online? Am I the first to ask it? What's going on with this error?
 
Old 03-22-2017, 01:49 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You're mixing terms and layers.

Resizing a partition is one action.

Resizing in LVM is a series of actions.

Resizing a filesystem is another action.

LVM has 3 levels:
1) Physical Volume (PV) - This can be an entire disk or a partition of the disk.
2) Volume Group - This is a container comprised of one or more PVs.
3) Logical Volume - This is a device created from the VG. Each VG can have multiple LVs.

So the first thing to do is run "vgs" to see which VGs you have.
Run "vgdisplay -v" on each VG you see to see what PVs and LVs it has.

If your VG is comprised of PV sda8 only you'd have to change the size of sda8 using fdisk, parted or other partitioning tool.

Once you've done that you have to do additional steps to make sure the PV sees the new space added then have the VG see the space added to the PV and finally you'd have to lvextend the specific LV you want to increase.

After that you most likely have a filesystem (e.g. ext4) laid out on the LV. You'd have to do a resize on the filesystem (e.g. with resize2fs or resize4fs) so the filesystem saw the space that had been added to the LV.
 
  


Reply



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
not enough space on /home. resize partitions? bschiett Linux - Newbie 6 12-18-2005 02:40 PM
can't see free space after parted resize ianv Linux - General 7 04-22-2005 07:17 AM
Free Space not being used, resize resierfs partition? gbkyle Linux - General 1 03-07-2005 04:06 AM
Resize ReiserFS partition to use rest of disk space fivezerosixzero Linux - General 1 10-31-2004 01:43 PM
How to resize a partition or reallocate space? Avatar Linux - Newbie 12 04-22-2004 04:11 PM

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

All times are GMT -5. The time now is 07:07 PM.

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