Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

dmsetup remove a flashcache device whose cache mode is writethrough or writearound would hang or reboot the host #222

@areschen2015

Description

@areschen2015

[root@stor01 ~]# flashcache_create -p thru -b 8k cachethru /dev/vgssd101/lvssd /dev/vgdata101/lvhdd
cachedev cachethru, ssd_devname /dev/vgssd101/lvssd, disk_devname /dev/vgdata101/lvhdd cache mode WRITE_THROUGH
block_size 16, cache_size 0
ISE metadata will use 30MB of your 7822MB main memory
[root@stor01 ~]# dmsetup table cachethru
0 209715200 ise conf:
ssd dev (/dev/vgssd101/lvssd), disk dev (/dev/vgdata101/lvhdd) cache mode(WRITE_THROUGH)
capacity(10240M), associativity(512), data block size(8K)
skip sequential thresh(0K)
total blocks(1310720), cached blocks(0), cache percent(0)
nr_queued(0)
Size Hist: 512:369097 4096:4974564
[root@stor01 ~]# dmsetup remove cachethru

Then the host hangs without no response.
Other host would reboot without any messages in /var/log/messages, and this cache device is removed successfully.
The same issue as writearound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions