Check and modify disks
Once a version of community.general
> 5.7.0 has been released which included a fix for this issue I'm planning to add the following to this role:
- Check the running VMs
- Find the running VM disk images, excluding swap
- Use
tune2fs
to get the disk features - If the disk features don't match the desired disk features (eg missing
quota
on ahome.img
disk) then:- Shutdown the VM
- Check the disks
- Run
tune2fs
on disks as needed - Check the disks
- Restart the VM
This could also perhaps include upgrading from ext3
to ext4
.
This is in order to automate the updating of features that the quota role has uncovered -- older disks need several features adding etc.