Is it safe to symlink complete /var directory
Is it safe to move complete /var directory in separate partition and create symlink to it?
mv /var /mnt/storage
ln -s /mnt/storage /var
Distribution is Google Cloud CentOS Image
I do not want to use bind mount due the following reasons:
https://unix.stackexchange.com/questions/49623/are-there-any-drawbacks-from-using-mount-bind-as-a-substitute-for-symbolic-lin
I don't know any reason that this shouldn't work. Symlinks are a standard feature of Linux filesystems, that are recognized and used correctly by every utility I know of.
I've never symlinked all of /var, but I've done large parts of it. It worked fine. Just make sure the permissions are set correctly on /mnt/storage.