The short question is as follows: I want to automatically set user:group permissions on a logical volume device node. By default udev assigns root:disk to all LV's.
The long story is as follows: I have VirtualBox running and I want to use LV's instead of files for the disks. It is rather easy set up an LV for use with VirtualBox, using something like:
vboxmanage internalcommands createrawvmdk -filename /home/user/.VirtualBox/HardDisks/w7rc.vmdk -rawdisk /dev/vg00/vm_Win7RC -register
So far, I've figured out that it is useless to use the FS_UUID for identifying LV's because not all Operating Systems support it (NTFS). A good option to identify my "target" LV is by LV-UUID or by name. Summarized: I want to be able to create a udev config file that tells the system to change ownership on "/dev/vg00/vm_W7RC" to user:group instead of the default root:disk.
My system: Linux diablo 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux udev version:141
Any help is welcome.