# I want to create Snapshots of indices on External Hard Drive

**URL:** <https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 9, 2021, 7:37pm UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801 "2021-02-09T19:37:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [February 9, 2021, 7:37pm UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/1 "2021-02-09T19:37:44Z")

</div>

Hi ,

I have created NFS location in my cluster that is accessible from all the nodes.

I checked it through terminal, The Repository has read and write both permissions.

But when i create a repository from kibana terminal or dev tools i get following error

`test] [[ZehcpwR6Qqe48yhIl_RcUw, 'RemoteTransportException[[kibana-data][192.168.140.16:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[test] store location [/mnt/node] is not accessible on the node [{kibana-data}{ZehcpwR6Qqe48yhIl_RcUw}{sLtnj5QjTdiBCKUwqlyUXw}{192.168.140.16}{192.168.140.16:9300}{dilrt}{ml.machine_memory=8201338880, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]]; nested: AccessDeniedException[/mnt/node/tests-n396HbR9Q-udjW7-pLcqLw/data-ZehcpwR6Qqe48yhIl_RcUw.dat];']]`

---

<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:** [February 10, 2021, 12:34am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/2 "2021-02-10T00:34:44Z")

</div>

> [@Rohit\_Kumbhar](#):
>
> AccessDeniedException

That would suggest that the directory does not have the right permissions.

---

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [February 10, 2021, 3:38am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/3 "2021-02-10T03:38:03Z")

</div>

I gave` chmode -R 777 to directory` and also set `chown` as elasticsearch  
Please suggest what permissions are required  
Because i tried read write operation from other node via terminal it is working.

---

<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:** [February 10, 2021, 4:05am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/4 "2021-02-10T04:05:03Z")

</div>

What is the output from `ls -ld /mnt/node` and `mount`?

---

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [February 10, 2021, 4:08am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/5 "2021-02-10T04:08:00Z")

</div>

Following tis the output of `ls -ld /mnt/node`  
`192.168.140.15:/mnt/node 1.8T 1.6T 300G 84% /mnt/node`

Following tis the output of `df -kh`  
Filesystem Size Used Avail Use% Mounted on  
devtmpfs 7.8G 0 7.8G 0% /dev  
tmpfs 7.8G 0 7.8G 0% /dev/shm  
tmpfs 7.8G 793M 7.0G 10% /run  
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup  
/dev/mapper/centos-root 1.8T 1.8T 101G 95% /  
/dev/vda2 50G 45G 5.4G 90% /boot  
tmpfs 1.6G 4.0K 1.6G 1% /run/user/42  
tmpfs 1.6G 36K 1.6G 1% /run/user/0  
` 192.168.140.15:/mnt/node 1.8T 1.6T 300G 84% /mnt/node`

Following is the output of `mount`

`192.168.140.15:/mnt/node on /mnt/node type nfs4 (rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.140.11,local_lock=none,addr=192.168.140.15)`

---

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [February 10, 2021, 5:46am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/6 "2021-02-10T05:46:18Z")

</div>

I got the problem

In the data node when writing in the repo directory ,  
instead of elasticsearch its writing with kibana user  
other node are taking elasticsearch only problem in kibana node.  
is their any linux command to change that  
I already `chown -R elasticsearch:elasticsearch to the directory`

---

<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:** [March 10, 2021, 5:46am UTC](https://discuss.elastic.co/t/i-want-to-create-snapshots-of-indices-on-external-hard-drive/263801/7 "2021-03-10T05:46:30Z")

</div>

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