Before moving the data do an ls -aliZ /var/lib/ | grep -i  mysql   and use the same security context accordingly once you move it to new server/partition  using  "chcon"

Regards
Majoosh


On Wed, Sep 23, 2015 at 11:53 AM, Peter Ross <petrosssit@gmail.com> wrote:
Hi all,

one of my "lingering issues" since I am back working in Linuxland (especially CentOS):

I have the "habit" to have dedicated virtual disks (or similar) for data, e.g. /var/lib/mysql (so I can snapshot them separately, clone and move between VMs etc.) 

But that makes SELinux unhappy. I was surprised, actually..

What do I have to add to the SELinux contexts to allow this to happen?

Regards
Peter


_______________________________________________
luv-main mailing list
luv-main@luv.asn.au
http://lists.luv.asn.au/listinfo/luv-main