Hey all,
Somewhat new to freeBSD here. Apologies in advance if this question is already answered somewhere (I have looked) or if this isn't the right venue. If that is the case, kindly let me know!
Anyhow, so I have a FreeBSD 13.1 server hosting a bunch of jails and some Bhyve VMs. I created and manage the VMs with CBSD. I've recently started to encounter an issue where, upon booting the host, the folders (well, technically, zfs volume mountpoints) containing VM data are empty, save for a lone `traffic/` folder. If I query them via `cbsd bls`, CBSD complains about not being able to open the local.sqlite database file for each VM (because it's gone).
Luckily, the data is not lost, and soft-restarting via `init 1` (and then bypassing the root login prompt) restores these folders, and the VMs work fine.
The host doesn't get rebooted often, in fact I was only doing so because I was messing with some stuff in /etc/gettytab (wanted something pretty to look at on tty0 and was hooking it up to display htop --readonly) and wasn't sure how to see my results without restarting everything. But then I had some weird power fluctuations today that triggered a reboot and upon booting up all the VMs were "gone".
When I am in this state, zfs list reports the volumes as mounted at their correct mountpoints. (The zvol "vhd file" for each VM is also there, with no mountpoint)
I'm not really sure what can cause a folder to appear to be empty short of unmounting the mountpoint; I can't say this is a failure mode I've seen in any of the filesystems I've worked with a bunch.
Poking around /var/log/messages, I see a bunch of what appear to be normal-looking bootup messages for bhyve (again, not very familiar with what is normal here), and nothing that appears like a VM failed to start. Yet `cbsd bstart` shows errors.
Can someone clue me in to what is happening here? Or some hints on how to go about fixing it?
Thanks!
Somewhat new to freeBSD here. Apologies in advance if this question is already answered somewhere (I have looked) or if this isn't the right venue. If that is the case, kindly let me know!
Anyhow, so I have a FreeBSD 13.1 server hosting a bunch of jails and some Bhyve VMs. I created and manage the VMs with CBSD. I've recently started to encounter an issue where, upon booting the host, the folders (well, technically, zfs volume mountpoints) containing VM data are empty, save for a lone `traffic/` folder. If I query them via `cbsd bls`, CBSD complains about not being able to open the local.sqlite database file for each VM (because it's gone).
Luckily, the data is not lost, and soft-restarting via `init 1` (and then bypassing the root login prompt) restores these folders, and the VMs work fine.
The host doesn't get rebooted often, in fact I was only doing so because I was messing with some stuff in /etc/gettytab (wanted something pretty to look at on tty0 and was hooking it up to display htop --readonly) and wasn't sure how to see my results without restarting everything. But then I had some weird power fluctuations today that triggered a reboot and upon booting up all the VMs were "gone".
When I am in this state, zfs list reports the volumes as mounted at their correct mountpoints. (The zvol "vhd file" for each VM is also there, with no mountpoint)
I'm not really sure what can cause a folder to appear to be empty short of unmounting the mountpoint; I can't say this is a failure mode I've seen in any of the filesystems I've worked with a bunch.
Poking around /var/log/messages, I see a bunch of what appear to be normal-looking bootup messages for bhyve (again, not very familiar with what is normal here), and nothing that appears like a VM failed to start. Yet `cbsd bstart` shows errors.
Can someone clue me in to what is happening here? Or some hints on how to go about fixing it?
Thanks!