# Mounting a nfs drive for snapshot

**URL:** <https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218>\
**Category:** Elasticsearch\
**Created:** [July 15, 2020, 2:03am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218 "2020-07-15T02:03:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [July 15, 2020, 2:03am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/1 "2020-07-15T02:03:35Z")

</div>

Hi all  
i have a case that i really dont know how to solve.  
I have a nfs share server that i mount an external drive in, and then i share that specific drive for my elastic cluster to takke snapshot in. The problems is that whenever i try to verify the repo it doesnot work, it keep saying "failed to create blob container" and "access denied"  
I think it is a permission problems but i dont know how to fix it.  
Please help me.  
Thanks for your time.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 15, 2020, 2:31am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/2 "2020-07-15T02:31:15Z")

</div>

Please post;

- The entire errors you are seeing
- The version of Elasticsearch you are using
- The relevant config sections showing the repo setup

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [July 15, 2020, 2:43am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/3 "2020-07-15T02:43:31Z")

</div>

- This is the error that it show:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "exception",
        "reason": "failed to create blob container"
      }
    ],
    "type": "exception",
    "reason": "failed to create blob container",
    "caused_by": {
      "type": "access_denied_exception",
      "reason": "/data/tests-ksVsTSHWQFqnhW2ljrGWdg"
    }
  },
  "status": 500
}

```

- The version of elatic that i am using is 7.6
- I config them just like the doc say so i dont know what to give you

---

<div class="post-metadata">

**Author:** ![Vinayak\_Sapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinayak_sapre/32/45939_2.png) [@Vinayak\_Sapre](https://discuss.elastic.co/u/Vinayak_Sapre)\
**Post date:** [July 15, 2020, 2:45am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/4 "2020-07-15T02:45:57Z")

</div>

Is /data directory writable to user running Elasticsearch?

This is not data directory for elasticsearch (path.data) right?

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [July 15, 2020, 3:02am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/5 "2020-07-15T03:02:46Z")

</div>

/data dir has 777 right and yes it is not the path.data

---

<div class="post-metadata">

**Author:** ![Vinayak\_Sapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinayak_sapre/32/45939_2.png) [@Vinayak\_Sapre](https://discuss.elastic.co/u/Vinayak_Sapre)\
**Post date:** [July 15, 2020, 6:31am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/6 "2020-07-15T06:31:46Z")

</div>

What did you specify for location while registering repository?

elasticsearch logs may have more details on error and stacktrace.

---

<div class="post-metadata">

**Author:** ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)\
**Post date:** [July 16, 2020, 6:30am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/7 "2020-07-16T06:30:17Z")

</div>

NFS permissions are messy - make sure you can sudo to the Elasticsearch user and write a file to that mount/dir path; you might be surprised. Solve or verify that likely problem goes away.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 13, 2020, 6:30am UTC](https://discuss.elastic.co/t/mounting-a-nfs-drive-for-snapshot/241218/8 "2020-08-13T06:30:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
