{"id":3346,"date":"2012-04-29T22:26:04","date_gmt":"2012-04-29T19:26:04","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=3346#post-"},"modified":"2012-04-29T22:27:43","modified_gmt":"2012-04-29T19:27:43","slug":"udev-rules-to-own-a-dm-disk","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2012\/04\/29\/udev-rules-to-own-a-dm-disk\/","title":{"rendered":"Udev rules to own a dm disk"},"content":{"rendered":"<p>Just making this big mental\/virtual note of <a href=\"http:\/\/geofft.mit.edu\/blog\/post\/100\">how to assign LVM volumes&#8217; ownership<\/a>: a \/etc\/udev\/rules.d\/99-my-volume.rules with the following contents:<\/p>\n<pre><code>SUBSYSTEM==\"block\",KERNEL==\"dm-*\",ACTION==\"add|change\",ENV{DM_NAME}=\"my-devicemapper-volume-name\",OWNER=\"myusername\",GROUP=\"myusergroup\"<\/code><\/pre>\n<p>Also, this trigger comes handy to test the changes:<\/p>\n<pre><code>sudo lvchange -an my-volume-group\/my-volume\r\nsudo lvchange -ay my-volume-group\/my-volume<\/code><\/pre>\n<p><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:151,&quot;href&quot;:&quot;http:\\\/\\\/geofft.mit.edu\\\/blog\\\/post\\\/100&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20130208081150\\\/http:\\\/\\\/geofft.mit.edu:80\\\/blog\\\/post\\\/100&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-10-05 14:57:53&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-10-10 14:05:31&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-10-18 11:39:41&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-10-18 11:39:41&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just making this big mental\/virtual note of how to assign LVM volumes&#8217; ownership: a \/etc\/udev\/rules.d\/99-my-volume.rules with the following contents: SUBSYSTEM==&#8221;block&#8221;,KERNEL==&#8221;dm-*&#8221;,ACTION==&#8221;add|change&#8221;,ENV{DM_NAME}=&#8221;my-devicemapper-volume-name&#8221;,OWNER=&#8221;myusername&#8221;,GROUP=&#8221;myusergroup&#8221; 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<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3346","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=3346"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3346\/revisions"}],"predecessor-version":[{"id":3348,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3346\/revisions\/3348"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}