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 in OpenStack by akhtar
• 10,330 points
80 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 by MD
• 22,520 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 in OpenStack by MD
• 22,520 points
67 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 in OpenStack by MD
• 22,520 points
29 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 in OpenStack by MD
• 22,520 points
41 views
0 votes
1 answer

How do I create new router in OpenStack?

Hi@akhtar, You can create a router in OpenStack. ...READ MORE

answered Mar 18 in OpenStack by MD
• 22,520 points
22 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 in OpenStack by MD
• 22,520 points
36 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 in OpenStack by anonymous
• 22,520 points
54 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 in OpenStack by MD
• 22,520 points
155 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 in OpenStack by MD
• 22,520 points
87 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 in OpenStack by MD
• 22,520 points
46 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 in OpenStack by MD
• 22,520 points
258 views