How to create a SVN repository on main pool?

Status
Not open for further replies.

ertank

Explorer
Joined
Sep 16, 2018
Messages
66
Hello,

I am using FreeNAS 11.2-BETA3. I have setup an iocage jail (FreeBSD 11.2-RELEASE-p4). Installed SVN in it. I also wanted to have my repository on my mail pool, outside of jail. For that I added a mount point in my jail. Everything seems normal until I try to create an empty repository
Code:
root@svn:~ # svnadmin create /svn/test
svnadmin: E000001: Can't set permissions on '/svn/test/db/svn-W1SfvU'
svnadmin: E000001: Can't set permissions on '/svn/test/db/svn-W1SfvU': Operation not permitted
root@svn:~ #

I see mount point has a plus sign next to it (is this called "sticky bit"?) I suspect that has something to do because I can create/modify/delete files on my mount point /svn in the jail. Some more information from jail:

Mount point source: /mnt/pool/share/svnbase
Mount point destination: /mnt/iocage/jails/svn/root/svn
Code:
root@svn:~ # ls -l /
total 156
-rw-r--r--   2 root  wheel   957 Jun 22 07:34 .cshrc
-rw-r--r--   2 root  wheel   474 Jun 22 07:34 .profile
-r--r--r--   1 root  wheel  6197 Jun 22 07:34 COPYRIGHT
drwxr-xr-x   2 root  wheel	47 Oct 14 01:22 bin
drwxr-xr-x   9 root  wheel	52 Oct 14 01:22 boot
dr-xr-xr-x  12 root  wheel   512 Oct 17 07:45 dev
drwxr-xr-x  27 root  wheel   109 Oct 17 07:45 etc
lrwxr-xr-x   1 root  wheel	 8 Oct 14 01:57 home -> usr/home
drwxr-xr-x   4 root  wheel	56 Jun 22 07:33 lib
drwxr-xr-x   3 root  wheel	 5 Jun 22 07:35 libexec
drwxr-xr-x   2 root  wheel	 2 Jun 22 07:32 media
drwxr-xr-x   2 root  wheel	 2 Jun 22 07:32 mnt
drwxr-xr-x   2 root  wheel	 2 Jun 22 07:32 net
dr-xr-xr-x   2 root  wheel	 2 Jun 22 07:32 proc
drwxr-xr-x   2 root  wheel   148 Jun 22 07:33 rescue
drwxr-xr-x   2 root  wheel	 7 Oct 17 07:34 root
drwxr-xr-x   2 root  wheel   137 Jun 22 07:34 sbin
drwxrwxr-x+  2 1000  wheel	 2 Oct 17 07:47 svn  <--- this is my main pool mount point
drwxr-xr-x   6 root  wheel	 8 Oct 14 02:20 svnbase
lrwxr-xr-x   1 root  wheel	11 Oct 14 01:21 sys -> usr/src/sys
drwxrwxrwt   6 root  wheel	 8 Oct 17 07:45 tmp
drwxr-xr-x  15 root  wheel	15 Oct 14 01:57 usr
drwxr-xr-x  24 root  wheel	24 Oct 17 07:45 var
root@svn:~ #

Code:
root@svn:~ # df -h
Filesystem					Size	Used   Avail Capacity  Mounted on
pool/iocage/jails/svn/root	1.5T	473M	1.5T	 0%	/
root@svn:~ #

Any help is appreciated.

Thanks & regards,
Ertan
 
Last edited by a moderator:
Status
Not open for further replies.
Top