1: Cause
Today, when I was on a customer’s bastion machine, I found that the previously deployed programs and database data had disappeared. amazing! ! But looking at the historical data is not like deleting the data manually because the entire directory is gone.
Two: process
Found that there are partition data under fdisk -l
But the disk is still not found under df -h
So I judged that the hard disk mounting information was not added to the system environment, which caused the hard disk to be unable to be remounted after the server restarted.
So we mount the hard disk first
mount /dev/vdb /opt/calis/
Found that df -h has a hard disk
To prevent restarting the server next time, reproduce this situation
Add hard disk information to the system environment
vim /etc/fstab
View hard drive format
df -T
Just add the information to /etc/fstab, and you won't be afraid of restarting the server next time.