Verify on the sysmgmt wich server is affected (if master or slave) on the “Hosts & Components” section; it will be marked as “down” or “out of sync”, in the former case verify first that the machine is up and running.
For both MySQL and MongoDB there is always a “Master” and “Slave”, make sure to check who is who before proceeding.
This works for both Config(Config1/Config2) and Reporting(DB1/DB2) DBs.
mysql -u super -p*password*
SHOW SLAVE STATUS;
/usr/lib/servicepattern/setup/sp_servers.sh stop
STOP SLAVE; EXIT;
'df -h' → this is to check disk utilization and where a disk is mounted,
for example, if we see the following situation:
Filesystem Size Used Avail Use% Mounted on
Disk1 100G 73G 27G 73% /
Disk2 300G 30G 270G 10% /mnt
Is much better to put the backup in the second disk, so anywhere in the /mnt folder.
(**This is only an example, you will not see those disks in the actual machines**)
mysqldump -u super -p*password* --host=*DB1 hostname* --all-databases > /*path*/*to*/*file*.sql
SHOW databases; DROP DATABASE *database name*;
mysql -u super -p*password* < /*path*/*to*/*file*.sql