Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Persistent disk not storing data correctly

I have a question regarding GCP Persistent Disk (SSD). I created a disk, I created a VM to which I added the disk. Then I ssh'd into the VM, I saw the disk, I formatted it and mounted it to my VM. Everything worked just fine, I was able to create some files there and use it as a normal disk. However, when I deleted the VM and created another VM some time later, mounted the same disk, the data seemed to be lost, I didn't see it.
This contradicts the name "persistent" which means I might be doing something wrong or misunderstanding something. I would be greateful for any help.

1 1 207
1 REPLY 1

Hi @GabeSB,

What was your approach for the disk partitioning, was it LVM or Standard Partitioning (mkfs.[xxx] /dev/sdX)?

I mean is hard to believe that data is been lost.