brickpattern commented on issue #662:
URL: https://github.com/apache/solr-operator/issues/662#issuecomment-1836363306

   i moved from ephemeral to  persistent volume to resolve this.  only PV 
option has the hostpath  in the  spec/values.yaml file. 
   
   however moving to persistent volume created a FS permission issue. 
   the pod  with  mount volume.  has /var/solr  under solr:solr    where as 
/var/solr/data is under root. 
   Pod is not able to write to the data directory. 
   
   $    cd /var/   
   $ ls -ltar 
   total 0
   drwxrwsr-x 2 root staff  6 Apr 18  2022 local
   drwxr-xr-x 2 root root   6 Apr 18  2022 backups
   drwxr-xr-x 2 root root  18 Oct  4 02:08 spool
   lrwxrwxrwx 1 root root   4 Oct  4 02:08 run -> /run
   drwxr-xr-x 2 root root   6 Oct  4 02:08 opt
   drwxrwsr-x 2 root mail   6 Oct  4 02:08 mail
   lrwxrwxrwx 1 root root   9 Oct  4 02:08 lock -> /run/lock
   drwxrwxrwt 2 root root   6 Oct  4 02:12 tmp
   drwxr-xr-x 1 root root  29 Oct 30 23:27 lib
   drwxr-xr-x 1 root root  57 Oct 30 23:27 log
   drwxr-xr-x 1 root root  48 Oct 30 23:27 cache
   drwxr-xr-x 1 root root  41 Oct 31 03:15 .
   drwxr-xr-x 1 root root  28 Dec  1 03:21 ..
   drwxrwx--- 4 **solr solr  48 Dec  1 03:21 solr**
   $    cd solr 
   $ ls -ltar 
   total 8
   -rw-r--r-- 1 solr solr 3931 Oct 11 02:11 log4j2.xml
   drwxr-xr-x 1 root root   41 Oct 31 03:15 ..
   drwxr-xr-x 3 **root root 4096 Dec  1 03:21 data**
   drwxrwx--- 4 solr solr   48 Dec  1 03:21 .
   drwxrwx--- 2 solr solr  101 Dec  1 03:22 logs
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to