* [linux-lvm] lvextend
@ 1999-12-28 19:09 Adam Crews
1999-12-29 10:06 ` Fabian Herschel
0 siblings, 1 reply; 11+ messages in thread
From: Adam Crews @ 1999-12-28 19:09 UTC (permalink / raw)
To: linux-lvm
Hello,
I am having problems trying to extend a lv.
[root@scooby /root]# lvextend -v -l+6514 /dev/mirror_vg/mirror_lv
lvextend -- checking for valid logical volume path
lvextend -- locking logical volume manager
lvextend -- checking existence of logical volume "/dev/mirror_vg/mirror_lv"
lvextend -- checking for active logical volume "/dev/mirror_vg/mirror_lv"
lvextend -- reading volume group data of volume group "mirror_vg" from disk(s)
lvextend -- getting index of logical volume "/dev/mirror_vg/mirror_lv" in volume group "mirror_vg"
lvextend -- extending logical volume "/dev/mirror_vg/mirror_lv" to 76.16 GB
lvextend -- setting up logical volume "/dev/mirror_vg/mirror_lv" for extend
lvextend -- not enough free/allocatable physical extents to extend logical volume "/dev/mirror_vg/mirror_lv"
[root@scooby /root]#
Looing at the vg I see that there is enough free space
[root@scooby /root]# vgdisplay
--- Volume group ---
VG Name mirror_vg
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 1
Open LV 0
MAX LV Size 255.99 GB
Max PV 256
Cur PV 3
Act PV 3
VG Size 76.16 GB
PE Size 4 MB
Total PE 19496
Alloc PE / Size 12982 / 50.71 GB
Free PE / Size 6514 / 25.45 GB
[root@scooby /root]#
What am I doing wrong?
-Adam
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
1999-12-28 19:09 [linux-lvm] lvextend Adam Crews
@ 1999-12-29 10:06 ` Fabian Herschel
1999-12-29 20:50 ` Adam Crews
0 siblings, 1 reply; 11+ messages in thread
From: Fabian Herschel @ 1999-12-29 10:06 UTC (permalink / raw)
To: Adam Crews, linux-lvm
Hello,
On Tue, Dec 28, 1999 at 11:09:14AM -0800, Adam Crews wrote:
> Hello,
>
> I am having problems trying to extend a lv.
>
> [root@scooby /root]# lvextend -v -l+6514 /dev/mirror_vg/mirror_lv
Just a question back, do you realy want to extend the lv with 6514 *extentds*? So you would
have a vg with just one lv which allocates the complete space of the vg.
What says lvdisplay /dev/mirror_vg/mirror_lv?
Does lvextend -v -l+6513 /dev/mirror_vg/mirror_lv work? The last line is to test, if there could be an error
in the handling of the last extend.
Greetings Fabian Herschel
-----------------------------------------------------------------------
Fabian Herschel SuSE Rhein/Main AG
Tel: +49-6196-50951-23 Mergenthalerallee 45-47
Fax: +49-6196-409-607 D-65760 Eschborn
mailto: Fabian.Herschel@suse.de http://www.suse.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
1999-12-29 10:06 ` Fabian Herschel
@ 1999-12-29 20:50 ` Adam Crews
1999-12-30 21:13 ` Torsten Neumann
0 siblings, 1 reply; 11+ messages in thread
From: Adam Crews @ 1999-12-29 20:50 UTC (permalink / raw)
To: Fabian Herschel; +Cc: linux-lvm
Yes I do want one big lv. I used lvm so that as I add disks I can just
grow the fs without needing to re-do md devices or things like that.
What I figured out is that you cannot extend a striped lv. even if I have
2 partitions to add to a lv that has 2 stripes, I still cant extend the
volume.
I needed the space so I took a backup, re-created the lv, and just
concatinated it this time instead of the stripes. so next time I add a
disk, I'll be able to grow the lv and fs.
-Adam
On Wed, 29 Dec 1999, Fabian Herschel wrote:
| Hello,
|
| On Tue, Dec 28, 1999 at 11:09:14AM -0800, Adam Crews wrote:
| > Hello,
| >
| > I am having problems trying to extend a lv.
| >
| > [root@scooby /root]# lvextend -v -l+6514 /dev/mirror_vg/mirror_lv
|
| Just a question back, do you realy want to extend the lv with 6514 *extentds*? So you would
| have a vg with just one lv which allocates the complete space of the vg.
| What says lvdisplay /dev/mirror_vg/mirror_lv?
| Does lvextend -v -l+6513 /dev/mirror_vg/mirror_lv work? The last line is to test, if there could be an error
| in the handling of the last extend.
|
| Greetings Fabian Herschel
|
| -----------------------------------------------------------------------
| Fabian Herschel SuSE Rhein/Main AG
| Tel: +49-6196-50951-23 Mergenthalerallee 45-47
| Fax: +49-6196-409-607 D-65760 Eschborn
| mailto: Fabian.Herschel@suse.de http://www.suse.de
|
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
1999-12-29 20:50 ` Adam Crews
@ 1999-12-30 21:13 ` Torsten Neumann
0 siblings, 0 replies; 11+ messages in thread
From: Torsten Neumann @ 1999-12-30 21:13 UTC (permalink / raw)
To: linux-lvm
Adam Crews <acrews@cisco.com> wrote:
> Yes I do want one big lv. I used lvm so that as I add disks I can just
> grow the fs without needing to re-do md devices or things like that.
> What I figured out is that you cannot extend a striped lv. even if I have
> 2 partitions to add to a lv that has 2 stripes, I still cant extend the
> volume.
Are you using 0.7 ? There is a bug that avoids extending striped lvs under
some circumstances. Update to 0.8i or apply the following diff
--- pv_move.c.orig Thu Dec 30 22:10:44 1999
+++ pv_move.c Thu Dec 30 22:11:25 1999
@@ -254,7 +254,7 @@
for ( pe = 0; pe < pe_to_move; pe++) {
if ( lv_check_on_pv ( vg->pv[dst_pv_index],
- pe_src[pe].lv_num - 1) == TRUE &&
+ pe_src[pe].lv_num) == TRUE &&
vg->lv[pe_src[pe].lv_num-1]->lv_stripes > 1) break;
if ( ( vg->lv[pe_src[pe].lv_num-1]->lv_allocation & LV_CONTIGUOUS) &&
pv_check_free_contiguous ( vg->pv[dst_pv_index],
Torsten
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
2005-06-23 1:08 ` Sean Boyd
@ 2005-06-23 1:13 ` Terry Rigby
0 siblings, 0 replies; 11+ messages in thread
From: Terry Rigby @ 2005-06-23 1:13 UTC (permalink / raw)
To: sboyd, LVM general discussion and development
thx Sean, I had just stumbled upon that as well. another alternative seems to
be pvdislplay /dev/hde |grep "PV Size" and then use that size in GB using
lvextend -L +XXG /path/to/lv
Terry Rigby
On June 22, 2005 06:08 pm, Sean Boyd wrote:
> On Wed, 2005-06-22 at 17:16 -0700, Terry Rigby wrote:
> > I am trying to add a full hard drive to my LV by following the directions
> > at TLDP.org. It says there to use lvextend -L +XXG where XX is the size
> > in GB you want to add to the LV. Is there a more simple way to just add
> > a whole hard drive ie: /dev/hde
> >
> > It seems like a pain to have to manually figure out the size of the hard
> > drive then add it using lvextend -L +200GB for a 200GB hard drive
> > especially since we all know its not actually 200GB.
>
> You could increase the LV by using the remaining free physical extents
> (PE).
>
> To check how many PE's are available after extending the VG run
> vgdisplay and check "Free PE / Size". The first value will give you the
> total number of PE's available.
>
> Then extend your LV using the -l switch to specify PE's rather than
> having to determine a size using the -L switch.
>
> For example "lvextend -l +25 /dev/volGroup00/myLVM" will extend myLVM by
> 25 PE's.
>
> Of course you then need to extend to file system to be able to use this
> extra space :)
>
> --Sean
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
2005-06-23 0:16 Terry Rigby
2005-06-23 0:30 ` dean gaudet
@ 2005-06-23 1:08 ` Sean Boyd
2005-06-23 1:13 ` Terry Rigby
1 sibling, 1 reply; 11+ messages in thread
From: Sean Boyd @ 2005-06-23 1:08 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, 2005-06-22 at 17:16 -0700, Terry Rigby wrote:
> I am trying to add a full hard drive to my LV by following the directions at
> TLDP.org. It says there to use lvextend -L +XXG where XX is the size in GB
> you want to add to the LV. Is there a more simple way to just add a whole
> hard drive ie: /dev/hde
>
> It seems like a pain to have to manually figure out the size of the hard drive
> then add it using lvextend -L +200GB for a 200GB hard drive especially since
> we all know its not actually 200GB.
You could increase the LV by using the remaining free physical extents
(PE).
To check how many PE's are available after extending the VG run
vgdisplay and check "Free PE / Size". The first value will give you the
total number of PE's available.
Then extend your LV using the -l switch to specify PE's rather than
having to determine a size using the -L switch.
For example "lvextend -l +25 /dev/volGroup00/myLVM" will extend myLVM by
25 PE's.
Of course you then need to extend to file system to be able to use this
extra space :)
--Sean
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
2005-06-23 0:16 Terry Rigby
@ 2005-06-23 0:30 ` dean gaudet
2005-06-23 1:08 ` Sean Boyd
1 sibling, 0 replies; 11+ messages in thread
From: dean gaudet @ 2005-06-23 0:30 UTC (permalink / raw)
To: LVM general discussion and development
you could do "pvdisplay /dev/hde" to find the number of extents... then
use "lvextend -l" instead of -L ...
-dean
On Wed, 22 Jun 2005, Terry Rigby wrote:
> I am trying to add a full hard drive to my LV by following the directions at
> TLDP.org. It says there to use lvextend -L +XXG where XX is the size in GB
> you want to add to the LV. Is there a more simple way to just add a whole
> hard drive ie: /dev/hde
>
> It seems like a pain to have to manually figure out the size of the hard drive
> then add it using lvextend -L +200GB for a 200GB hard drive especially since
> we all know its not actually 200GB.
>
> Thanks for your response.
>
> Terry Rigby
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [linux-lvm] lvextend
@ 2005-06-23 0:16 Terry Rigby
2005-06-23 0:30 ` dean gaudet
2005-06-23 1:08 ` Sean Boyd
0 siblings, 2 replies; 11+ messages in thread
From: Terry Rigby @ 2005-06-23 0:16 UTC (permalink / raw)
To: linux-lvm
I am trying to add a full hard drive to my LV by following the directions at
TLDP.org. It says there to use lvextend -L +XXG where XX is the size in GB
you want to add to the LV. Is there a more simple way to just add a whole
hard drive ie: /dev/hde
It seems like a pain to have to manually figure out the size of the hard drive
then add it using lvextend -L +200GB for a 200GB hard drive especially since
we all know its not actually 200GB.
Thanks for your response.
Terry Rigby
^ permalink raw reply [flat|nested] 11+ messages in thread
* [linux-lvm] lvextend
@ 2004-10-14 6:56 Bengt Heijnesson
0 siblings, 0 replies; 11+ messages in thread
From: Bengt Heijnesson @ 2004-10-14 6:56 UTC (permalink / raw)
To: linux-lvm
Hello,
Have tried to extend a volume group but lvextend fails
# lvextend -v -L+1G /dev/itsdata/smb_home
lvextend -- checking for valid logical volume path
lvextend -- locking logical volume manager
lvextend -- checking existence of logical volume "/dev/itsdata/smb_home"
lvextend -- checking for active logical volume "/dev/itsdata/smb_home"
lvextend -- reading volume group data of volume group "itsdata" from
disk(s)
lvextend -- getting index of logical volume "/dev/itsdata/smb_home" in
volume group "itsdata"
lvextend -- getting status of "/dev/itsdata/smb_home" from VGDA in kernel
lvextend -- rounding size to stripe boundary size
lvextend -- extending logical volume "/dev/itsdata/smb_home" to 23.87 GB
lvextend -- setting up logical volume "/dev/itsdata/smb_home" for extend
lvextend -- not enough free/allocatable physical extents to extend logical
volume "/dev/itsdata/smb_home"
vgdisplay:
--- Volume group ---
VG Name itsdata
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 1
Open LV 1
MAX LV Size 255.99 GB
Max PV 256
Cur PV 20
Act PV 20
VG Size 45.70 GB
PE Size 4 MB
Total PE 11700
Alloc PE / Size 5850 / 22.85 GB
Free PE / Size 5850 / 22.85 GB
VG UUID w7CoKp-yGH3-OfuG-UQLY-Mu8l-aknD-Ioko6h
Any Hints ?
_______________________________________________________
"Light the fire within people, not underneath them"
^ permalink raw reply [flat|nested] 11+ messages in thread
* [linux-lvm] lvextend
@ 2003-05-10 8:38 Joerg.Redlich
0 siblings, 0 replies; 11+ messages in thread
From: Joerg.Redlich @ 2003-05-10 8:38 UTC (permalink / raw)
To: Linux-LVM
[-- Attachment #1: Type: text/plain, Size: 2409 bytes --]
Hallo,
bin mittlerweile ratlos und hoffe auf Ihre Hilfe !
Ich versuche ein lv zu erweitern, dies scheint auf den ersten Blick auch
zu funktionieren !
[root@NB110239 sbin]# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3 1991577 351263 1537505 19% /
none 95336 0 95336 0% /dev/shm
/dev/Volume00/LogVol00
1511856 1315876 119180 92% /usr
/dev/hda1 3479256 2060212 1419044 60% /win_sys
[root@NB110239 sbin]# lvscan
lvscan -- ACTIVE "/dev/Volume00/LogVol00" [1.46 GB]
lvscan -- 1 logical volumes with 1.46 GB total in 1 volume group
lvscan -- 1 active logical volumes
[root@NB110239 sbin]# lvextend -L +200 /dev/Volume00/LogVol00 /dev/hda6
lvextend -- extending logical volume "/dev/Volume00/LogVol00" to 1.66 GB
lvextend -- doing automatic backup of volume group "Volume00"
lvextend -- logical volume "/dev/Volume00/LogVol00" successfully
extended
[root@NB110239 sbin]# lvscan
lvscan -- ACTIVE "/dev/Volume00/LogVol00" [1.66 GB]
lvscan -- 1 logical volumes with 1.66 GB total in 1 volume group
lvscan -- 1 active logical volumes
[root@NB110239 sbin]# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3 1991577 351418 1537350 19% /
none 95336 0 95336 0% /dev/shm
/dev/Volume00/LogVol00
1511856 1315876 119180 92% /usr
/dev/hda1 3479256 2060212 1419044 60% /win_sys
Warum wird mir der hinzugefügte Platz nicht angezeigt bzw. zur Verfügung
gestellt ?
mit freundlichen Grüßen
j.redlich
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
[-- Attachment #2: Type: text/html, Size: 4908 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [linux-lvm] lvextend
@ 1999-12-31 19:46 Heinz Mauelshagen
0 siblings, 0 replies; 11+ messages in thread
From: Heinz Mauelshagen @ 1999-12-31 19:46 UTC (permalink / raw)
To: linux-lvm; +Cc: mge
Another problem could be, that you have 3 stripes and not enough space
on a physical volume to hold the soize of one or more extended stripes.
Heinz
> Adam Crews <acrews@cisco.com> wrote:
>
> > Yes I do want one big lv. I used lvm so that as I add disks I can just
> > grow the fs without needing to re-do md devices or things like that.
>
> > What I figured out is that you cannot extend a striped lv. even if I have
> > 2 partitions to add to a lv that has 2 stripes, I still cant extend the
> > volume.
>
> Are you using 0.7 ? There is a bug that avoids extending striped lvs under
> some circumstances. Update to 0.8i or apply the following diff
>
> --- pv_move.c.orig Thu Dec 30 22:10:44 1999
> +++ pv_move.c Thu Dec 30 22:11:25 1999
> @@ -254,7 +254,7 @@
>
> for ( pe = 0; pe < pe_to_move; pe++) {
> if ( lv_check_on_pv ( vg->pv[dst_pv_index],
> - pe_src[pe].lv_num - 1) == TRUE &&
> + pe_src[pe].lv_num) == TRUE &&
> vg->lv[pe_src[pe].lv_num-1]->lv_stripes > 1) break;
> if ( ( vg->lv[pe_src[pe].lv_num-1]->lv_allocation & LV_CONTIGUOUS) &&
> pv_check_free_contiguous ( vg->pv[dst_pv_index],
>
>
> Torsten
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt
mge@EZ-Darmstadt.Telekom.de Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-06-23 1:13 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-28 19:09 [linux-lvm] lvextend Adam Crews
1999-12-29 10:06 ` Fabian Herschel
1999-12-29 20:50 ` Adam Crews
1999-12-30 21:13 ` Torsten Neumann
1999-12-31 19:46 Heinz Mauelshagen
2003-05-10 8:38 Joerg.Redlich
2004-10-14 6:56 Bengt Heijnesson
2005-06-23 0:16 Terry Rigby
2005-06-23 0:30 ` dean gaudet
2005-06-23 1:08 ` Sean Boyd
2005-06-23 1:13 ` Terry Rigby
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).