Bug#606124: lvm2: Should have an easy way to persistently set device owner/group/permissions

Alasdair G Kergon agk at redhat.com
Mon Dec 6 15:55:01 UTC 2010


On Mon, Dec 06, 2010 at 04:29:57PM +0100, Maik Zumstrull wrote:
> As far as I can see, all lvm2 block devices are owned by root:disk and 0660 and
> there is no easy way to change it. chown/chmod is lost on reboot when udev
> recreates the node. Writing your own udev rules is very iffy, as you would need
> a thorough understanding of how Debian orders the rules and includes them in
> initramfs.
 
Upstream provides straightforward udev rule templates with examples showing how
to do this.

  http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/LVM2/udev/12-dm-permissions.rules?rev=1.6&content-type=text/plain&cvsroot=lvm2

> I think lvcreate should have simple options for owner, group and permissions,
> with the current situation as the default when not specified, and the necessary
> udev magic to make the settings stick across reboots.
 
There are no plans to do this upstream.

Alasdair






More information about the pkg-lvm-maintainers mailing list