[Owncloud] Partitioning users

Arthur Schiwon blizzz at owncloud.com
Wed May 15 10:06:32 UTC 2013


On 05/14/2013 09:43 PM, Tornóci László wrote:
> Hi,
>
> using the special attribute "User home folder naming rule" in LDAP you
> can put your users into different disk partitions, which is nice if you
> need to be able to scale up.
>
> So the data for user_A can be on /mnt/partition_1/data
> and for user_B it can be on /mnt/partition_2/data
>
> Everything (sharing between user_A and user_B) seem to work all right.
>
> If user_B doesn't share anything with other users, I can even move the
> data between partition_1 and partition_2:
> 1. log out user_B
> 2. change the value of the "User home folder naming rule" attrib in LDAP
> for user_B
> 3. move files of user_B between partitions on the filesystem
> 4. clear the LDAP cache (login as admin and change the Cache time to
> live value to something else then Save the new settings)

On up to date 4.5 as well as on 5.0 just clicking "Save" is enough to 
clear the cache.

> 5. log in as user_B
>
> This seems to work too, user_B will see all files (although records show
> up in oc_storages and oc_filecache for both partitions).
>
> However, if user_B shares a file with user_A and I do the above, user_A
> will not see the file anymore after the move (will get redirected to
> 'home' of the files page). What records should be changed in the oc db
> so that sharing won't get broken?

I think this is due to the filecache where the whole path(hash) is 
stored. Tables oc_storages and oc_filecache. Could become a bit tricky 
to do it manually.

Cheers
Arthur

>
> One more question: how do you force file system scanning in oc 5 without
> deleting all records from oc_filecache?
>
>                      Yours: Laszlo
>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list