linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] shrink issue
@ 2001-10-17 19:24 FEJF
  2001-10-17 20:53 ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: FEJF @ 2001-10-17 19:24 UTC (permalink / raw)
  To: linux-lvm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,
is it possible to tell the lvmtools (when shrinking a lvm-volume with 
resizereiserfs and lvreduce) which hd should be used for free space and which 
should stay in the lvm ?
mfg, Florian E.J. Fruth
- -- 
Backups are usefull. Most often when you don't have one ;)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7zdr77Xtp66ctWuIRAlNHAKCzFufUwVGiH/cPjiiDFzi1Vd4mDACeLMo8
xjXUgI8YagJDKo3aaVGKHLc=
=r160
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] shrink issue
  2001-10-17 19:24 [linux-lvm] shrink issue FEJF
@ 2001-10-17 20:53 ` Andreas Dilger
  2001-10-17 21:03   ` FEJF
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Dilger @ 2001-10-17 20:53 UTC (permalink / raw)
  To: linux-lvm

On Oct 17, 2001  21:24 +0200, FEJF wrote:
> is it possible to tell the lvmtools (when shrinking a lvm-volume with 
> resizereiserfs and lvreduce) which hd should be used for free space and which 
> should stay in the lvm ?

No.  When you reduce the size of an LV, the free space is made from the end
of the LV only.  If you want to make a particular PV free, then you need to
use "pvmove" to free any PEs that are allocated on it.

Cheers, Andreas
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] shrink issue
  2001-10-17 20:53 ` Andreas Dilger
@ 2001-10-17 21:03   ` FEJF
  2001-10-17 21:37     ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: FEJF @ 2001-10-17 21:03 UTC (permalink / raw)
  To: linux-lvm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Dilger, on Mittwoch, 17. Oktober 2001 22:53 wrote:
> On Oct 17, 2001  21:24 +0200, FEJF wrote:
> > is it possible to tell the lvmtools (when shrinking a lvm-volume with 
> > resizereiserfs and lvreduce) which hd should be used for free space and 
which 
> > should stay in the lvm ?
> 
> No.  When you reduce the size of an LV, the free space is made from the end
> of the LV only.  If you want to make a particular PV free, then you need to
> use "pvmove" to free any PEs that are allocated on it.
> 
> Cheers, Andreas

hmm... does "the end" means the last harddrive when counting hda, hdb...etc ?
f.e. if i have a hdb, hdc,hdd in the lvm and want the hdc free - does it help 
to change the hdc to hde an reduce the lvm then ?
fejf

- -- 
Backups are usefull. Most often when you don't have one ;)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7zfIz7Xtp66ctWuIRAvyuAJ9jZR5LG0pPex9JHc9mw+sxksyj0gCgibGY
LRveTnqkyoCru+MMiv8TpvE=
=lQq8
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] shrink issue
  2001-10-17 21:03   ` FEJF
@ 2001-10-17 21:37     ` Andreas Dilger
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2001-10-17 21:37 UTC (permalink / raw)
  To: linux-lvm

FEJF writes:
> Andreas Dilger, on Mittwoch, 17. Oktober 2001 22:53 wrote:
> > On Oct 17, 2001  21:24 +0200, FEJF wrote:
> > > is it possible to tell the lvmtools (when shrinking a lvm-volume with 
> > > resizereiserfs and lvreduce) which hd should be used for free space and 
> > > which should stay in the lvm ?
> > 
> > No.  When you reduce the size of an LV, the free space is made from the end
> > of the LV only.  If you want to make a particular PV free, then you need to
> > use "pvmove" to free any PEs that are allocated on it.
> 
> hmm... does "the end" means the last harddrive when counting hda, hdb...etc ?
> f.e. if i have a hdb, hdc,hdd in the lvm and want the hdc free - does it help 
> to change the hdc to hde an reduce the lvm then ?

No, the "end" means whatever PE happens to be the highest numbered one in the
LV you want to resize.  See "lvdisplay -v /dev/vgname/lvname" for the details.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-17 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-17 19:24 [linux-lvm] shrink issue FEJF
2001-10-17 20:53 ` Andreas Dilger
2001-10-17 21:03   ` FEJF
2001-10-17 21:37     ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).