Bug 16516 - LVM logical volumes do not have a drive geometry
Summary: LVM logical volumes do not have a drive geometry
Status: CLOSED INVALID
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: LVM2/DM (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alasdair G Kergon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 17:56 UTC by Hadmut Danisch
Modified: 2011-02-24 15:25 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.32-24-generic (ubuntu)
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Hadmut Danisch 2010-08-04 17:56:30 UTC
Hi, 

I am using KVM to run several virtual machines, where their virtual hard disks are just LVM logical volumes. Partitions generated with fdisk or parted, using kpartx to crossmount them from the host system for base installation. Using either ext3/4+grub or msdos+syslinux to generate machines. 

Unfortunately, I am running occasionally into file system problems, since the linux kernel does not provide a disk geometry for these logical volumes. Most tools try to guess a 255 heads, 63 sectors geometry, but not all tools, e.g. qemu/lvm do support this ans sometimes assume a wrong geometry. 

Would be nice and usefull if it was possible to just assign an arbitrary geometry to a lvm volume just as if it was a physical disk. 

regards
Comment 1 Hadmut Danisch 2010-08-07 11:04:34 UTC
I've seen comments of other users experiencing similar problems, and it seems to be a problem of LVM devices, something related to the beginning of the logical volume.
Comment 2 Milan Broz 2010-08-07 13:53:46 UTC
You can assign arbitrary geometry to DM/LVM device, see "man dmsetup" setgeometry command.

But all mentioned utilities should be fixed to not require geometry there (and I think that problem was already fixed for fdisk and parted).

Note You need to log in before you can comment on or make changes to this bug.