[opensuse] has anyone used lvmcache on leap15 ?
I have created the cache LV and the metadata LV and created a cache pool. When I try to associate the new cachepool with the LV: # lvconvert --type cache --cachepool /dev/Group1/music_cache /dev/Group1/music Do you want wipe existing metadata of cache pool Group1/music_cache? [y/n]: y device-mapper: reload ioctl on (253:1) failed: Invalid argument Failed to lock logical volume Group1/music.
From dmesg:
device-mapper: ioctl: can't change device type after initial table load. This is a stand-alone storage server, just in the process of being set up. -- Per Jessen, Zürich (5.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
I have created the cache LV and the metadata LV and created a cache pool.
When I try to associate the new cachepool with the LV:
# lvconvert --type cache --cachepool /dev/Group1/music_cache /dev/Group1/music Do you want wipe existing metadata of cache pool Group1/music_cache? [y/n]: y device-mapper: reload ioctl on (253:1) failed: Invalid argument Failed to lock logical volume Group1/music.
From dmesg:
device-mapper: ioctl: can't change device type after initial table load.
Trying to remove one of the cache pools I have created: # lvremove /dev/Group1/music_cache WARNING: Reading VG Group1 from disk because lvmetad metadata is invalid. Logical volume "music_cache" successfully removed -- Per Jessen, Zürich (-0.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Per Jessen wrote:
I have created the cache LV and the metadata LV and created a cache pool.
When I try to associate the new cachepool with the LV:
# lvconvert --type cache --cachepool /dev/Group1/music_cache /dev/Group1/music Do you want wipe existing metadata of cache pool Group1/music_cache? [y/n]: y device-mapper: reload ioctl on (253:1) failed: Invalid argument Failed to lock logical volume Group1/music.
From dmesg:
device-mapper: ioctl: can't change device type after initial table load.
Trying to remove one of the cache pools I have created:
# lvremove /dev/Group1/music_cache WARNING: Reading VG Group1 from disk because lvmetad metadata is invalid. Logical volume "music_cache" successfully removed
I seem to have managed to activate cachepool for LV Group1/photos. In order to do so, I had to inactivate the LV first: # lvchange -an Group1/photos WARNING: Reading VG Group1 from disk because lvmetad metadata is invalid. # lvconvert --type cache --cachepool Group1/cache1data Group1/photos WARNING: Reading VG Group1 from disk because lvmetad metadata is invalid. Do you want wipe existing metadata of cache pool Group1/cache1data? [y/n]: y Logical volume Group1/photos is now cached. Trying to re-enable the LV: # lvchange -ay Group1/photos device-mapper: create ioctl on Group1-photos_corig LVM-ChTi9Q6hJZltA6Bc482nOnhSP6xQX2JjsKU2e04Dr8uIv9X5AQuWrdZNqWRYcb0o-real failed: Device or resource busy I'll reboot the box again, but I must be missing something? -- Per Jessen, Zürich (0.4°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Per Jessen