Skip to contentSkip to conversation

persistent value of tunables for dmsetup --target=cache ?

linux-lvm nikhil 3 participants 3 messages Apr 21, 2015 – Apr 22, 2015

lore
Share & tools
lore

nikhil

author
#0 lore raw

Hello,

how do I ensure that the tunable (for eg. dmsetup message vg02-jetcache_lv 0 write_promote_adjustment 0) will remain the same value even after reboot?

Seems like the tunables values reset to earlier values upon reboot of the machine.

Help! :)

#1 lore raw

Dne 21.4.2015 v 10:58 nikhil napsal(a):

Quoted 9 lines

Hello,

how do I ensure that the tunable (for eg. dmsetup message vg02-jetcache_lv 0 write_promote_adjustment 0) will remain the same value even after reboot?

Seems like the tunables values reset to earlier values upon reboot of the machine.

Help! :)

By using them, when you create/load dm table for your cache target.

Zdenek

#2 lore raw
Quoted 6 lines · Zdenek Kabelac

Dne 21.4.2015 v 10:58 nikhil napsal(a):

Quoted 5 lines

Hello,

how do I ensure that the tunable (for eg. dmsetup message vg02-jetcache_lv 0 write_promote_adjustment 0) will remain the same value even after reboot?

Quoted 7 lines
Quoted 4 lines

Seems like the tunables values reset to earlier values upon reboot of the machine.

Help! :)

By using them, when you create/load dm table for your cache target.

Best to use lvm2 to create/configure/tune dm-cache. Otherwise, if you're just using the dmsetup interface directly you won't have your tunings persist.