# Create storage class for node local path

**URL:** <https://forums.suse.com/t/create-storage-class-for-node-local-path/11295>\
**Category:** SUSE Rancher Prime\
**Created:** [July 28, 2018, 9:57am UTC](https://forums.suse.com/t/create-storage-class-for-node-local-path/11295 "2018-07-28T09:57:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk.dinger](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dirk.dinger/32/4349_2.png) [@dirk.dinger](https://forums.suse.com/u/dirk.dinger)\
**Post date:** [July 28, 2018, 9:57am UTC](https://forums.suse.com/t/create-storage-class-for-node-local-path/11295/1 "2018-07-28T09:57:53Z")

</div>

Hello Rancher users,  
Trying to install the mongodb replicaset using helm chart from catalog.  
getting stuck because volume claims can not be fullfilled.

My cluster is running on the digitalocean. How can I create a storage class that uses a local directory on the node so that in the end I have a persistent volume that is local to the node of the replica and if I would scale up  
the number of replicas a new volume would be provisioned accordingly.  
The demos shown in the rancher tutorial videos always assume AWS or GCE as cloud providers which have a predefined storage class in rancher. But digital ocean ist not listet there.

Any help appreceated.  
Regards,  
Dirk

---

<div class="post-metadata">

**Author:** ![dmastag](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dmastag/32/3967_2.png) [@dmastag](https://forums.suse.com/u/dmastag)\
**Post date:** [November 24, 2018, 3:04am UTC](https://forums.suse.com/t/create-storage-class-for-node-local-path/11295/3 "2018-11-24T03:04:01Z")

</div>

This has been bothering me as well.  
Seems like the only possible way would be to create a NFS Server first

> **[How To Set Up an NFS Mount on Ubuntu 16.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04)**
>
> NFS, or Network File System, is a distributed file system protocol that allows you to mount remote directories on your server. This allows you to leverage storage space in a different location and to write to the same space from multiple servers. NFS
