Dick Davies wrote:
On 17/11/05, Marc Shapiro <[EMAIL PROTECTED]> wrote:
/dev/hda12 2201+ 4864 2664- 21398548+ 8e Linux LVM
[EMAIL PROTECTED]:~# pvcreate /dev/hda12
Device /dev/hda12 not found.
As you can see, pvcreate does not appear to want to work on /dev/hda12.
This was the case with partiton type 83 as well.
That's weird. All I can say is that it's definitely possible to do LVM on
logical partitions. Here's my laptop :
[EMAIL PROTECTED]:~$ sudo fdisk -l /dev/hda
Password:
Disk /dev/hda: 30.0 GB, 30005821440 bytes
16 heads, 63 sectors/track, 58140 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 20799 10482381 c W95 FAT32 (LBA)
/dev/hda2 20799 46586 12996585 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/hda3 46586 52132 2795310 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda5 * 20799 21373 289138+ 83 Linux
/dev/hda6 21373 23317 979933+ 82 Linux swap / Solaris
/dev/hda7 23317 29134 2931831 8e Linux LVM
/dev/hda8 29134 34951 2931831 8e Linux LVM
/dev/hda9 34952 40769 2931831 8e Linux LVM
/dev/hda10 40769 46586 2931831 8e Linux LVM
[EMAIL PROTECTED]:~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/hda10 biglv lvm2 a- 2.79G 52.00M
/dev/hda7 biglv lvm2 a- 2.79G 0
/dev/hda8 biglv lvm2 a- 2.79G 0
/dev/hda9 biglv lvm2 a- 2.79G 0
It does seem odd. Are you using Sid, or Etch? I am running Sarge.
Could that make a difference?
When I juggled some stuff around so that I was able to get a primary
partition that I could play with (/dev/hda1) I was able to run:
pvcreate /dev/hda1
vgcreate vg /dev/hda1
lvcreate -L200 -n test vg
with no problems.
I then created a file system and mounted the volume just like any other.
This workd with ext2 and reiserfs.
By the time I juggle the data enough to get a large enough primary
partition, if I can, it would be easier to leave it as it is and not
bother with LVM, except that having the LVM will make it easier the next
time. It would be much simpler if LVM on my box would let me use
logical partitions, but that is, apparently, not to be.
--
Marc Shapiro
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]