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