You are not logged in.

#1 2009-01-23 04:28:04

fflarex
Member
Registered: 2007-09-15
Posts: 466

resize physical lvm partition? (not the logical volumes within)

So I'm looking to resize the physical partition that my LVM volumes are on. After some research, the man page for pvresize seems to suggest it is possible, but I still need another program to resize the actual partition. I can't find anything that offers to resize a partition without also resizing the filesystem, making this somewhat difficult.

Yup, I see the irony in the situation. I am stuck with exactly the same problem that LVM attempts to fix. But can someone help me out?

Offline

#2 2009-01-23 07:11:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: resize physical lvm partition? (not the logical volumes within)

cfdisk or fdisk.

Offline

#3 2009-01-23 08:14:53

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: resize physical lvm partition? (not the logical volumes within)

I tried cfdisk and didn't find any way to resize anything at all. Same goes for fdisk. I also looked at parted, but it looks to me like it won't resize a partition unless it can also resize the filesystem on that partition... which is a problem.

EDIT: Nevermind, figured it out. Had some false assumptions about a few things that made it harder than it needed to be.

Last edited by fflarex (2009-01-23 08:55:07)

Offline

#4 2009-01-23 12:04:39

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: resize physical lvm partition? (not the logical volumes within)

What was your solution?

Offline

#5 2009-01-23 15:34:55

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: resize physical lvm partition? (not the logical volumes within)

I downsized the physical volume with pvresize, then deleted the partition in cfdisk and created a new one which started in the same place but ended sooner... which seemed very risky to me at the time, but I didn't have anything important on the hard drive yet.

Offline

#6 2009-01-23 16:08:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: resize physical lvm partition? (not the logical volumes within)

That's the solution I had in mind - cfdisk/fdisk do not have resize functionality, it's a delete/recreate operation.

Offline

Board footer

Powered by FluxBB