I've mounted a separate hdd to /mnt/temp, and changed datadir to point to this. I added the correct settings in apparmor and worked away with mysql for a few hours. After adding
performance_schema to my.cnf and attempting to restart mysql, I am getting the errors:
[Warning] Can't create test file /mnt/temp/some_dir/blah.lower-test ... [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable ...
chmod -R 777 /mnt/temp, shut down app armor, remounted the partition, manually killed any processes that would be interacting with the partition, and removed
performance_schema from my configuration.