<div dir="ltr">hello steve,<br>Thanks for your reply, It seems logical not to have a extent larger than the phisical size...<br>i don't have time right now but I'll look into it next week.<br>Thanks,<br><br>Greetings,<br>
Geert<br><br><div class="gmail_quote">2008/9/30 Steve Brueggeman <span dir="ltr"><<a href="mailto:xioborg@yahoo.com">xioborg@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I didn't see any replies to this, so I thought I'd post what I've found.<br>
<br>
You have to specify a smaller extent size when creating the volume group.  The<br>
default extent size is 4MB, which is larger than your physical device on<br>
/dev/loop1 (use the -s option)<br>
<br>
For example, try this instead, which would give 4 extents on the 1MB physical<br>
device on /dev/loop1 (I think.  I am not certain about how much metadata exists<br>
on the physical device for LVM2)<br>
<br>
>vgcreate SmallDiskGroup -s256k /dev/loop0 # create a new volumegroup using the<br>
<div class="Ih2E3d">>loop0 device as phisical volume.<br>
<br>
</div><font color="#888888">Steve.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Mon, 29 Sep 2008 11:44:40 +0200, you wrote:<br>
<br>
>Hello Bryn,<br>
>I haven't had the time yet to try Stuart's suggestion... I've re did my<br>
>attempt to create the lv though, and this time with the -vvv option in<br>
>the step where I create the lv.<br>
>my steps:<br>
>dd if=/dev/sdb1 of=./disk0 # copy a existing LVM-partition to a file<br>
>losetup -f ./disk0        # link the file to a loop device<br>
>pvcreate /dev/loop0       # create a pv using the file<br>
>vgcreate SmallDiskGroup /dev/loop0 # create a new volumegroup using the<br>
>loop0 device as phisical volume.<br>
>vgchange -a y SmallDiskGroup #Activate the volumegroup<br>
><br>
>nb. vgdisplay SmallDiskGroup gives 'Act PV 1' but 'MAX LV 0'<br>
><br>
>the output of lvcreate -vvv -L1 -nSmallDiskVolume SmallDiskGroup is<br>
>downloadable here: <a href="http://pastebin.com/pastebin.php?dl=m2b9dcd7f" target="_blank">http://pastebin.com/pastebin.php?dl=m2b9dcd7f</a><br>
><br>
>I hope you can find anything.<br>
><br>
>Greetings,<br>
>Geert<br>
><br>
>On Mon, 2008-09-29 at 10:08 +0100, Bryn M. Reeves wrote:<br>
>> -----BEGIN PGP SIGNED MESSAGE-----<br>
>> Hash: SHA1<br>
>><br>
>> geert Geurts wrote:<br>
>> > So what I did first create a LVM partition of 1MB on a memorystick and then<br>
>> > change the if of dd to point to the LVM partition, I'm now able to pvcreate<br>
>> > /dev/loop0, vgcreate SmallDisk /dev/loop0.<br>
>> > But I'm unable to create a logical volume in the SmallDisk group...<br>
>> > what am I doing wrong here? is it even possible if not why?<br>
>><br>
>> Hi Geert,<br>
>><br>
>> What was the error you were getting at this point? If possible, can you<br>
>> use a service like <a href="http://pastebin.com" target="_blank">pastebin.com</a> to post the complete output of "lvcreate<br>
>> - -vvv" with the options you're using for the SmallDisk VG. That should<br>
>> give enough detail to have some idea where it's failing.<br>
>><br>
>> I think the idea is reasonable enough although you'll probably need to<br>
>> do some fiddling around to get the size/number of the gmailfs volumes<br>
>> right to give good performance.<br>
>><br>
>> Snapshots could definitely work here but I think it might be a bit<br>
>> tricky without some of the patches that are currently outstanding for<br>
>> device-mapper, esp. Mikulas' snapshot merging patches which you'd need<br>
>> to "restore" one of the COW areas. See the thread here:<br>
>><br>
>> <a href="http://kerneltrap.org/Linux/LVM_Snapshot_Merging" target="_blank">http://kerneltrap.org/Linux/LVM_Snapshot_Merging</a><br>
>><br>
>> Regards,<br>
>> Bryn.<br>
>><br>
>> -----BEGIN PGP SIGNATURE-----<br>
>> Version: GnuPG v1.4.9 (GNU/Linux)<br>
>> Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
>><br>
>> iEYEARECAAYFAkjgmxgACgkQ6YSQoMYUY96LegCcCHPZNLfhTUjIrsLiJcgROTDV<br>
>> +SwAoLFQDiGpkZl5tpEFW5hjFH+6OuAj<br>
>> =i+W8<br>
>> -----END PGP SIGNATURE-----<br>
>><br>
>> _______________________________________________<br>
>> linux-lvm mailing list<br>
>> <a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
>> <a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
>> read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
><br>
>_______________________________________________<br>
>linux-lvm mailing list<br>
><a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
><a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
>read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
<br>
<br>
_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
</div></div></blockquote></div><br></div>