I am facing a strange error. I had my mongo instance up and running yesterday. The data was in /mnt/mongo/db and I am launching it through AWS.
The only activity I did is I stopped the machine for creating an AMI copy, and then restarted. Would this cause /mnt/mongo/db to vanish? Have any of you had such an experience? As the entire data has vanished, this is causing concern about going productive with this setup. Any help appreciated.
Additional details: According to a documentation I read, "Any contents on the instance’s former ephemeral storage were wiped and you are given fresh ephemeral storage (often mounted as /mnt)" But when I look up the instance, the root device is listed as "ebs" and should be backing up from the ephemeral storage.
Any thoughts on what might be going wrong with my setup?
df shows:
/dev/xvda1 8256952 5154808 2682716 66% /
udev 840532 4 840528 1% /dev
tmpfs 339352 192 339160 1% /run
none 5120 0 5120 0% /run/lock
none 848376 16 848360 1% /run/shm
/dev/xvdb 153899044 406996 145674424 1% /mnt
However, this is confusing, as the ones that show up on AWS console are xvda1 and xvdf. I am not sure where is /dev/xvdb coming from. I will change to /dev/xvdf and see if the data is persisted.