I have a Cent OS VM instance running on Windows Azure. I have a 1TB data drive mounted to that VM to hold an application's database files. Every week or so at inconsistent intervals, my database crashes and I find that my data drive has been automatically, and without my permission, unmounted.
My data drive still exists with all the data in tact. I have to log in and remount "sudo mount /dev/sdd1 /mount/datadrive". This is frustrating and harmful to my data and the processes that use it.
Also there's nothing in the logs prior to the unmounting and nothing about the drive being unmounted. It's like my drive gets unmounted and the logs get wiped clean. I'm not a linux expert. Do logs get wiped on a reboot? Is my machine getting rebooted and my drives not being re-mounted?
What am I doing wrong? Any idea why this is happening? How can i make it stop? Thanks.
See http://www.techotopia.com/index.php/Adding_a_New_Disk_Drive_to_a_CentOS_System#Configuring_CentOS_to_Automatically_Mount_a_File_System. You need to configure CentOS to automatically mount the file system.