Ask Your Question
0

cinder total disk space not showing the actual size

asked 2014-05-07 04:43:50 -0500

anonymous user

Anonymous

2 node openstack havana with ubuntu. Cinder volume running on compute & cinder api, schedular running on controller.

Iv attached 10TB volume from netapp to the compute node using nfs. but the gui shows the free disk space of the host disk rather than the netapp nfs share volume.

how to make is work. please help

cinder.conf on compute [DEFAULT] rootwrap_config = /etc/cinder/rootwrap.conf api_paste_confg = /etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder #volumes_dir = /var/lib/cinder/volumes volumes_dir = /cinder_netapp enabled_backends=7modeDirectNFS

rpc_backend = cinder.openstack.common.rpc.impl_kombu rabbit_host = heos-ctrls rabbit_port = 5672 rabbit_userid = guest rabbit_password = Heosadm1n

[7modeDirectNFS] volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver netapp_server_hostname=10.126.58.1 netapp_server_port=80 netapp_storage_protocol=nfs netapp_storage_family=ontap_7mode netapp_login=root netapp_password=Welcome@123 nfs_shares_config=/etc/cinder/shares.conf volumes_dir = /cinder_netapp

[database] connection = mysql://cinder:Heosadm1n@heos-ctrls/cinder

shares.conf root@heos-cmpt2:~# more /etc/cinder/shares.conf 192.168.10.10:/vol/vol_for_cmpt2 root@heos-cmpt2:~#

df from compute node root@heos-cmpt2:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/heos--cmpt2--vg-root 356619124 13734240 324746568 5% / udev 396287264 4 396287260 1% /dev tmpfs 79259916 332 79259584 1% /run none 5120 0 5120 0% /run/lock none 396299576 0 396299576 0% /run/shm cgroup 396299576 0 396299576 0% /sys/fs/cgroup /dev/sda1 240972 64960 163571 29% /boot 192.168.10.10:/vol/vol_for_cmpt2 11274289152 11456 11274277696 1% /var/lib/cinder/mnt/1b992a43854fceb32d1302d8676bdcdf

nfs share is mounted on /var/lib/cinder/mnt

root@heos-cmpt2:~# df -h /var/lib/cinder/mnt/ Filesystem Size Used Avail Use% Mounted on /dev/mapper/heos--cmpt2--vg-root 341G 14G 310G 5% / root@heos-cmpt2:~# df -h /var/lib/cinder/mnt/1b992a43854fceb32d1302d8676bdcdf/ Filesystem Size Used Avail Use% Mounted on 192.168.10.10:/vol/vol_for_cmpt2 11T 12M 11T 1% /var/lib/cinder/mnt/1b992a43854fceb32d1302d8676bdcdf root@heos-cmpt2:~#

cinder.conf on controller [DEFAULT] rootwrap_config = /etc/cinder/rootwrap.conf api_paste_confg = /etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /cinder_netapp glance_host=heos-ctrls

rpc_backend = cinder.openstack.common.rpc.impl_kombu rabbit_host = heos-ctrls rabbit_port = 5672 rabbit_userid = guest rabbit_password = Heosadm1n

[database] connection = mysql://cinder:Heosadm1n@heos-ctrls/cinder

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 12:57:51 -0500

alop gravatar image

Since cinder is reporting the host disk usage, not the NFS share, it's possible that the shares.conf file has the wrong mountpoint listed, Make sure that shares.conf matches what your df is showing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-07 04:43:50 -0500

Seen: 1,461 times

Last updated: Jan 13 '15