Skip to contentSkip to conversation

shrink issue

linux-lvm FEJF 3 participants 4 messages Oct 17, 2001

lore
Share & tools
lore

FEJF

author
#0 lore raw

-----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-----

#1 lore raw
Quoted 3 lines · FEJF

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

author
#2 lore raw

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

Quoted 3 lines · Andreas Dilger, on Mittwoch, 17. Oktober 2001 22:53 wrote:
Quoted 2 lines · FEJF

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

Quoted 7 lines
Quoted 1 line

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-----

#3 lore raw
Quoted 6 lines · FEJF
Quoted 5 lines · Andreas Dilger, on Mittwoch, 17. Oktober 2001 22:53 wrote:
Quoted 3 lines · FEJF

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 ?

Quoted 7 lines
Quoted 3 lines

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

Signature · 3 lines
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