hal does not recognize LVM volumes

Bug #32814 reported by Tormod Volden
22
Affects Status Importance Assigned to Milestone
HAL
Won't Fix
Medium
hal (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I have some real partitions and some LVM partitions on my hard drive, mounted through fstab, all with the same options. They are treated differently by Nautilus. In the Computer view, the LVM volumes show up separately, and the real volumes not. (Clean dapper flight 4 install)

mount output:
/dev/hda2 on /media/flight2 type ext3 (rw)
/dev/mapper/samson-homes on /media/homes type ext3 (rw)
/dev/hda5 on /media/music type vfat (rw)
/dev/mapper/samson-experimental on /media/warty type ext3 (rw)

Revision history for this message
Tormod Volden (tormodvolden) wrote : relevant lshal output

Only the real partitions show up in lshal, the lvm partitions don't.

Martin Pitt (pitti)
Changed in gnome-volume-manager:
status: Unconfirmed → Confirmed
Revision history for this message
In , Martin Pitt (pitti) wrote :

Hal does not export LVM volumes, so that they are not visible in nautilus et al
(through gnome-vfs2).

Revision history for this message
In , Zeuthen (zeuthen) wrote :

Yes this would be nice. Patches welcome. Btw, think we need kernel support for this.

Revision history for this message
In , Zeuthen (zeuthen) wrote :

Btw, the patch should have a strlist of the hal device objects backing the
volume.. just like we do for crypto..

Suggest following properties.

 bool volume.linux.is_lvm
 strlist volume.linux.lvm_backing_volumes = {hal_udi1, hal_udi2, ...}

since you may stack LVM this is fun, you may have have to reference this
property recursively to get the set of physical volumes...

We probably shouldn't represent LVM volumes if they are not backed by a physical
disk.

Btw, one reason I also want this is to easily get to the physical drive for
certain mount points.. Need this for tweaking disk standby via hdparm and sdparm
when transitioning to battery for instance...

Revision history for this message
Tormod Volden (tormodvolden) wrote :

This is also a problem in the installer. After I have activated LVM in the partitioning tool, the LVM partitions show up in the partition list, but they are not proposed mounted at /media/<name>, and when I select one to mount, the partition manager asks what filesystem I want to use, even if they are already formated (ext3) and contain data.

Changed in hal:
status: Confirmed → In Progress
Revision history for this message
In , Zeuthen (zeuthen) wrote :

Actually later kernels now export holders/ and slaves/ so we can use that. We
should also have Setup() and Teardown() methods much like we do for LUKS.

Revision history for this message
In , Zeuthen (zeuthen) wrote :

Let's also track the work needed for MD (multidisk, e.g. RAID) here

Revision history for this message
In , JohnFlux (johnflux) wrote :

Created an attachment (id=9747)
Implementation of soft raid (md) that reads from /proc/mdstat

This is an implementation of reading from /proc/mdstat from kde's ksysguard. It borrows heavily from the 'offical' mdadm program so logic wise it's up to date. It won't compile by itself, but the important parts of the two functions scanForArrays and getMdadmDetail. The other functions are just for ksysguardd. I've left them in just in case it helps anyone.

Revision history for this message
In , Zeuthen (zeuthen) wrote :

Added support for Linux RAID with this patch (check out the screenshots linked from the commit text!)

http://gitweb.freedesktop.org/?p=hal.git;a=commit;h=c53f3e46e53204bb1d1910b7fbbd81edaf61c29b

Do we need more properties that these? I also (almost) avoid parsing /proc/mdstat since most of the stuff we need is in sysfs already.

Anyway, device-mapper / LVM support shouldn't be too hard to add and it will even work with stacks containing both md and dm etc. I'll add that soon.

Revision history for this message
In , Luka Renko (lure) wrote :

Any update on devicemapper/LVM support?

Revision history for this message
In , Florent Mertens (givre) wrote :

i did some works on it, and send my current patch to
the mailling list for review :

http://lists.freedesktop.org/archives/hal/2007-October/009815.html

Revision history for this message
Jimmy Angelakos (vyruss) wrote :

I don't know if this is relevant but the Desktop CD also does not recognise LVM partitions that another silly distro insists on creating by default.

Revision history for this message
In , Jaroslav Reznik (jreznik) wrote :

What is the current state of this bug or better feature request? I'm packaging some software (kio-sysinfo) which depends on volume info from Solid/HAL on Fedora 9. But default installation method of Fedora is to install to LVM. It seems that proposed patch was refused... Basic support of LVM would be very nice.

Revision history for this message
Nicola Lunghi (nicola.lunghi) wrote :

What is the status of this bug?

I have bmpx player in ubuntu that not recognize my disk (I have switched to ubuntu intrepid + lvm last week)
from the changelog on bugs.freedesktop seems that anyone work on this bug anymore....

i cannot do this myself (i'm not aprogrammer!!) but please work on that!!

Thank you for your good work!

Revision history for this message
In , chantra (chantra) wrote :

yeah, that would be nice to have LVM/Raid supported by HAL.
As anybody reviewed the patch at all?

Revision history for this message
In , chantra (chantra) wrote :

Created an attachment (id=20657)
hal_mount_lvm.patch

ported patch from comment#8 to hal-0.5.11~rc2

HAL will detect the volumes. Would be nice to see this included in hal.

Revision history for this message
In , Felipe Contreras (felipec) wrote :

Is anything wrong with the patch?

Revision history for this message
In , Daniel Dumitrache (dandu) wrote :

just checked the patch from comment #11 and it works fine for me. any plans for merging it?

Revision history for this message
In , Felipe Contreras (felipec) wrote :

What can I do to help get this fixed?

Revision history for this message
mirekm67 (mieszcz) wrote :

The same problem exists for all partitions created using dmraid, and for dmcrypt too.

Changed in bmpx:
status: New → Invalid
Revision history for this message
In , John Beranek (john-redux) wrote :

In reply to questions about there being anything wrong with the patch, and being possibly pedantic, there do seem to be whitespace issues in the patch...

Revision history for this message
In , Felipe Contreras (felipec) wrote :

(In reply to comment #15)
> In reply to questions about there being anything wrong with the patch, and
> being possibly pedantic, there do seem to be whitespace issues in the patch...

You cannot be serious.

Is that the reason why nobody has merged this in the past 7 months? If yes, it's a pretty lame reason, if no, then what's the point of fixing the whitespace issues if nobody is going to merge it?

Revision history for this message
In , Martin Pitt (pitti) wrote :

Since hal is obsolete now, and dk-disks has great support for MD, this is pretty much moot now. -> should this be "WONTFIX"?

Revision history for this message
In , Felipe Contreras (felipec) wrote :

I'm not sure how, but at least in Fedora 11 LVM volumes are detected correctly :)

Changed in hal:
status: In Progress → Confirmed
Revision history for this message
In , Suse (suse) wrote :

Hi,

I'm trying to describe a terrible situation:

KDE4's dolphin can't trash files from Raid/lvm-volumes without breaking the specification. (http://www.ramendik.ru/docs/trashspec.html)

That means it will move the filed over partition boundaries.
Trashing big files (movies) is obviously is big problem (slowly and filling home partition)

OK, there are already some bug reports out there and all are pointing to this bug.

But the problem is that dolphin relies on hal, hal won't be fixed (but a patch is available!) and hal is obsolete.
However, devicekit isn't used by dolphin. (I don't know, if this statement is correct. I just know that is doesn't work is it should.)

(I installed openSUSE 11.2 Milestone 6, installed devicekit, add RAID1-Volume, /usr/bin/devkit-disks --mount /dev/md0 video, trash file ~/video/foobar, but it moves to home partion instead of ~/video/trash-$userid)

My preferred solution is enable RAID/LVM support in HAL.
if not, which steps are necessary to fix the user's problem?

regards
Dominik

PS: bug reports:
https://bugzilla.novell.com/show_bug.cgi?id=529790
"KDE4.3.0: throwing files into trash moves them over partition boundaries."

https://bugs.kde.org/show_bug.cgi?id=178479
"trash io slave does not use $topdir/.Trash or $... "

https://bugs.kde.org/show_bug.cgi?id=177023
"Dolphin doesn't fully implement freedesktop.org... "

Changed in hal:
importance: Unknown → Medium
Changed in hal:
importance: Medium → Unknown
Changed in hal:
importance: Unknown → Medium
Revision history for this message
In , Martin Pitt (pitti) wrote :

I'd like to clean my bug list a bit. This is certainly ooooold cruft.

Changed in hal:
status: Confirmed → Won't Fix
Revision history for this message
dino99 (9d9) wrote :
Changed in hal (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.