latest/edge MicroCloud always sets instances.migration.stateful=true which makes custom storage volumes from non-remote storage pools (dir, zfs, btrfs) unusable. This is especially painful for the local storage pool.
A user would need to explicitly set migration.stateful=false on every instance to which a custom storage volume from a non-remote pool should be attached.
To work around this there are several options:
- (1) Set
instances.migration.stateful=true only in case no local storage got configured.
- No additional action required by the user
- Live migration is enabled on server level
- Drawback:
- If a local storage pool gets configured, a user would have to manually enable live migration on server level or per instance
- (2) Set
instances.migration.stateful=true only in case remote storage got configured.
- No additional action required by the user
- Live migration is enabled on server level
- Drawback:
- No volumes from the local storage pool (if created) can be attached to any instance
- If no remote storage pool gets configured, a user would have to manually enable live migration on server level or per instance
- (3) Don't set
instances.migration.stateful
- A user would have to manually enable live migration on server level or per instance (current state in MicroCloud 2 LTS)
- (4) Always set
instances.migration.stateful=true (this is the current state in MicroCloud edge)
- No additional action required by the user
- Live migration is enabled on server level
- Drawback:
latest/edgeMicroCloud always setsinstances.migration.stateful=truewhich makes custom storage volumes from non-remote storage pools (dir, zfs, btrfs) unusable. This is especially painful for thelocalstorage pool.A user would need to explicitly set
migration.stateful=falseon every instance to which a custom storage volume from a non-remote pool should be attached.To work around this there are several options:
instances.migration.stateful=trueonly in case no local storage got configured.instances.migration.stateful=trueonly in case remote storage got configured.instances.migration.statefulinstances.migration.stateful=true(this is the current state in MicroCloud edge)lxc cluster recover(Settinginstances.migration.statefulbreaks cluster restore lxd#15218)