Save to use 'clear_cache' in mount -o remount?
Hi,
is it safe (has it an effect?) to use the 'clear_cache' option in a 'mount -o remount'? I recognize messages in my kernel log regarding 'BTRFS info (device dm-7): The free space cache file (31215079915520) is invalid. skip it'. I would like to fix it and would do it (in best case) without rebooting.
Bye
Frank
Quoted 6 lines · Cloud Admin
Hi,
is it safe (has it an effect?) to use the 'clear_cache' option in a 'mount -o remount'? I recognize messages in my kernel log regarding 'BTRFS info (device dm-7): The free space cache file (31215079915520) is invalid. skip it'. I would like to fix it and would do it (in best case) without rebooting.
It is safe and the cache is immediately rebuilt. You will see 'space_cache,clear_cache' as mount options, which is normal and you can ignore. I just tried this with a remount and I get the expected messaging.
[ 400.465624] BTRFS info (device sda7): force clearing of disk cache [ 400.465639] BTRFS info (device sda7): disk space caching is enabled
Chris Murphy