This probably is avoidable by using stable device names, e.g. from /dev/disk/by-uuid/
As a hacky workaround, edit the unit state to sync the agents notion of device names to the current disk device names:
juju ssh ceph-osd/X sudo apt install sqlite sudo systemctl stop jujud-unit-ceph-osd-X sudo cp -a /var/lib/juju/agents/unit-ceph-osd-X/charm/.unit-state.db ~ # backup sudo sqlite3 /var/lib/juju/agents/unit-ceph-osd-X/charm/.unit-state.db sqlite> update kv set data='["/dev/nvme0n1", "/dev/nvme1n1", "/dev/nvme3n1"]' where key="osd-devices"; sudo systemctl start jujud-unit-ceph-osd-X
This probably is avoidable by using stable device names, e.g. from /dev/disk/by-uuid/
As a hacky workaround, edit the unit state to sync the agents notion of device names to the current disk device names:
juju ssh ceph-osd/X ceph-osd- X juju/agents/ unit-ceph- osd-X/charm/ .unit-state. db ~ # backup juju/agents/ unit-ceph- osd-X/charm/ .unit-state. db "/dev/nvme0n1" , "/dev/nvme1n1", "/dev/nvme3n1"]' where key="osd-devices"; ceph-osd- X
sudo apt install sqlite
sudo systemctl stop jujud-unit-
sudo cp -a /var/lib/
sudo sqlite3 /var/lib/
sqlite> update kv set data='[
sudo systemctl start jujud-unit-