Data lost on one of my VM instances

851 views
Skip to first unread message

Joel Mandébi

unread,
Jan 22, 2017, 10:56:49 PM1/22/17
to gce-discussion
Hey I'm facing a strange problem.

One of my VM instances just lost all its data. I had some java applications running. Without any apparent reason, all the applications just stopped working. When I remotely accessed my VM by SSH, all my data had been erased, only the operating system and applications installed in the operating system are still there. Even the "apt-get" isn't working anymore (Look at a copy of my terminal down here).

-bash-4.2$ apt-get install java
-bash: apt-get: command not found
-bash-4.2$ 

 Finally I'm seeing "bash-4.2$ " in the prompt instead of my username. I'm really confused about what is actually going on. Can anyone help me? 

Thanks in advance


Paul Nash

unread,
Jan 22, 2017, 11:01:32 PM1/22/17
to Joel Mandébi, gce-discussion
Hi Joel, sorry to hear that. Hard to say if this is an application level issue or a system issue. For starters, can you tell us more about the VM? Like, what region/zone is it running in? Do you just have one disk attached? Is this a normal VM, or preemptible? How did you create the VM, e.g., did you create it from Cloud Launcher, or is it created from gcloud or the web console? What other software was running on the machine, and how long was the VM successfully running for before this? Is there anything ti indicate that it has reboot recently, or any information in the system logs indicating a problem? How was your data stored (database, on disk somewhere, etc)?

I don't have any immediate answers, but these details might help the support team brainstorm what the issue could be.

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/9de53e43-b92d-41d4-b5d1-9d0e19ad6112%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Paul R. Nash | Product Manager, Compute Engine | paul...@google.com | 206-876-1620

Joel Mandébi

unread,
Jan 22, 2017, 11:26:44 PM1/22/17
to gce-discussion, joelm...@gmail.com
Thanks for you answer.

Well I'm doing some java web development so I installed Glassfish server 4.1 and Mysql. Everything was fine until the hard drive of the VM got almost full. The Web application started becoming slow and I couldn't connect using ssh so I rebooted the VM 2 days ago. I then could connect remotely to free some space(deleted unused files...). The same problem happened again today so I rebooted the computer but this time everything had just disappeared when I got to the VM using SSH.

Details about the VM
- Machine type: n1-standard-2 (2 vCPUs, 7.5 GB memory)
-CPU platform: Intel Sandy Bridge
- region/zone: us-central1-a
- I have a "standard persistent disk" of 25 GB from which the system boots and another one of 20 GB
- It is a normal VM
- A created the VM from the web console
- Data were stored in a Mysql database and also I had some files on the disk 



Le dimanche 22 janvier 2017 22:01:32 UTC-6, Paul Nash a écrit :
Hi Joel, sorry to hear that. Hard to say if this is an application level issue or a system issue. For starters, can you tell us more about the VM? Like, what region/zone is it running in? Do you just have one disk attached? Is this a normal VM, or preemptible? How did you create the VM, e.g., did you create it from Cloud Launcher, or is it created from gcloud or the web console? What other software was running on the machine, and how long was the VM successfully running for before this? Is there anything ti indicate that it has reboot recently, or any information in the system logs indicating a problem? How was your data stored (database, on disk somewhere, etc)?

I don't have any immediate answers, but these details might help the support team brainstorm what the issue could be.
On Sun, Jan 22, 2017 at 7:52 PM, Joel Mandébi <joelm...@gmail.com> wrote:
Hey I'm facing a strange problem.

One of my VM instances just lost all its data. I had some java applications running. Without any apparent reason, all the applications just stopped working. When I remotely accessed my VM by SSH, all my data had been erased, only the operating system and applications installed in the operating system are still there. Even the "apt-get" isn't working anymore (Look at a copy of my terminal down here).

-bash-4.2$ apt-get install java
-bash: apt-get: command not found
-bash-4.2$ 

 Finally I'm seeing "bash-4.2$ " in the prompt instead of my username. I'm really confused about what is actually going on. Can anyone help me? 

Thanks in advance


--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.

---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.

Carlos (Cloud Platform Support)

unread,
Jan 23, 2017, 7:27:03 PM1/23/17
to gce-discussion, joelm...@gmail.com

Hi Joel,


Have you checked the messages on the serial console? You can get them from the CLI or by accessing your Cloud Console -> Compute Engine-> VM Instances -> “your VM” -> View Serial Port.   The output might provide additional information. What does your application logs indicate?.   I can only think on one scenario where information is deleted: using Local SSDs and stooping or deleting the VM.


Reply all
Reply to author
Forward
0 new messages