- Create volume in AWS console (doublecheck Availability Zone! should be the same as instance!)
- Attach volume ( xvdf, for example)
- Check that volume was attached and that it has no filesystem. (/dev/xvdf: data - means no FS)
- Create FS:
- Create dir and mount the new volume:
- get UUID of the new vol:
- Change fstab, add the new line:
- Stop service mysql, copy datafiles
- Create log dir for logs and errors
- Edit config files:with this:
- Restart services
- Check for errors:
среда, 7 июня 2017 г.
MySQL DB: attaching new vol + moving mysql files to a new vol
Подписаться на:
Комментарии к сообщению (Atom)
Bash: MySql backup (file per db), restore+ users and privileges
Backup Mysql DB (file per db) #!/bin/bash USER="root" databases=`mysql -u $USER -e "SHOW DATABASES;" | tr -d "|...
-
twilio.com - create account put some $$$$ Ger SID and Token in account Use them in script to get the number to sent SMS from 1) Get the...
-
1) Create Mysql RDS 2) yum install mysql 3) check the connection : mysql -h <name of endpoint in RDS> -u root -p PASSWORD cr...
-
There are 2 options to optimize elasticsearch storage. We use it in ELK stack. The easiest way to do this is to use curator . L...
Комментариев нет:
Отправить комментарий