glance是openstack管理镜像的一个组件,从web client上传的镜像或者从命令行上传的镜像默认保存到了那个目录下,可以在:
# cat /etc/glance/glance-api.conf | grep -v "^$" | grep -v "^#"
filesystem_store_datadir=/var/lib/glance/images/ #这行中是显示的image存储目录
# cd /var/lib/glance/images/
[[email protected] images(keystone_admin)]# ls
26fb1a5e-9105-4719-8508-77e8db5f4623 89d034bc-179b-44f3-9c00-d1e981e72d1c f4cf3321-aafb-4c28-bb9b-5c9f7ce72c75
[[email protected] images(keystone_admin)]# glance image-list
+--------------------------------------+--------------+-------------+------------------+------------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+--------------+-------------+------------------+------------+--------+ | ba014d74-3390-426f-bf0d-ab724ef69b1a | bigmemory6.5 | qcow2 | bare | 2581987328 | active | | 88e57f2d-dbe8-4c04-aeeb-b0a24a0bfb01 | carson | qcow2 | bare | 3282698240 | active | | 82c1fdd6-3c54-42b6-a851-ef968d3a9ccd | devlop6.5 | qcow2 | bare | 9321906176 | active | | 360db407-4852-4890-b4db-90dd46062a39 | small6.5 | qcow2 | bare | 2581725184 | active | +--------------------------------------+--------------+-------------+------------------+------------+--------+
openstack glance存储image目录
时间: 2024-10-10 18:32:10