Duplicate shares on file system

Thanks in advance

I just reinstalled my server last night with the latest download, I haven’t done this in a while so I was bit behind.
anyway now I’m looking on the file system and I’m finding in the /mnt2 folder that I have a set of shares listed and if i cd into my data folder i have the same set of shares listed there as well
I am running version 3.9.121-16 just wondering if this is also my issue with trying to install a rockon

and if I try to remove the duplicate I get not permitted even when logged in as root

[root@rockstor mnt2]# ls -latr
total 48
drwxr-xr-x 1 root root 24 Dec 28 2015 vmware
drwxr-xr-x 1 root root 238 Apr 26 2016 data
drwxr-xr-x 1 1003 1003 14 May 14 2016 plex-config
drwxr-xr-x 1 root root 0 May 15 2016 cp_data
drwxr-xr-x 1 1002 1002 0 May 15 2016 sb_data
drwxr-xr-x 1 root root 240 May 15 2016 vmware_share
drwxr-xr-x 1 root root 0 May 17 2016 cp_movies
drwxr-xr-x 1 1001 1001 10 May 25 2016 plex-data
drwxr-xr-x 1 admin admin 480 Jul 2 2016 music
drwxr-xr-x 1 admin admin 10 Jul 2 2016 movies
drwxr-xr-x 1 admin admin 372 Jul 2 2016 pictures
drwxr-xr-x 1 1002 1002 194 Nov 27 2016 sb_tv
drwxr-xr-x 1 1002 1002 4584 Dec 27 2016 sb_config
drwxr-xr-x 1 admin admin 108 Dec 30 2016 files
drwxr-xr-x 1 root root 16 Apr 4 22:28 rockstor_rockstor
drwxr-xr-x. 1 root root 10 Apr 4 22:44 home
dr-xr-xr-x. 1 root root 192 Apr 4 23:23 root
dr-xr-xr-x. 1 root root 192 Apr 4 23:23 …
drwx–x--x 1 root root 264 Apr 5 00:39 rock-ons
drwxr-xr-x 1 root root 0 Apr 5 18:10 unifi_rockon
drwxr-xr-x 1 root root 0 Apr 5 19:26 new_share
drwxr-xr-x 1 root root 332 Apr 5 19:26 .
drwxr-xr-x 1 1001 1001 0 Apr 5 19:26 cp_config

and in my data folder which is a pool folder
[root@rockstor data]# ls -latr
total 16
drwxr-xr-x 1 root root 238 Apr 26 2016 .
drwxr-xr-x 1 1003 1003 14 May 14 2016 plex-config
drwxr-xr-x 1 root root 0 May 15 2016 cp_data
drwxr-xr-x 1 1002 1002 0 May 15 2016 sb_data
drwxr-xr-x 1 root root 0 May 17 2016 cp_movies
drwxr-xr-x 1 1001 1001 10 May 25 2016 plex-data
drwxr-xr-x 1 admin admin 480 Jul 2 2016 music
drwxr-xr-x 1 admin admin 10 Jul 2 2016 movies
drwxr-xr-x 1 admin admin 372 Jul 2 2016 pictures
drwxr-xr-x 1 1002 1002 194 Nov 27 2016 sb_tv
drwxr-xr-x 1 1002 1002 4584 Dec 27 2016 sb_config
drwxr-xr-x 1 admin admin 108 Dec 30 2016 files
drwx–x--x 1 root root 264 Apr 5 00:39 rock-ons
drwxr-xr-x 1 root root 0 Apr 5 18:10 unifi_rockon
drwxr-xr-x 1 root root 0 Apr 5 19:26 new_share
drwxr-xr-x 1 root root 332 Apr 5 19:26 …
drwxr-xr-x 1 1001 1001 0 Apr 5 19:26 cp_config

and in creating a new share and trying to delete it Im getting this error
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/share.py”, line 73, in _validate_share
if (share.name == ‘home’ or share.name == ‘root’):
File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py”, line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py”, line 334, in get
self.model._meta.object_name
DoesNotExist: Share matching query does not exist.

You shares are managed as BTRFS subvolumes.

You have your pool mounted in /mnt2/data
Every share you create on your data pool, is a subvolume of /mnt2/data, meaning that if you create a share called test, it will be available as a directory, /mnt2/data/test.
Subvolumes are also mountable, and Rockstor mounts the shares individually in /mnt2.
This means that you’ll see /mnt2/test and /mnt2/data/test.

The behaviour you’re seeing here is correct. Your data is not duplicated, it just has multiple locations pointing at it.

The python error you’re seeing later I believe is a result of you removing one of the share mounts which Rockstor relies on.

1 Like

So after some time and a little investigation it looks like the issue was related to the shares not being owned by the right user some were owned by root and some by admin others were by users that were removed upon the upgrade.
After changing some of them to admin I can now remove the shares that I wanted to remove.

So this brings the question as to what should the ownership be for the shares and pools?