* [linux-lvm] Shrinking a LVM physical volume
@ 2009-03-24 14:59 Drew
2009-03-24 21:54 ` Lupe Christoph
0 siblings, 1 reply; 4+ messages in thread
From: Drew @ 2009-03-24 14:59 UTC (permalink / raw)
To: LVM general discussion and development
Hi there,
I have a system that I dual boot Windows and Debian from. Due to a
minor mistake on my part when carving out the space on my drive for my
linux partition, I now find myself with insufficient space on my
windows partition.
How do you shrink a physical volume on lvm? And then once that's done,
how safe is it to move the lvm partition around on the drive?
--
Drew
"Nothing in life is to be feared. It is only to be understood."
--Marie Curie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Shrinking a LVM physical volume
2009-03-24 14:59 [linux-lvm] Shrinking a LVM physical volume Drew
@ 2009-03-24 21:54 ` Lupe Christoph
2009-03-24 22:32 ` Brian McCullough
2009-03-26 0:54 ` [linux-lvm] " Stefan Monnier
0 siblings, 2 replies; 4+ messages in thread
From: Lupe Christoph @ 2009-03-24 21:54 UTC (permalink / raw)
To: LVM general discussion and development
On Tuesday, 2009-03-24 at 07:59:09 -0700, Drew wrote:
> I have a system that I dual boot Windows and Debian from. Due to a
> minor mistake on my part when carving out the space on my drive for my
> linux partition, I now find myself with insufficient space on my
> windows partition.
> How do you shrink a physical volume on lvm?
Since nobody with real experience doing that has answered, I'll supply
my fewer than 2 Eurocents...
According to its manpage, it should be safe to use
pvresize --setphysicalvolumesize <newsize> <pvdevice>
prior to resizing the partition. It should complain if there are extents
in use beyond <newsize>.
I say "it should" because I never tried it. So make a backup, blahblah,
etcetera...
> And then once that's done,
> how safe is it to move the lvm partition around on the drive?
That is up to somebody with more knowledge to answer.
HTH,
Lupe Christoph
--
| There is no substitute for bad design except worse design. |
| /me |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Shrinking a LVM physical volume
2009-03-24 21:54 ` Lupe Christoph
@ 2009-03-24 22:32 ` Brian McCullough
2009-03-26 0:54 ` [linux-lvm] " Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Brian McCullough @ 2009-03-24 22:32 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, Mar 24, 2009 at 10:54:10PM +0100, Lupe Christoph wrote:
> On Tuesday, 2009-03-24 at 07:59:09 -0700, Drew wrote:
>
> > I have a system that I dual boot Windows and Debian from. Due to a
> > minor mistake on my part when carving out the space on my drive for my
> > linux partition, I now find myself with insufficient space on my
> > windows partition.
>
> > How do you shrink a physical volume on lvm?
>
> Since nobody with real experience doing that has answered, I'll supply
> my fewer than 2 Eurocents...
Good answer, Lupe.
One other thing to be aware of; you should know the amount of space
that has been allocated within the Physical Volume. If that amount
exceeds the amount that you wish to recover, you may be able to
shrink Logical Volumes within the Physical Volume, but, of course,
before doing so, you should shrink the filesystems that are contained
within the logical volumes.
Have fun!
Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
* [linux-lvm] Re: Shrinking a LVM physical volume
2009-03-24 21:54 ` Lupe Christoph
2009-03-24 22:32 ` Brian McCullough
@ 2009-03-26 0:54 ` Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-03-26 0:54 UTC (permalink / raw)
To: linux-lvm
> According to its manpage, it should be safe to use
> pvresize --setphysicalvolumesize <newsize> <pvdevice>
> prior to resizing the partition. It should complain if there are extents
> in use beyond <newsize>.
Is there some way to move those extents?
I guess there's pvmove, but that seems to only be able to move them to
some other PV.
>> And then once that's done,
>> how safe is it to move the lvm partition around on the drive?
> That is up to somebody with more knowledge to answer.
I can confirm that PVs can be moved at will (even between drives).
I've done it a few times.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-26 0:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 14:59 [linux-lvm] Shrinking a LVM physical volume Drew
2009-03-24 21:54 ` Lupe Christoph
2009-03-24 22:32 ` Brian McCullough
2009-03-26 0:54 ` [linux-lvm] " Stefan Monnier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.