# Pods do not run and errors when a CIFS mounted path is used as volume

**URL:** <https://discuss.kubernetes.io/t/pods-do-not-run-and-errors-when-a-cifs-mounted-path-is-used-as-volume/13602>\
**Category:** General Discussions\
**Created:** [November 6, 2020, 9:52am UTC](https://discuss.kubernetes.io/t/pods-do-not-run-and-errors-when-a-cifs-mounted-path-is-used-as-volume/13602 "2020-11-06T09:52:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vipin.jain](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/vipin.jain/32/6201_2.png) [@vipin.jain](https://discuss.kubernetes.io/u/vipin.jain)\
**Post date:** [November 6, 2020, 9:52am UTC](https://discuss.kubernetes.io/t/pods-do-not-run-and-errors-when-a-cifs-mounted-path-is-used-as-volume/13602/1 "2020-11-06T09:52:24Z")

</div>

Hi,

I have a CIFS share and i have mounted it to the host using mount service units.  
But when i use the share for any pod, they will not run properly and errors out showing some error.  
I can confirm that the pod runs perfectly fine if i use normal storage.

Please help me successfully use the cifs shares with the pods persistent volumes.

here is the unit code.

> [Unit]  
> Description = SERVER-DATA  
> After=network-online.service  
> Before=samba.service kubelet.service
> 
> [Mount]  
> What = [//10.1.1.1/serverdata](https://10.1.1.1/serverdata)  
> Where = /mnt/SERVERDATA  
> Type = cifs  
> Options = username=myuser,password=mypassword,noperm,exec,dev,suid
> 
> [Install]  
> WantedBy = multi-user.target

> Kubernetes version: 1.19.3  
> Cloud being used: bare metal  
> Installation method: kubeadm  
> Host OS: ubuntu 20 server  
> CNI and version:  
> CRI and version:

EDIT:  
One more thing one of my pods shows that the volume has been mounted with noexec and nodev values which seems to be the reason.
