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:
mountsymlink
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:
Best Answer
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.