Need to add external nfs storage to Cinder Volume.

asked 2016-04-19 16:12:51 -0500

opensunny gravatar image

updated 2016-05-17 02:18:48 -0500

Hi, Is there a way to add external NFS storage to my existing openstack Kilo on Ubuntu Cinder Volume?

I'm out of disk space and hence this will only option available. Please let me know how that can be done.

Here is the way I will be mounting the nfs to my current Openstack Single Box install. /vol/kll5056_nfs_mount


volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm

root@kll5055:/etc/cinder# **vgdisplay cinder-volumes**
  --- Volume group ---
  VG Name               cinder-volumes
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               80.00 GiB
  PE Size               4.00 MiB
  Total PE              20479
  Alloc PE / Size       0 / 0
  Free  PE / Size       20479 / 80.00 GiB
  VG UUID               dJ8Pl0-Q5T3-itSM-Pdsk-bU4m-X8ma-uVG34T
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-05-16 14:26:50 -0500

rushi gravatar image


Yes you can add by opening the file /etc/cinder/cinder.conf to add the following netapp c-mode or 7 mode . First you need to create vserver(Cmode) and vfiler (7mode) in netapp to allocate a volume and mount to openstack host to see if you can write files.the volume you mount had to be specified in a seprate file nfs.shares under /etc/cinder/nfs.shares with the mount path "ipaddress:/cinder " make sure you donot create any qtree for the volume .

After the above you can open cinder.conf to add the following 2 places (this is for CMODE ) if its for 7mode you can refer this link to obtain the configuration.

enabled_backends = lvm-driver,netapp-driver

[netapp-driver] volume_driver = cinder.volume.drivers.netapp.common.NetAppDriver netapp_login = vsadmin netapp_password = password netapp_vserver = vserveripaddres netapp_server_hostname = clusterhostname netapp_server_port = 443 netapp_storage_family = ontap_cluster nfs_mount_options = 'nfsvers=3' netapp_storage_protocol = nfs netapp_transport_type = https volume_backend_name = netapp-driver nfs_shares_config = /etc/cinder/nfs.shares

edit flag offensive delete link more

answered 2016-05-17 12:33:33 -0500

opensunny gravatar image

Thanks Rushi !!! In a similar way I followed the instructions provided in this link and it helped. (Click on this link)

Thanks, Sunil

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-19 16:12:51 -0500

Seen: 444 times

Last updated: May 17 '16