21 Aug
2014
21 Aug
'14
10:51 a.m.
You forgot to chown and chmod the mount point, but yes, sure that works. It's just a file path, nothing cares where it is physically :-)
Tom
On 08/21/2014 04:51 PM, Benoit Lambert wrote:
Can I move entire DB to another disk?
Like this? :
- Stop the daemons
- Rename the DB folder "mv /var/lib/mysql /var/lib/mysql-tmp"
- Recreate the folder "mkdir /var/lib/mysql"
- Mount the new disk to the new folder "mount -t ext4 /dev/sdb1 /var/lib/mysql" (put in fstab after)
- Copy the files from the old folder to the new folder (cp mysql-tmp/* mysql/)
- Restart the daemons.
And voila???
Thanks,
Benoit _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium