diff --git a/gdeployfeatures/lv/lv.json b/gdeployfeatures/lv/lv.json index 8324ae4e..90da94cf 100644 --- a/gdeployfeatures/lv/lv.json +++ b/gdeployfeatures/lv/lv.json @@ -116,6 +116,11 @@ "required": "false", "name": "ignore_lv_errors", "default": "yes" + }, + { + "name": "cachemode", + "required": "false", + "default": "writethrough" } ] }, diff --git a/playbooks/cache_setup.yml b/playbooks/cache_setup.yml index 7e8d2856..5332225e 100644 --- a/playbooks/cache_setup.yml +++ b/playbooks/cache_setup.yml @@ -36,7 +36,7 @@ ignore_errors: yes - name: Setup SSD for caching | Convert an existing logical volume to a cache pool LV - lv: action=convert lvtype=cache-pool + lv: action=convert lvtype=cache-pool cachemode="{{ cachemode }}" poolmetadata="{{ cache_meta_lv }}" poolmetadataspare=n vgname="{{ vgname }}" lvname="{{ cache_lv }}" force="{{ force }}" ignore_errors: yes