Skip to content

Configuring S3 and OpenStack Swift as Primary Storage #60

Description

@MariusBluem

Currently it is only possible to mount S3, Google Drive, Dropbox etc. as external storage in a subfolder.
Mounting S3 as primary storage is implanted in the Enterprise Edition. This could be interesting for the community too, so I think we should rewrite it. What do you think?

Reference: https://doc.owncloud.org/server/8.0/admin_manual/enterprise_external_storage/s3_swift_as_primary_object_store_configuration.html

Activity

  1. MorrisJobke commented on Jun 13, 2016

    @MorrisJobke
    Member
  2. lsteamgeo commented on Jun 13, 2016

    @lsteamgeo

    It would be great to be able to mount Amazon S3 as primary storage !

  3. despens commented on Jul 1, 2016

    @despens

    S3 is still generating lots of overhead connections. owncloud/core#13147

  4. MariusBluem commented on Jul 16, 2016

    @MariusBluem
    MemberAuthor
  5. self-assigned this
    on Jul 18, 2016
  6. MorrisJobke commented on Jul 18, 2016

    @MorrisJobke
    Member

    Ref: https://github.com/nextcloud/files_primary_s3

    Yes. I'm working on this. I have a working prototype locally. Will try to get this up this week.

  7. flypenguin commented on Sep 7, 2016

    @flypenguin

    also a migration mechanism would be really nice then. I am very much looking forward to this feature if it's coming!

  8. markseddon commented on Sep 13, 2016

    @markseddon

    @MorrisJobke did this get anywhere? I'm just setting up NextCloud and would really really like this feature!

  9. MorrisJobke commented on Sep 13, 2016

    @MorrisJobke
    Member

    @MorrisJobke did this get anywhere? I'm just setting up NextCloud and would really really like this feature!

    This was taken over by @icewind1991 who did some code in #768

  10. oquidave commented on Sep 17, 2016

    @oquidave

    I would also be excited to see this come in the next release.

  11. MariusBluem commented on Oct 4, 2016

    @MariusBluem
    MemberAuthor

    ...maybe we could also introduce a function in the external_files which allows admins to tick a box called "use as primary storage" for "group/user/all" 🤔

    cc @icewind1991 @MorrisJobke

  12. added this to the Nextcloud 11.0 milestone on Oct 4, 2016
  13. 7 remaining items

  14. flypenguin commented on Nov 24, 2016

    @flypenguin

    #2315 now open :) . thx!

  15. jgallucci32 commented on Nov 26, 2016

    @jgallucci32

    From what I can tell looking at the merge, this only covered known Amazon S3 endpoints with hard-coded regions. Is there plan to support S3 Compatible (i.e. Ceph) backends as primary storage. This is an OC Enterprise feature keeping me from going to NextCloud at the moment.

    Also I should mention the lack of Swift Auth V1 support in OC Enterprise was a big problem, since object storage deployments using only Swift, and not all of OpenStack, use only the V1 Auth and do not have V2 (keystone) implemented.

  16. MorrisJobke commented on Nov 26, 2016

    @MorrisJobke
    Member

    From what I can tell looking at the merge, this only covered known Amazon S3 endpoints with hard-coded regions. Is there plan to support S3 Compatible (i.e. Ceph) backends as primary storage. This is an OC Enterprise feature keeping me from going to NextCloud at the moment.

    This should work. We tested also with different local implementations of the S3 APIs.

    Also I should mention the lack of Swift Auth V1 support in OC Enterprise was a big problem, since object storage deployments using only Swift, and not all of OpenStack, use only the V1 Auth and do not have V2 (keystone) implemented.

    We plan to also update the underlying library to support new Auth levels. But I don't know what is currently supported. Maybe @icewind1991 knows more here.

  17. Razva commented on Feb 6, 2017

    @Razva

    Any news about this feature? I would also like to connect NextCloud with SwiftStack or OpenIO via S3 API.

    @markseddon any idea if NextCloud + s3fs-fuse is a good idea in production? Never tried it.

  18. MariusBluem commented on Feb 6, 2017

    @MariusBluem
    MemberAuthor
  19. Razva commented on Feb 6, 2017

    @Razva

    @MariusBluem is it production ready, 100+ users?

  20. MariusBluem commented on Feb 6, 2017

    @MariusBluem
    MemberAuthor

    Feel free to test it in a staging-instance and report us about your experience - I think it is as production-ready as every other part of the Nextcloud server ...

    Of course, if you find bugs - please report back!

    You may also want to ask in our forum (https://help.nextcloud.com) about the experiences of other administrators - but, to be honest: I think it has not such a large user-base as maybe the calendar-app has.

    If you need enterprise support or custom consulting about S3 implementation or Nextcloud in general (especially for larger instances in a critical eviroment) you are welcome to request a quote by the Nextcloud GmbH team over here: https://nextcloud.com/enterprise

  21. sumanyam commented on Dec 3, 2017

    @sumanyam

    @MorrisJobke
    Is S3 as primary storage working. https://github.com/nextcloud/files_primary_s3 is not found. what is the correct git url for this S3 implementation.

  22. MariusBluem commented on Dec 3, 2017

    @MariusBluem
    MemberAuthor

    S3 as primary storage is part of the server and has no own repository. You will find instructions how to set this up in our documentation: https://docs.nextcloud.com/server/12/admin_manual/configuration_files/primary_storage.html

  23. sohighsoquiet commented on Jan 27, 2018

    @sohighsoquiet

    Hello, Im wondering if would be possible to make the same thing with Google Drive. Thnx

  24. indistinctTalk commented on Mar 9, 2018

    @indistinctTalk

    @MariusBluem That documentation doesn't appear to exist anymore and running a search for 'primary', 'primary storage' etc does not give any useful results :<

  25. zoic21 commented on Mar 21, 2018

    @zoic21

    Same for me....

  26. jdenly commented on May 6, 2018

    @jdenly

    @IJebus @zoic21

    The instructions are still available for version 11, I've tested with 13 and you can still mount S3 as primary storage.

    https://docs.nextcloud.com/server/11/admin_manual/configuration_files/primary_storage.html

    My config file looks similar to Dan_Smith's file from here:

    https://help.nextcloud.com/t/external-storage-set-amazon-s3-region/13254/7

    'objectstore' => array(
        'class' => 'OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
          'bucket' => 'bucket-name-in-here',
          'autocreate' => true,
          'key'    => 'awskeyinhere',
          'secret' => 'awssecretinhere',
          'use_ssl' => true,
          'region' => 'aws-region-in-here'
        ),
      ),
    
  27. sealionking commented on Dec 17, 2018

    @sealionking

    how about mount the bucket as /var/www/nextcloud/data ? I am using the oss object storage offered by aliyun in China, and can mount it as a disk by using the ossfs forked from s3fs. And which performance concerns I should pay attention to?

    Or better to mount the buckets follow the instruction https://docs.nextcloud.com/server/11/admin_manual/configuration_files/primary_storage.html and as

    @jdenly did? But oss is a bit different as Amazon s3.

    @IJebus @zoic21

    The instructions are still available for version 11, I've tested with 13 and you can still mount S3 as primary storage.

    https://docs.nextcloud.com/server/11/admin_manual/configuration_files/primary_storage.html

    My config file looks similar to Dan_Smith's file from here:

    https://help.nextcloud.com/t/external-storage-set-amazon-s3-region/13254/7

    'objectstore' => array(
        'class' => 'OC\\Files\\ObjectStore\\S3',
        'arguments' => array(
          'bucket' => 'bucket-name-in-here',
          'autocreate' => true,
          'key'    => 'awskeyinhere',
          'secret' => 'awssecretinhere',
          'use_ssl' => true,
          'region' => 'aws-region-in-here'
        ),
      ),
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions