Today upgraded the system configuration, so in the Aliyun.com management console manually restart the server, restart, SSH login up again, the first feeling is scared, Murphy reboot after my data disk lost?
[Root@www-baidufe-com ~]# Df-hl
File system capacity has been used available with percent mount point
/DEV/XVDA1 20G 2.9G 16G 16%/
Tmpfs 245M 0 245M 0%/dev/shm
So I hastened to check the disk status:
[Root@www-baidufe-com ~]# fdisk-l | grep Disk
disk/dev/xvda:21.5 GB, 21474836480 bytes
Disk identifier:0x00073f45
disk/dev/xvdb:10.7 GB, 10737418240 bytes
Disk identifier:0xc8df244c
It's all right.
Hang up again.
[Root@www-baidufe-com ~]# mount/dev/xvdb1/alidata/
Check the disk condition again and come back.
[Root@www-baidufe-com ~]# Df-hl
File system capacity has been used available with percent mount point
/DEV/XVDA1 20G 2.9G 16G 16%/
Tmpfs 245M 0 245M 0%/dev/shm
/DEV/XVDB1 9.9G 4.2G 5.2G 45%/alidata
Avoid after restart, but also so come back, simply put the mount point to/etc/fstab file: Open the file, yy and P, a simple change can be.
Start a bunch of services
# Start SVN
Svnserve-d-r/alidata/svn-repos
# start Nginx
./alidata/server/nginx/sbin/nginx
# Start PHP-FPM
./alidata/server/php/sbin/php-fpm Start
# start MySQL
Service mysqld Start
Give Aliyun a suggestion.
Since this reboot button is the management console, you should make the console more intelligent, such as:
Automatically create a snapshot before restart (no need to back up data, only backup configuration, all currently open services)
Restart after the snapshot is complete
Restart quickly restores all system configurations and starts all services by following the previous snapshot
Restart complete
Or is:
Add some easy operations to the management console (backup configuration, disk mount, etc.)
Before restarting, the frame tells the user: "Restart everything again, please back up some things, and so on ..."
After reboot, the frame tells the user: The reboot is successful, please click the button here to restore all of your services (so you do not have to go step-by-step to find those services, such as Nginx, PHP-FPM, SVN, etc.)