Closed bingosummer closed 9 years ago
Should I expect the VM automatically come to running state after the stopping/starting operation?
Nope since ephemeral disk is lost.
If so, how should I fix the failing state?
you can run bosh recreate job_name job_index
If not, should I delete the failing VM, recreate one and attach the persistent disk manually?
nope, just let bosh recreate do that for you.
Maybe the same issue happened in AWS?
yes it does.
BOSH expects that machines that were stopped outside of its control will be brought up through BOSH, either automatically via resurrector or manually via bosh cck/recreate.
Thanks @cppforlife for your quick response and kindly help.
I use
bosh
to deploy a multi-vm cloud foundry, and there are two runners for DEA.I stopped
runner_z1/1
and started it. I expectrunner_z1/1
automatically come torunning
state, but it was alwaysstarting
andfailing
.I ssh into
runner_z1/1
.The executable does not exist because the directory
/var/vcap/data
is lost during the stopping\starting of VM. (/dev/sdb2 is an ephemeral disk)So my question is: Should I expect the VM automatically come to
running
state after the stopping/starting operation? If so, how should I fix thefailing
state? If not, should I delete the failing VM, recreate one and attach the persistent disk manually?Thanks