[dm-devel] [RFC] zodcache - auto-start dm-cache devices
Ian Pilcher
arequipeno at gmail.com
Fri Dec 18 17:39:13 UTC 2015
On 12/18/2015 10:55 AM, Ian Pilcher wrote:
> Currently you'll need multiple zodcache devices to create multiple VGs.
> It should be possible to make these devices partitionable with a udev
> rule that calls kpartx as appropriate.
This seems to work:
SUBSYSTEM!="block", GOTO="zodcache_end"
ACTION=="remove", GOTO="zodcache_end"
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="zodcache_end"
KERNEL=="fd*|sr*", GOTO="zodcache_end"
# Look for a zodcache superblock on the device and start it if found
RUN+="/usr/sbin/zcstart --udev $tempnode"
# Process partition tables on zodcache devices (but not components)
ENV{DM_NAME}!="zodcache-*", GOTO="zodcache_end"
ENV{DM_NAME}=="*-origin", GOTO="zodcache_end"
ENV{DM_NAME}=="*-cache", GOTO="zodcache_end"
ENV{DM_NAME}=="*-metadata", GOTO="zodcache_end"
ENV{ID_PART_TABLE_TYPE}=="dos", RUN+="/usr/sbin/kpartx -a $tempnode"
LABEL="zodcache_end"
--
========================================================================
Ian Pilcher arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
More information about the dm-devel
mailing list