View previous topic :: View next topic |
Author |
Message |
langa n00b
Joined: 21 May 2006 Posts: 11 Location: Melbourne Aust
|
Posted: Wed Jun 06, 2007 5:26 am Post subject: lvm2 device node owner and permissions |
|
|
I have just started playing with device-mapper/lvm2.
When I activate a logical volume the device node owner is root:root with permissions set as 700 .
Is there anything I can do to make these logical volumes have the same permissions as other block devices? i.e. owned by root:disk and rw permissions for members of the disk group? udev rules perhaps?
I am trying to use a logical volume with vmware-server and am having access/permission issues.
Thanks. |
|
Back to top |
|
|
batistuta Veteran
Joined: 29 Jul 2005 Posts: 1384 Location: Aachen
|
Posted: Fri Jun 08, 2007 11:17 am Post subject: |
|
|
langa, Im' not entirely sure what your problem is. I mean, when you mount your lvm2 device-mapper node to some mount point, then you specify there the permissions. Just like with any other device. And this is usually done by root, so it shouldn't be a problem. So my advice is to mount your lvm2 point in your fstab, and set read/write permissions to your vmware group. |
|
Back to top |
|
|
RoundsToZero Guru
Joined: 17 Nov 2003 Posts: 478 Location: New York, NY
|
Posted: Fri Jun 08, 2007 6:49 pm Post subject: |
|
|
Yeah but I bet he's trying to use the whole block device directly as a VMware disk, instead of having vmdk files lying around.
You can use the GROUP and MODE directives in a udev rules file, but I don't understand the way udev handles lvm2/dm stuff. For instance, the line pertaining to device mapper says:
Code: |
# dm devices (ignore them)
KERNEL=="dm-[0-9]*", OPTIONS="ignore_device"
|
I think all the device node creation gets handled by the vgscan utility, so you could try looking there. |
|
Back to top |
|
|
|