Udev rules to own a dm disk

Just making this big mental/virtual note of how to assign LVM volumes’ ownership: a /etc/udev/rules.d/99-my-volume.rules with the following contents:

SUBSYSTEM=="block",KERNEL=="dm-*",ACTION=="add|change",ENV{DM_NAME}="my-devicemapper-volume-name",OWNER="myusername",GROUP="myusergroup"

Also, this trigger comes handy to test the changes:

sudo lvchange -an my-volume-group/my-volume
sudo lvchange -ay my-volume-group/my-volume