Hello all,
The article I posted didn't help me to resize the disk, it is for resize the machine, get a better one with the same disk.
At Google Cloud Docs I found how to resize a persistent disk: Resize Disk.
It is very easy, and you don't have to resize the file system, the OS automatic resize it when you restart the instance.
Here you can see now I have 20 GB, but the WPMultisite still down, so I tried to stop and start services again as you see (mysql started, so the problem of this thread seems to be solved), but then appeared another error now with apache
claftshoes@wordpress-multisite-claft-vm:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 9.7G 9.0G 52% /
udev 10M 0 10M 0% /dev
tmpfs 119M 4.3M 115M 4% /run
tmpfs 298M 0 298M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 298M 0 298M 0% /sys/fs/cgroup
tmpfs 60M 0 60M 0% /run/user/1002
claftshoes@wordpress-multisite-claft-vm:~$ sudo /opt/bitnami/ctlscript.sh stop
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : apache not running
/opt/bitnami/php/scripts/ctl.sh : php-fpm stopped
/opt/bitnami/mysql/scripts/ctl.sh : mysql stopped
claftshoes@wordpress-multisite-claft-vm:~$ sudo /opt/bitnami/ctlscript.sh start
2017-08-01T23:11:02.394454Z mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
2017-08-01T23:11:02.396682Z mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
2017-08-01T23:11:02.417610Z mysqld_safe Starting mysqld.bin daemon with databases from /opt/bitnami/mysql/data
/opt/bitnami/mysql/scripts/ctl.sh : mysql started at port 3306
/opt/bitnami/php/scripts/ctl.sh : php-fpm started
Syntax OK
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
/opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started
claftshoes@wordpress-multisite-claft-vm:~$
claftshoes@wordpress-multisite-claft-vm:~$ sudo netstat -ltnp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 765/apache2
claftshoes@wordpress-multisite-claft-vm:~$ ps aux | grep apache2
root 765 0.0 0.7 75604 4480 ? Ss 22:49 0:00 /usr/sbin/apache2 -k start
www-data 770 0.0 0.7 495976 4824 ? Sl 22:49 0:00 /usr/sbin/apache2 -k start
www-data 771 0.0 0.8 561544 4880 ? Sl 22:49 0:00 /usr/sbin/apache2 -k start
claftsh+ 4541 0.0 0.3 12732 2092 pts/0 S+ 23:38 0:00 grep apache2
claftshoes@wordpress-multisite-claft-vm:~$
Searching for that error "(98)Address already in use: AH00072:" I found how to troubleshooting in this bitnami doc
It says that there is another service using this port, but the service is apache2, so I don't know i there was a second apache running and using that por or what, maybe you bitnami guys can explain it better.
I tried to restart services but the apache problem still there.
Looking for a solution, I found in this post that a sudo pkill
command worked for him. So I stoped all services and run this:
sudo pkill -f apache
sudo /opt/bitnami/ctlscript.sh start
And now the site is up and running again.
I hope this could be useful for someone.
I suggest you to avoid the recommended backup process of this post, as it will run out your storage in 5 backups.
I will try to do snapshots from google cloud
Thanks all for your help
Andrés