I’m trying to track down an issue that is pretty rare, but I’ve seen it at least twice. My setup is a little bit odd, in that I’m using LXD and BOSH together. BOSH itself is VM agnostic, and I wrote the CPI (aka translation layer) to interface with LXD. It seems to work very well.
However… There are times where one of the disks attached to a VM “becomes” the other disk (so I end up with two disks with the same partition scheme, etc). I don’t think the entire disk gets cloned – the subdirectories are empty as far as I could tell. At this point, my only recourse is to destroy and recreate, which isn’t optimal. (Fortunately, it’s a home lab, and so far mostly a big annoyance).
Typical setup of a VM is boot disk + ephemeral disk (software gets installed here) + persistent disk (data that “persists” goes here). In this last case, the MySQL database for Cloud Foundry lost the persistent disk – I had two disks mounted, and both were copies of the ephemeral disk.
I’m not doing any operations with BOSH, so I don’t think it’s code, per se… But I do think both times I was rebooting the hosts. (There are two – both Ubuntu – and I tend to update/reboot them together. Most of the time this is fine.)
Uncertain if there is logging that I can look at or turn on that might help? Or any suggestion would be most welcome! Part of the challenge is recreating whatever it is that is going on.
Versions:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
$ lxc version
Client version: 5.21.3 LTS
Server version: 5.21.3 LTS
Thanks!
-Rob