All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvm over loop device
@ 2008-09-26 12:04 geert Geurts
  2008-09-26 13:36 ` Stuart D. Gathman
  2008-09-29  9:08 ` Bryn M. Reeves
  0 siblings, 2 replies; 8+ messages in thread
From: geert Geurts @ 2008-09-26 12:04 UTC (permalink / raw)
  To: linux-lvm

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

Hello,
I'm trying to create a lvgroup of a few hundred pvolumes witch are virtual
disks (files of +- 1Mb ) over loopdevices.
what I did is the following:
dd if=/dev/urandom of=/disk0 bs=1024 count=1000 #create a file with random
data
losetup -f disk0 #link a loopdevice to the file
after this I'm able to for instance mkfs.ext3 /dev/loop0 and mount it but I
don't want a ext3 I want LVM partition. But fdisk is unable to create it
using fdisk /dev/loop0 fails...
So what I did first create a LVM partition of 1MB on a memorystick and then
change the if of dd to point to the LVM partition, I'm now able to pvcreate
/dev/loop0, vgcreate SmallDisk /dev/loop0.
But I'm unable to create a logical volume in the SmallDisk group...
what am I doing wrong here? is it even possible if not why?

Thanks,
Greetings Geert

ps. for people interested, I'm trying to create a disk of allot of small
virtual disks so I can create a encrypted partition on for instance gmailfs
and minimalize up/download time on changes.
Pretty cool if it's possible no?

[-- Attachment #2: Type: text/html, Size: 1144 bytes --]

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

end of thread, other threads:[~2008-10-04 17:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26 12:04 [linux-lvm] lvm over loop device geert Geurts
2008-09-26 13:36 ` Stuart D. Gathman
2008-09-26 14:00   ` Larry Dickson
2008-09-26 17:37   ` geert Geurts
2008-09-29  9:08 ` Bryn M. Reeves
2008-09-29  9:44   ` Geert Geurts
2008-09-30 19:32     ` Steve Brueggeman
2008-10-04 17:08       ` geert Geurts

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.