Hi Adivya,

not an nfs expert but I'd say vers=4 and nfsvers=4 options are redundant.

Jaime

On 24/06/2024 10:39, Adivya Singh wrote:
Hi Team,

I am trying to configure the Cinder Volume service with NFS server as a backend and this is my user_variables File

cinder_backends:
  default:
    volume_backend_name: nfs
    volume_driver: cinder.volume.drivers.nfs.NfsDriver
    nfs_shares_config: /etc/cinder/nfs_shares
    nfs_qcow2_volumes: true
    nfs_mount_options: vers=4,nfsvers=4,noatime,rw,bg,intr,async,timeo=60
    nfs_snapshot_support: true
    shares:
      - ip: 172.29.244.103
        share: /cinder/volume


My NFS server Configuration is Like this

/img/glance  172.29.244.0/22(rw,insecure,sync,no_subtree_check,no_root_squash)
/cinder/volume 172.29.244.0/22(vrw,insecure,sync,no_subtree_check,no_root_squash)

 now what i am seeing is below error

 2024-06-24 08:11:42.892 4807 ERROR cinder.volume.drivers.remotefs [None req-85e0d72a-f403-4c8e-8880-1ced0413f760 - - - - - -] Exception during mounting NFS mount failed for share 172.29.244.103:/cinder/volume. Error - {'nfs': "Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf mount -t nfs -o vers=4,nfsvers=4,noatime,rw,bg,intr,async,timeo=60 172.29.244.103:/cinder/volume /var/lib/cinder/mnt/cd53d1ffa6d608fee908e8f1668ce63d\nExit code: 32\nStdout: ''\nStderr: 'mount.nfs: multiple version options not permitted\\n'"}: cinder.exception.NfsException: NFS mount failed for share 172.29.244.103:/cinder/volume. Error - {'nfs': "Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf mount -t nfs -o vers=4,nfsvers=4,noatime,rw,bg,intr,async,timeo=60 172.29.244.103:/cinder/volume /var/lib/cinder/mnt/cd53d1ffa6d608fee908e8f1668ce63d\nExit code: 32\nStdout: ''\nStderr: 'mount.nfs: multiple version options not permitted\\n'"}

Any clue on this, How to fix it

Regards
Adivya Singh





-- 
Jaime