Symlink are using both locations?
Posted
by
Tiago Rossi
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Tiago Rossi
Published on 2014-08-21T10:21:31Z
Indexed on
2014/08/21
10:29 UTC
Read the original article
Hit count: 332
symbolic-link
Ive made a research and didnt found any answers, so I decided to ask here. To make you know, the /dev/sda2 disk of my WHM/Cpanel webserver got 100% full. The /var/ folder are the /dev/sda2 and I've found the reason of that isse are the /var/lib/mysql folder.
To fix it I need to move the /var/lib/mysql folder from /dev/sda2 to /home/ where I have a lot of space in disk.
Then I used the command lines:
service mysql stop
cp -r -p /var/lib/mysql/ /home/databasesmysql/
mv /var/lib/mysql /var/lib/mysql.backup/
ln -s /home/databasesmysql/ /var/lib/mysql
service mysql start
Ok, now to check if its running at the new location I just renamed the /var/lib/mysql to /var/lib/mysql.backup and MySQL stopped working.
Also when I rename the /home/databasesmysql/ folder MySQL also stop to work.
I dont know whats happening, the symlink are using both locations?
Thanks very much.
© Ask Ubuntu or respective owner