How do I configure Block Storage to use an NFS storage back end in OpenStack

0 votes

Hi everyone,

I know about Cinder service. These service manages block storage. Whenever we need storage, it will use some technology in back end and make partitions and give us storage. But is there any way so that in back end it will use NFS technology?

Thank You

Mar 19, 2020 in OpenStack by akhtar
• 38,230 points
1,138 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use NFS technology for your storage. Follow the below given steps.

  • Log in as root to the system hosting the cinder volume service.

  • Create a text file named nfsshares in the /etc/cinder/ directory.

    Add an entry to the /etc/cinder/nfsshares file for each NFS share that the cinder volume service should use for back end storage. Each entry should be a separate line, and should use the following format.

    HOST:SHARE
  • Set /etc/cinder/nfsshares to be owned by the root user and the cinder group:

    # chown root:cinder /etc/cinder/nfsshares
    
  • Set /etc/cinder/nfsshares to be readable by members of the cinder group:

    # chmod 0640 /etc/cinder/nfsshares
    
  • Now configure the cinder volume service to use the /etc/cinder/nfsshares file created earlier. To do so, open the /etc/cinder/cinder.conf configuration file and set the nfs_shares_config configuration key to /etc/cinder/nfsshares.

  • Optionally, You can provide any other additional NFS mount options required in your own system environment in the nfs_mount_options configuration key of /etc/cinder/cinder.conf. If your NFS shares do not require any additional mount options (or if you are unsure), skip this step.

  • Configure the cinder volume service to use the correct volume driver, namely cinder.volume.drivers.nfs.NfsDriver. To do so, you now open the /etc/cinder/cinder.conf configuration file and set the volume_driver configuration key to cinder.volume.drivers.nfs.NfsDriver.

  • You can now restart the service to apply the configuration.

Hope this will work.

Thank You

answered Mar 19, 2020 by MD
• 95,440 points

Related Questions In OpenStack

0 votes
1 answer

How to create an image in OpenStack?

Hi@akhtar, Actually this is the fun in OpenStack. ...READ MORE

answered Mar 16, 2020 in OpenStack by MD
• 95,440 points
2,674 views
0 votes
1 answer

How to update an image properties in OpenStack?

Hi@akhtar, You can update your image properties. Follow ...READ MORE

answered Mar 16, 2020 in OpenStack by MD
• 95,440 points
933 views
0 votes
1 answer

How can I do SSH inside my instance in OpenStack?

Hi@akhtar, Yes, there is nothing wrong with your ...READ MORE

answered Mar 17, 2020 in OpenStack by MD
• 95,440 points
2,175 views
0 votes
1 answer

How can I upload an Object in OpenStack?

Hi@Hasid, You can upload your files inside your container. ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,440 points
631 views
0 votes
1 answer

Can anyone explain, how nova works internally?

Hi@akhtar, Nova is comprised of multiple server process, ...READ MORE

answered Mar 17, 2020 in OpenStack by MD
• 95,440 points
1,360 views
0 votes
1 answer

How to create an instance in OpenStack?

Hi@akhtar, When we try to launch an instance ...READ MORE

answered Mar 17, 2020 in OpenStack by anonymous
• 95,440 points
2,228 views
0 votes
1 answer

Instance is not pingable from outside in OpenStack!

Ho@akhtar, There is nothing wrong. But when you ...READ MORE

answered Mar 17, 2020 in OpenStack by MD
• 95,440 points
5,885 views
0 votes
1 answer

How to reset error state of a instance into active in OpenStack env?

Hi@akhtar, There are some scenarios where some instances ...READ MORE

answered Mar 17, 2020 in OpenStack by MD
• 95,440 points
8,792 views
0 votes
1 answer

How do I Configure GlusterFS for OpenStack Block Storage?

Hi@akhtar, To set GlusterFS as your partitioner tool in ...READ MORE

answered Mar 19, 2020 in OpenStack by MD
• 95,440 points
863 views
0 votes
1 answer

How do I install OpenStack in RHEL 7/CentOS 7?

Hi@akhtar, Follow the below steps to install OpenStack. IP ...READ MORE

answered Mar 13, 2020 in OpenStack by MD
• 95,440 points
2,358 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP