Changing Management of Volumes in a Shared Storage Backend
PreviousInstance in Stopped State Post-CreationNextUnable to Deauthorize Hypervisor (Instances Still Exist)
Last updated
$ cinder get-pools
+----------+-----------------------------------------------------------------+
| Property | Value |
+----------+-----------------------------------------------------------------+
| name | 55ad6f9a-33da-4a1f-baa7-f0a15446ac9f@sf-backend#cinder-volumes |
+----------+-----------------------------------------------------------------+
+----------+-----------------------------------------------------------------+
| Property | Value |
+----------+-----------------------------------------------------------------+
| name | 7d180141-369f-4380-b688-2677af266f9b@sf-backend#cinder-volumes |
+----------+-----------------------------------------------------------------+
$ openstack volume service list
+------------------+----------------------------------------------------------------+------+----------+-------+----------------------------+---------+---------------+
| Binary | Host | Zone | Status | State | Updated At | Cluster | Backend State |
+------------------+----------------------------------------------------------------+------+----------+-------+----------------------------+---------+---------------+
| cinder-scheduler | cinder-scheduler-7d6685c78d-vx9j7 | nova | enabled | up | 2025-06-07T00:28:39.000000 | None | None |
| cinder-volume | 55ad6f9a-33da-4a1f-baa7-f0a15446ac9f@sf-backend#cinder-volumes | nova | enabled | up | 2025-06-07T00:28:07.000000 | None | None |
| cinder-volume | 7d180141-369f-4380-b688-2677af266f9b@sf-backend#cinder-volumes | nova | enabled | up | 2025-06-07T00:28:04.000000 | None | None |
+------------------+----------------------------------------------------------------+------+----------+-------+----------------------------+---------+---------------+$ cinder-manage volume update_host --currenthost [CURRENT_HOST_UUID] --newhost [DEST_HOST_UUID]$ LD_LIBRARY_PATH="/opt/pf9/pf9-cindervolume-base/pf9-lib:/opt/pf9/python/pf9-lib:${LD_LIBRARY_PATH}" PYTHONPATH="/opt/pf9/python/lib/python3.6:/opt/pf9/pf9-cindervolume-base/lib/python3.6/site-packages:${PYTHONPATH}" /opt/pf9/pf9-cindervolume-base/bin/cinder-manage --config-dir /opt/pf9/etc/pf9-cindervolume-base/conf.d volume update_host --currenthost [CURRENT_HOST_UUID] --newhost [DEST_HOST_UUID]$ openstack volume list --all-projects --host [HOST_UUID]
or
$ openstack volume list --all-projects -f value -c ID | while read -r vol_id; do
host=$(openstack volume show "$vol_id" -f value -c os-vol-host-attr:host)
echo "$vol_id | $host"
done