Skip to contentSkip to conversation

LVM-0.9 Touble in pvcreate

linux-lvm Soete Joel 1 participant 1 message Dec 29, 2000

lore
Share & tools
lore

Soete Joel

author
#0 lore raw

Hello LVM - guy,

Being an system engineer who appreciate the facilities of managment which brings LVM into HPUX systems, I try to test your last implementation(0.9).

But I loose Linux-2.4.0-test10 also I spend time to include youe patches into Linux-2.4.0-test12.
I submitted to your relivant opignon as I am not sure of the result. I compile a kernel with LVM modular options and seems to work but not yet fine.

I am working on a 'potato Debian distribution (2.2_r0)'. And I would like to submit you some test results which are strange:

I first create two disk partition of 10Mb [actualy 8.23Mb] (hda24, hda25) with cfdisk. And the result was:
cfdisk 2.10f

Disk Drive: /dev/hda
Size: 15020457984 bytes
Heads: 255 Sectors per Track: 63 Cylinders: 1826

Name Flags Part Type FS Type [Label]
Size (MB)
------------------------------------------------------------------------------

hda16 Logical Linux
ext2 65.81
hda17 Logical Linux
ext2 16.46
hda18 Logical Linux
ext2 65.81
hda19 Logical Linux
ext2 16.46
hda20 Logical Linux ext2
962.36
hda21 Logical Linux ext2
131.61
hda22 Logical Linux ext2
748.51
hda23 Logical Linux ext2
2048.10
Logical Free Space
5708.35
hda24 Logical
Linux 8.23
hda25 Logical
Linux 8.23

Then I create pseudo devices:
% mknod /dev/hda24 b 3 24
% mknod /dev/hda25 b 3 25

% ls /dev/hda24 /dev/hda25

brw-r--r--    1 root     root       3,  24 Dec 29 14:51 /dev/hda24
brw-r--r--    1 root     root       3,  25 Dec 29 14:51 /dev/hda25

OK?

Reboot (I do not yet find another way to make know the new partions to the kernel)

Now following LVM-HOWTO (corresponding to HP experience excepted that HP consider only an all disk):
% pvcreate /dev/hda24

But what is my surprise with a partition of about 8Mb pvcreate a phisycal volume of 62Mb???

% pvdisplay /dev/hda24

pvdisplay -- getting physical volume size
--- Physical volume ---

PV Name               /dev/hda24
VG Name               test_vg
PV Size               62.72 MB / NOT usable 2.72 MB [LVM: 121 KB]
PV#                   1
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       4096
Total PE              15
Free PE               13
Allocated PE          2
PV UUID               MB5eIp-jxvc-4pup-ncSM-O6xT-fMmu-JjYgzM

What do I wrong?

Thanks in adavance for help,
Joel

PS: I countinue the rest of the test as follow and all seems coherent with those result:

% vgcreate test_vg /dev/hda24

% vgdisplay test_vg
--- Volume group ---

VG Name               test_vg
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                1
Open LV               1
MAX LV Size           255.99 GB
Max PV                256
Cur PV                1
Act PV                1
VG Size               60 MB
PE Size               4 MB
Total PE              15
Alloc PE / Size       2 / 8 MB
Free  PE / Size       13 / 52 MB
VG UUID               CBKdMh-Nk1S-Z4l0-qldN-r3Jq-gSAn-IWbqaT

% lvcreate -L5 -ntest_lv1 test_vg

% lvdisplay /dev/test_vg/test_lv1
--- Logical volume ---

LV Name                /dev/test_vg/test_lv1
VG Name                test_vg
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 1
LV Size                8 MB
Current LE             2
Allocated LE           2
Allocation             next free
Read ahead sectors     120
Block device           58:0