Ask Your Question

Revision history [back]

Make sure commands like bellow have been run :-

# Choose whatever NFS share is used
Check directory /volume/openstack/cinder  is exported properly on NFS_SERVER
cat > /etc/cinder/nfs_exports << EOF
NFS_SERVER_IP:/volume/openstack/cinder 
EOF

chown root:cinder /etc/cinder/nfs_exports
chmod 0640 /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_shares_config /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_sparsed_volumes true
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_mount_options v3
openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.nfs.NfsDriver

UPDATE
Per https://kimizhang.wordpress.com/2015/02/12/nfs-backend-for-openstack-glancecinderinstance-store/

mkdir /nfsshare; chmod 777 /nfsshare
mkdir /nfsshare_glance; chmod 777 /nfsshare_glance
mkdir /nfsshare_cinder; chmod 777 /nfsshare_cinder

However, I remember very well it's not needed on RDO Liberty
END UPDATE

Make sure commands like bellow have been run :-

# Choose whatever NFS share is used
Check directory /volume/openstack/cinder  is exported properly on NFS_SERVER
cat > /etc/cinder/nfs_exports << EOF
NFS_SERVER_IP:/volume/openstack/cinder 
EOF

chown root:cinder /etc/cinder/nfs_exports
chmod 0640 /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_shares_config /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_sparsed_volumes true
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_mount_options v3
openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.nfs.NfsDriver

UPDATE
Per https://kimizhang.wordpress.com/2015/02/12/nfs-backend-for-openstack-glancecinderinstance-store/
RHEL7 + Juno

mkdir /nfsshare; chmod 777 /nfsshare
mkdir /nfsshare_glance; chmod 777 /nfsshare_glance
mkdir /nfsshare_cinder; chmod 777 /nfsshare_cinder

However, I remember very well it's not needed on RDO Liberty
END UPDATE

Make sure commands like bellow have been run :-

# Choose whatever NFS share is used
Check directory /volume/openstack/cinder  is exported properly on NFS_SERVER
cat > /etc/cinder/nfs_exports << EOF
NFS_SERVER_IP:/volume/openstack/cinder 
EOF

chown root:cinder /etc/cinder/nfs_exports
chmod 0640 /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_shares_config /etc/cinder/nfs_exports
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_sparsed_volumes true
openstack-config --set /etc/cinder/cinder.conf DEFAULT nfs_mount_options v3
openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.nfs.NfsDriver