Hi,
*Versions:*
RedHat 9
lvm-1.0.3-12
kernel 2.4.20-20.9 (received from up2date)
fdisk v2.11y
*Problem*
Using disk druid I've set up a LVM partition. This works with no issues.
I've added /dev/hdb and have subsequently have used fdisk to create a 2nd LVM partition. This all worked exactly as expected, fdisk -> pvcreate -> vgcreate -> lvcreate -> mke2fs -j.
[ a number of reboots happened around here ]
Today I want to create another partition to use some of the rest of the 6GB on /dev/hdb and when I run fdisk -l to check the current status I get the message below for /dev/hdb.
[fdisk -l]
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 274 2096482+ 83 Linux
/dev/hda3 275 338 514080 8e Linux LVM
/dev/hda4 339 784 3582495 5 Extended
/dev/hda5 339 402 514048+ 8e Linux LVM
/dev/hda6 403 426 192748+ 82 Linux swap
Disk /dev/hdb: 9115 MB, 9115361280 bytes <---
255 heads, 63 sectors/track, 1108 cylinders <---
Units = cylinders of 16065 * 512 = 8225280 bytes <---
Disk /dev/hdb doesn't contain a valid partition table <---***
however I have an LVM volume on hdb1 which is still active and happy even though according to fdisk it doesn't exist!
[vgdisplay -v Volume01]
--- Volume group ---
VG Name Volume01
VG Access read/write
VG Status available/resizable
VG # 1
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 1.90 GB
PE Size 4 MB
Total PE 487
Alloc PE / Size 487 / 1.90 GB
Free PE / Size 0 / 0
VG UUID eKR9gV-p2Xr-cLCH-5O50-Or1D-xZXX-hnZZT9
--- Logical volume ---
LV Name /dev/Volume01/datalv2
VG Name Volume01
LV Write Access read/write
LV Status available
LV # 1
# open 1
LV Size 1.90 GB
Current LE 487
Allocated LE 487
Allocation next free
Read ahead sectors 1024
Block device 58:1
--- Physical volumes ---
PV Name (#) /dev/hdb1 (1) <---
PV Status available / allocatable
Total PE / Free PE 487 / 0
I wondered if this was something to do with VGDA corruption although this is unlikely as it is a partition rather than a whole disk so did a vgexport and vgimport. It worked, my data is intact and I can write to the filesystem.
Have I misunderstood the way the LVM works? Afaiac I would expect to see /dev/hdb# so that I won't accidentally overwrite it with standard Linux partitions.
Has anyone seen this before?
Any suggestions???
Thanks in advance
Dave