Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lvm2 device node owner and permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
langa
n00b
n00b


Joined: 21 May 2006
Posts: 11
Location: Melbourne Aust

PostPosted: Wed Jun 06, 2007 5:26 am    Post subject: lvm2 device node owner and permissions Reply with quote

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
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Fri Jun 08, 2007 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Fri Jun 08, 2007 6:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum