[linux-lvm] Using pvcreate with file...
ahairape at mail.cern.ch
Mon Jul 31 17:59:27 UTC 2006
I am newbe to the lvm and I have the following issue:
My system is partitioned in the following way:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 16 128488+ 83 Linux
/dev/hda2 17 4767 38162407+ 83 Linux
/dev/hda3 4768 4865 787185 82 Linux swap
There is no free space left on the disk.
I created the separate files, which I want to be lvm-enabled; I
used the following commands:
#> cd /
#> dd if=/dev/zero of=vm1disk bs=1k seek=16384k count=1
#> mkfs -t ext3 vm1disk
#> dd if=/dev/zero of=vm1swap bs=1024k count=1
#> mkswap vm1swap
Now I want to initialize that "disk" for lvm-use.
So what I need to do?
I had a look at the documentation, but they deal with real partitions
and disks (as far as I understood), not with files...
Thanks in advance to everyone who responds,
More information about the linux-lvm