Comment 1 for bug 1845226

Revision history for this message
Peter Sabaini (peter-sabaini) wrote :

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