
----- Original Message -----
From: "Jiri Moskovcak" <jmoskovc@redhat.com> To: devel@ovirt.org Sent: Sunday, May 4, 2014 8:08:33 PM Subject: [ovirt-devel] vdsm disabling logical volumes
Greetings vdsm developers!
While working on adding ISCSI support to the hosted engine tools, I ran into a problem with vdms. It seems that when stopped vdsm deactivates ALL logical volumes in it's volume group and when it starts it reactivates only specific logical volumes. This is a problem for hosted engine tools as they create logical volumes in the same volume group and when vdsm deactivates the LVs the hosted engine tools don't have a way to reactivate it, because the services drop the root permissions and are running as vdsm and apparently only root can activate LVs.
Can you describe what volumes are you creating, and why?
So far the only suitable solution seems to be to change vdsm to only deactivate/activate it's own LVs.
This sounds reasonable. You can add a list of hosted engine lv names and skip these volumes when deactivating vdsm volumes. Another solution is to tag hosted engine lvs, and have vdsm ignore lvs that contains this tag. Nir