Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] New lv cannot span pv's
@ 2003-02-04 12:28 Stefan Nilsen
  2003-02-04 12:33 ` Patrick Boutilier
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Nilsen @ 2003-02-04 12:28 UTC (permalink / raw)
  To: linux-lvm

Hi.

I'm using LVM on SuSE 8.1

As can be seen below, I cannot create a logical volume spanning physical 
volumes even if they are in the same volume group.

I'm pretty sure I could do this in older versions of the LVM.

wale:~ # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/hda5" of VG "vgdata" [11.60 GB / 3.16 GB 
free]
pvscan -- ACTIVE   PV "/dev/hda6" of VG "vgdata" [21.71 GB / 3.24 GB 
free]
pvscan -- total: 2 [33.31 GB] / in use: 2 [33.31 GB] / in no VG: 0 [0]

wale:~ # lvcreate -ntest -L5G vgdata
lvcreate -- not enough allocatable/free physical volume space in 
"vgdata"
lvcreate -- please check, if physical volumes are allocatable

Do I really have to use MD to overcome this problem?
Shouldn't the LVM software take care of this?

/Stefan

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

* Re: [linux-lvm] New lv cannot span pv's
  2003-02-04 12:28 [linux-lvm] New lv cannot span pv's Stefan Nilsen
@ 2003-02-04 12:33 ` Patrick Boutilier
  2003-02-04 12:54   ` Stefan Nilsen
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Boutilier @ 2003-02-04 12:33 UTC (permalink / raw)
  To: linux-lvm

What does vgdisplay show?



Stefan Nilsen wrote:
> Hi.
> 
> I'm using LVM on SuSE 8.1
> 
> As can be seen below, I cannot create a logical volume spanning physical 
> volumes even if they are in the same volume group.
> 
> I'm pretty sure I could do this in older versions of the LVM.
> 
> wale:~ # pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE   PV "/dev/hda5" of VG "vgdata" [11.60 GB / 3.16 GB 
> free]
> pvscan -- ACTIVE   PV "/dev/hda6" of VG "vgdata" [21.71 GB / 3.24 GB 
> free]
> pvscan -- total: 2 [33.31 GB] / in use: 2 [33.31 GB] / in no VG: 0 [0]
> 
> wale:~ # lvcreate -ntest -L5G vgdata
> lvcreate -- not enough allocatable/free physical volume space in 
> "vgdata"
> lvcreate -- please check, if physical volumes are allocatable
> 
> Do I really have to use MD to overcome this problem?
> Shouldn't the LVM software take care of this?
> 
> /Stefan
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

* Re: [linux-lvm] New lv cannot span pv's
  2003-02-04 12:33 ` Patrick Boutilier
@ 2003-02-04 12:54   ` Stefan Nilsen
  2003-02-04 14:39     ` Patrick Boutilier
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Nilsen @ 2003-02-04 12:54 UTC (permalink / raw)
  To: linux-lvm

On Tuesday 04 February 2003 19.31, Patrick Boutilier wrote:
> What does vgdisplay show?

wale:~ # vgdisplay
--- Volume group ---
VG Name               vgdata
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                7
Open LV               7
MAX LV Size           255.99 GB
Max PV                256
Cur PV                2
Act PV                2
VG Size               33.31 GB
PE Size               4 MB
Total PE              8527
Alloc PE / Size       7144 / 27.91 GB
Free  PE / Size       1383 / 5.40 GB
VG UUID               hTrW0U-F9mz-tjQN-re4H-G5df-rjP0-9HucNn

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

* Re: [linux-lvm] New lv cannot span pv's
  2003-02-04 12:54   ` Stefan Nilsen
@ 2003-02-04 14:39     ` Patrick Boutilier
  2003-02-04 16:14       ` [linux-lvm] Re: [SOLVED] " Stefan Nilsen
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Boutilier @ 2003-02-04 14:39 UTC (permalink / raw)
  To: linux-lvm

Does

lvcreate -ntest -l1383 vgdata


work ?



Stefan Nilsen wrote:
> On Tuesday 04 February 2003 19.31, Patrick Boutilier wrote:
> 
>>What does vgdisplay show?
> 
> 
> wale:~ # vgdisplay
> --- Volume group ---
> VG Name               vgdata
> VG Access             read/write
> VG Status             available/resizable
> VG #                  0
> MAX LV                256
> Cur LV                7
> Open LV               7
> MAX LV Size           255.99 GB
> Max PV                256
> Cur PV                2
> Act PV                2
> VG Size               33.31 GB
> PE Size               4 MB
> Total PE              8527
> Alloc PE / Size       7144 / 27.91 GB
> Free  PE / Size       1383 / 5.40 GB
> VG UUID               hTrW0U-F9mz-tjQN-re4H-G5df-rjP0-9HucNn
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

* [linux-lvm] Re: [SOLVED] New lv cannot span pv's
  2003-02-04 14:39     ` Patrick Boutilier
@ 2003-02-04 16:14       ` Stefan Nilsen
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Nilsen @ 2003-02-04 16:14 UTC (permalink / raw)
  To: linux-lvm

On Tuesday 04 February 2003 21.36, Patrick Boutilier wrote:
> Does
>
> lvcreate -ntest -l1383 vgdata
>
>
> work ?
>

It did not.

wale:~ # lvcreate -ntest -l1383 vgdata
lvcreate -- not enough allocatable/free physical volume space in 
"vgdata"
lvcreate -- please check, if physical volumes are allocatable

I looked around little more and found this:

wale:~ # pvdisplay /dev/hda5
--- Physical volume ---
PV Name               /dev/hda5
VG Name               vgdata
PV Size               11.61 GB [24338412 secs] / NOT usable 3.99 MB 
[LVM: 134 KB]
PV#                   1
PV Status             available
Allocatable           NO
Cur LV                5
PE Size (KByte)       4096
Total PE              2970
Free PE               553
Allocated PE          2417
PV UUID               eQxblH-x1uS-bb9G-reYu-ocZo-QSOW-5j6QB0

I seem to have managed to turn off the allocatable status of one of the 
pv's. :-)

I changed it with "pvchange -xy /dev/hda5" and now it works.

Thanks for help.

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

end of thread, other threads:[~2003-02-04 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-04 12:28 [linux-lvm] New lv cannot span pv's Stefan Nilsen
2003-02-04 12:33 ` Patrick Boutilier
2003-02-04 12:54   ` Stefan Nilsen
2003-02-04 14:39     ` Patrick Boutilier
2003-02-04 16:14       ` [linux-lvm] Re: [SOLVED] " Stefan Nilsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox