-
Notifications
You must be signed in to change notification settings - Fork 20
How to safely upgrade the kernel module
Akira Hayakawa edited this page Sep 5, 2016
·
7 revisions
Writeboost releases new version in months or weeks. New release typically includes improvements, fixing or enhancements. Basically, I recommend users to always upgrade to the latest version. We can upgrade the installed version safely because Writeboost is just a caching module.
The safest and recommended way to upgrade Writeboost is:
- Write back all dirty cache blocks to the backing store.
- Unmap caching. (
dmsetup remove
) - Zero out the first sector of the caching device to reformat it.
- Upgrade Writeboost.
- Reboot.
- Reconstruct Writeboost'd device.
If you are stick to this upgrade procedure, you are completely free from unnoticed lack of compatibility.
Another benefit of this upgrade procedure is you can avoid taking much time on log-replay because you reformat the caching device, which is executed at reconstruction time.
Dmitry Smirnov's management tool (https://gitlab.com/onlyjob/writeboost) implements this best-practice procedure.