Is it safe to add LVM cache device to existing LVM volume group while filesystem is mounted?
1
vote
1
answer
737
views
I have an existing LVM volume group with a 10 TB logical volume mounted as an ext4 system which is actively in use.
**Is it safe to run the command
lvconvert --type cache --cachepool storage/lvmcache-data storage/data
while ext4 filesystem is already mounted on storage/data
?** (The storage/lvmcache-data
has been previously configured with lvconvert --type cache-pool --cachemode writeback --poolmetadata storage/lvmcache-metadata storage/lvmcache-data
in case it makes a difference.)
I would assume yes, it's safe to add cache on-the-fly to online volume with mounted filesystem, but I couldn't find documentation either way.
Asked by Mikko Rantalainen
(4399 rep)
Mar 7, 2024, 02:55 PM
Last activity: Feb 12, 2025, 05:44 PM
Last activity: Feb 12, 2025, 05:44 PM