Reputation: 2497
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.
Upvotes: 1
Views: 749
Reputation: 26
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.
Upvotes: 1
Reputation: 20566
There are several way we could understand your problem. What I can suggest is to visit your Management Portal and look for Operation Logs in Settings section to see if there is a log which shows Machine was rebooted. Withing Azure VM reboot logs with time are stored internally so if you open a contact request using Windows Azure Forum here, we sure can take look about how it is impacting to your problem.
Also when Data disk in not mounted with your Virtual Machine, can you verify if Data Disk shows part of your Virtual Machine in Windows Azure Portal within Virtual Machine Dashboard section?
Data Disk mounts does persist after the VM reboot so I am sure VM reboot could not be your problem. What I suspect is that due to some unknown issue the Virtual Machine configuration is leaving the data disk either after the reboot or a Reboot is caused after the problem which return unmounted disk as result. IF you contact Azure VM Support through forum and report problem, I sure can take a look.
Upvotes: 0