2

I usually create EC2 instances on AWS using Ubuntu 14.04 LTS. Now they change the standard edition to 16.04 LTS, that I never used before.

I need to put /var in a greater disk, to support logs, etc.

As usually, I've created the instance, mount a disk on /mnt and copy the /var to it.

After that, I remove original /var and mount the device on a new /var. It's a simple procedure.

On Ubuntu 14.04 I never had any kind of problem to do it, but on 16.04 I've had a lot of error messages like this:

cp: cannot open '/var/lib/lxcfs/cgroup/devices/user.slice/devices.allow' for reading: Permission denied

I'm doing this by root.

Any idea?

Thanks a lot.

0 Answers0