Migrating Image Library from Local Drive to Persistent Volume
PreviousMigrate VM Storage from Host-Local Storage to Persistent VolumeNextMigrate VMs from VMware to PCD
Was this helpful?
Was this helpful?
pcdctl volume create --size <size-in-GB> pcd-image-repo-vol
pcdctl server add volume <image-node-hostname> pcd-image-repo-volsudo mkfs.ext4 /dev/vdb
sudo mkdir -p /mnt/glance-cinder
sudo mount /dev/vdb /mnt/glance-cindersudo rsync -avh /opt/pf9/pf9-glance/images/ /mnt/glance-cinder/echo '/dev/vdb /mnt/glance-cinder ext4 defaults 0 0' | sudo tee -a /etc/fstab[DEFAULT]
enabled_backends = cinder:cinder
[glance_store]
default_backend = cinder
[cinder]
volume_type = <your-volume-type-if-applicable>sudo systemctl restart glance-api
sudo systemctl restart pf9-ostackhostpcdctl image show <image-id> -f json | grep location