All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Problem extending a LV
@ 2001-05-29  9:33 Carsten Balzer
  2001-05-29 17:01 ` AJ Lewis
  2001-05-29 21:10 ` Heinz J. Mauelshagen
  0 siblings, 2 replies; 8+ messages in thread
From: Carsten Balzer @ 2001-05-29  9:33 UTC (permalink / raw)
  To: linux-lvm@sistina.com

Hi

I have a strange problem with kernel 2.2.19 an lvm-tools 0.9.1_beta7.

I have a existing VG with 2 80GB disks containing one 160GB LV.
I added a additional 80GB disk and wanted to extend the LV. But that
didn't
work.

seven:/ # pvdisplay /dev/hdf1
--- Physical volume ---
PV Name               /dev/hdf1
VG Name               NVolGroup
PV Size               76.34 GB / NOT usable 3.22 MB [LVM: 306 KB]
PV#                   3
PV Status             available
Allocatable           yes
Cur LV                0
PE Size (KByte)       4096
Total PE              19541
Free PE               19541
Allocated PE          0
PV UUID               o593Dd-Uo4Z-Hv1Z-yTI0-QtYy-p0Wq-a4XL3q

seven:/ # vgdisplay
--- Volume group ---
VG Name               NVolGroup
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                3
Act PV                3
VG Size               229 GB
PE Size               4 MB
Total PE              58623
Alloc PE / Size       39082 / 152.66 GB
Free  PE / Size       19541 / 76.33 GB
VG UUID               lHyDca-e7yA-4Rkt-keGF-uJHY-YCRk-3qqw7N

seven:/ # lvdisplay /dev/NVolGroup/nVol
--- Logical volume ---
LV Name                /dev/NVolGroup/nVol
VG Name                NVolGroup
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 1
LV Size                152.66 GB
Current LE             39082
Allocated LE           39082
Stripes                2
Stripe size (KByte)    16
Allocation             next free
Read ahead sectors     120
Block device           58:0

If I try to extend the LV with:
lvextend -L+78164M /dev/NVolGroup/nVol
then I get:
lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
KB
lvextend -- only 19541 free physical extents in volume group "NVolGroup"

Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
KB
lvextend -- only 19541 free physical extents in volume group "NVolGroup"

Where is the error?

Gru�
  Carsten

--
"Who the fuck is General Failure and why is he reading my disk?"

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29  9:33 [linux-lvm] Problem extending a LV Carsten Balzer
@ 2001-05-29 17:01 ` AJ Lewis
  2001-05-29 18:35   ` Austin Gonyou
  2001-05-29 21:10 ` Heinz J. Mauelshagen
  1 sibling, 1 reply; 8+ messages in thread
From: AJ Lewis @ 2001-05-29 17:01 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> If I try to extend the LV with:
> lvextend -L+78164M /dev/NVolGroup/nVol
> then I get:
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"
> 
> Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"

You cannot currently extend a striped LV onto a new disk.  It would involve
completely rearranging the data to account for the new striping
configuration.  The reason you get the error is because the tools know this
and are trying to extend on the two original PVs.  If you want to have the
ability to extend the LV onto new disks, you must use linear LVs.

Regards,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1...
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29 17:01 ` AJ Lewis
@ 2001-05-29 18:35   ` Austin Gonyou
  2001-05-29 21:55     ` josv
  2001-05-30  9:24     ` Heinz J. Mauelshagen
  0 siblings, 2 replies; 8+ messages in thread
From: Austin Gonyou @ 2001-05-29 18:35 UTC (permalink / raw)
  To: AJ Lewis; +Cc: linux-lvm

Are there plans to have this functionality? As in, I have a 2 disk striped
set, and now I'm running out of space, so I add a third pv, and now I want
to restripe and extend onto the third disk? I ask because Veritas has this
ability, and it could be a deal breaker for some choosing which to use.

-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: austin@coremetrics.com

On Tue, 29 May 2001, AJ Lewis wrote:

> On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> > If I try to extend the LV with:
> > lvextend -L+78164M /dev/NVolGroup/nVol
> > then I get:
> > lvextend -- rounding size 240119808 KB to stripe boundary size
> 240123904
> > KB
> > lvextend -- only 19541 free physical extents in volume group
> "NVolGroup"
> >
> > Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> > lvextend -- rounding size 240119808 KB to stripe boundary size
> 240123904
> > KB
> > lvextend -- only 19541 free physical extents in volume group
> "NVolGroup"
>
> You cannot currently extend a striped LV onto a new disk.  It would
> involve
> completely rearranging the data to account for the new striping
> configuration.  The reason you get the error is because the tools know
> this
> and are trying to extend on the two original PVs.  If you want to have
> the
> ability to extend the LV onto new disks, you must use linear LVs.
>
> Regards,
>

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29  9:33 [linux-lvm] Problem extending a LV Carsten Balzer
  2001-05-29 17:01 ` AJ Lewis
@ 2001-05-29 21:10 ` Heinz J. Mauelshagen
  1 sibling, 0 replies; 8+ messages in thread
From: Heinz J. Mauelshagen @ 2001-05-29 21:10 UTC (permalink / raw)
  To: linux-lvm

Carsten,

sorry, you can't extend a striped LV like this today :-(
Will be enhanced in a later release.


On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> Hi
> 
> I have a strange problem with kernel 2.2.19 an lvm-tools 0.9.1_beta7.
> 
> I have a existing VG with 2 80GB disks containing one 160GB LV.
> I added a additional 80GB disk and wanted to extend the LV. But that
> didn't
> work.
> 
> seven:/ # pvdisplay /dev/hdf1
> --- Physical volume ---
> PV Name               /dev/hdf1
> VG Name               NVolGroup
> PV Size               76.34 GB / NOT usable 3.22 MB [LVM: 306 KB]
> PV#                   3
> PV Status             available
> Allocatable           yes
> Cur LV                0
> PE Size (KByte)       4096
> Total PE              19541
> Free PE               19541
> Allocated PE          0
> PV UUID               o593Dd-Uo4Z-Hv1Z-yTI0-QtYy-p0Wq-a4XL3q
> 
> seven:/ # vgdisplay
> --- Volume group ---
> VG Name               NVolGroup
> 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                3
> Act PV                3
> VG Size               229 GB
> PE Size               4 MB
> Total PE              58623
> Alloc PE / Size       39082 / 152.66 GB
> Free  PE / Size       19541 / 76.33 GB
> VG UUID               lHyDca-e7yA-4Rkt-keGF-uJHY-YCRk-3qqw7N
> 
> seven:/ # lvdisplay /dev/NVolGroup/nVol
> --- Logical volume ---
> LV Name                /dev/NVolGroup/nVol
> VG Name                NVolGroup
> LV Write Access        read/write
> LV Status              available
> LV #                   1
> # open                 1
> LV Size                152.66 GB
> Current LE             39082
> Allocated LE           39082
> Stripes                2
> Stripe size (KByte)    16
> Allocation             next free
> Read ahead sectors     120
> Block device           58:0
> 
> If I try to extend the LV with:
> lvextend -L+78164M /dev/NVolGroup/nVol
> then I get:
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"
> 
> Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> lvextend -- rounding size 240119808 KB to stripe boundary size 240123904
> KB
> lvextend -- only 19541 free physical extents in volume group "NVolGroup"
> 
> Where is the error?
> 
> Gru�
>   Carsten
> 
> --
> "Who the fuck is General Failure and why is he reading my disk?"
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29 18:35   ` Austin Gonyou
@ 2001-05-29 21:55     ` josv
  2001-05-30  8:58       ` Tom Dawes-Gamble
  2001-05-30 10:48       ` Oscar Wahlberg
  2001-05-30  9:24     ` Heinz J. Mauelshagen
  1 sibling, 2 replies; 8+ messages in thread
From: josv @ 2001-05-29 21:55 UTC (permalink / raw)
  To: linux-lvm; +Cc: AJ Lewis

Hi,

You mention that Veritas (presumably the Volume Manager) has this
functionality. Are you sure that you can add a subdisk to a striped plex
in a volume? I'm just curious because I can not remember that this is
actually possible....

++Jos

And thus it came to pass that Austin Gonyou wrote:
(on Tue, May 29, 2001 at 01:35:07PM -0500 to be exact)

> Are there plans to have this functionality? As in, I have a 2 disk striped
> set, and now I'm running out of space, so I add a third pv, and now I want
> to restripe and extend onto the third disk? I ask because Veritas has this
> ability, and it could be a deal breaker for some choosing which to use.
> 
> -- 
> Austin Gonyou
> Systems Architect, CCNA
> Coremetrics, Inc.
> Phone: 512-796-9023
> email: austin@coremetrics.com
> 
> On Tue, 29 May 2001, AJ Lewis wrote:
> 
> > On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> > > If I try to extend the LV with:
> > > lvextend -L+78164M /dev/NVolGroup/nVol
> > > then I get:
> > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > 240123904
> > > KB
> > > lvextend -- only 19541 free physical extents in volume group
> > "NVolGroup"
> > >
> > > Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > 240123904
> > > KB
> > > lvextend -- only 19541 free physical extents in volume group
> > "NVolGroup"
> >
> > You cannot currently extend a striped LV onto a new disk.  It would
> > involve
> > completely rearranging the data to account for the new striping
> > configuration.  The reason you get the error is because the tools know
> > this
> > and are trying to extend on the two original PVs.  If you want to have
> > the
> > ability to extend the LV onto new disks, you must use linear LVs.
> >
> > Regards,
> >
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 
If you do what you've always done,
You get what you've always gotten.

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29 21:55     ` josv
@ 2001-05-30  8:58       ` Tom Dawes-Gamble
  2001-05-30 10:48       ` Oscar Wahlberg
  1 sibling, 0 replies; 8+ messages in thread
From: Tom Dawes-Gamble @ 2001-05-30  8:58 UTC (permalink / raw)
  To: linux-lvm

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

Hi,

	The HP VxVm (Veritas Volume Mangager for HP-UX 11i) has this
functionality.  If you have enough spare space you can also change stripe
sizes on the fly too.

Tom.


josv@osp.nl wrote:
> 
> Hi,
> 
> You mention that Veritas (presumably the Volume Manager) has this
> functionality. Are you sure that you can add a subdisk to a striped plex
> in a volume? I'm just curious because I can not remember that this is
> actually possible....
> 
> ++Jos
> 
> And thus it came to pass that Austin Gonyou wrote:
> (on Tue, May 29, 2001 at 01:35:07PM -0500 to be exact)
> 
> > Are there plans to have this functionality? As in, I have a 2 disk striped
> > set, and now I'm running out of space, so I add a third pv, and now I want
> > to restripe and extend onto the third disk? I ask because Veritas has this
> > ability, and it could be a deal breaker for some choosing which to use.
> >
> > --
> > Austin Gonyou
> > Systems Architect, CCNA
> > Coremetrics, Inc.
> > Phone: 512-796-9023
> > email: austin@coremetrics.com
> >
> > On Tue, 29 May 2001, AJ Lewis wrote:
> >
> > > On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> > > > If I try to extend the LV with:
> > > > lvextend -L+78164M /dev/NVolGroup/nVol
> > > > then I get:
> > > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > > 240123904
> > > > KB
> > > > lvextend -- only 19541 free physical extents in volume group
> > > "NVolGroup"
> > > >
> > > > Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> > > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > > 240123904
> > > > KB
> > > > lvextend -- only 19541 free physical extents in volume group
> > > "NVolGroup"
> > >
> > > You cannot currently extend a striped LV onto a new disk.  It would
> > > involve
> > > completely rearranging the data to account for the new striping
> > > configuration.  The reason you get the error is because the tools know
> > > this
> > > and are trying to extend on the two original PVs.  If you want to have
> > > the
> > > ability to extend the LV onto new disks, you must use linear LVs.
> > >
> > > Regards,
> > >
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
> 
> --
> If you do what you've always done,
> You get what you've always gotten.
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

- -- 
char  *t,*n,*i="%.9s%.7s%.7s\n";extern void exit(int);extern int printf(const 
char  *,...);int main(){int v=*i,g,e=*(i-~(v/=v))%*(i+v);g=*i+~e--; 
t=n="  DISPLAY'tmdg@uksr';,,;'.hp.com'*>"+g;v=g-e;  e-=printf(i,n- v,e+n,t);
t=n="  DISPLAY'http://www.itrc.hp.com/' *>"-~g;exit(g+~printf(i,n+~v,e+n,t));}

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBOxS2RAbfKggmajr3EQKACwCggAwu+r/4Q/xTn0pFiYgNsAMXnoUAoPKC
rqG6slFd3xhqXS7oR7vB7pRX
=Pdmj
-----END PGP SIGNATURE-----

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29 18:35   ` Austin Gonyou
  2001-05-29 21:55     ` josv
@ 2001-05-30  9:24     ` Heinz J. Mauelshagen
  1 sibling, 0 replies; 8+ messages in thread
From: Heinz J. Mauelshagen @ 2001-05-30  9:24 UTC (permalink / raw)
  To: linux-lvm

On Tue, May 29, 2001 at 01:35:07PM -0500, Austin Gonyou wrote:
> Are there plans to have this functionality?

Yes, as mentioned in my other related mail.

> As in, I have a 2 disk striped
> set, and now I'm running out of space, so I add a third pv, and now I want
> to restripe and extend onto the third disk? I ask because Veritas has this
> ability, and it could be a deal breaker for some choosing which to use.

All right, that's one reason why we want to have it.
A post 1.0 feature though :-(

Regards,
Heinz    -- The LVM Guy --

> 
> -- 
> Austin Gonyou
> Systems Architect, CCNA
> Coremetrics, Inc.
> Phone: 512-796-9023
> email: austin@coremetrics.com
> 
> On Tue, 29 May 2001, AJ Lewis wrote:
> 
> > On Tue, May 29, 2001 at 11:33:54AM +0200, Carsten Balzer wrote:
> > > If I try to extend the LV with:
> > > lvextend -L+78164M /dev/NVolGroup/nVol
> > > then I get:
> > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > 240123904
> > > KB
> > > lvextend -- only 19541 free physical extents in volume group
> > "NVolGroup"
> > >
> > > Next try with: lvextend -l+19541 /dev/NVolGroup/nVol
> > > lvextend -- rounding size 240119808 KB to stripe boundary size
> > 240123904
> > > KB
> > > lvextend -- only 19541 free physical extents in volume group
> > "NVolGroup"
> >
> > You cannot currently extend a striped LV onto a new disk.  It would
> > involve
> > completely rearranging the data to account for the new striping
> > configuration.  The reason you get the error is because the tools know
> > this
> > and are trying to extend on the two original PVs.  If you want to have
> > the
> > ability to extend the LV onto new disks, you must use linear LVs.
> >
> > Regards,
> >
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] Problem extending a LV
  2001-05-29 21:55     ` josv
  2001-05-30  8:58       ` Tom Dawes-Gamble
@ 2001-05-30 10:48       ` Oscar Wahlberg
  1 sibling, 0 replies; 8+ messages in thread
From: Oscar Wahlberg @ 2001-05-30 10:48 UTC (permalink / raw)
  To: AJ Lewis; +Cc: linux-lvm

Quoting josv@osp.nl <josv@osp.nl>:
> 
> You mention that Veritas (presumably the Volume Manager) has this
> functionality. Are you sure that you can add a subdisk to a striped plex
> in a volume? I'm just curious because I can not remember that this is
> actually possible....
>
> ++Jos


Yes, you can add/remove columns(would be a sd in your case) in a striped plex
with VxVM. 
ex: vxassist -g <dgname> relayout <volname> ncol=5

-- 
Oscar Wahlberg <oscar.wahlberg(at)home.se>
"There are only two industries that refer to their customers 
as 'users'." --Edward Tufte

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

end of thread, other threads:[~2001-05-30 10:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29  9:33 [linux-lvm] Problem extending a LV Carsten Balzer
2001-05-29 17:01 ` AJ Lewis
2001-05-29 18:35   ` Austin Gonyou
2001-05-29 21:55     ` josv
2001-05-30  8:58       ` Tom Dawes-Gamble
2001-05-30 10:48       ` Oscar Wahlberg
2001-05-30  9:24     ` Heinz J. Mauelshagen
2001-05-29 21:10 ` Heinz J. Mauelshagen

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.