Re: manually configure radosgw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc and Ken,

Thanks for the tips! I will try to work through this asap.

--
Patrick Dowler
Canadian Astronomy Data Centre
Victoria, BC, Canada


On Tue, 28 Apr 2020 at 16:04, Ken Dreyer <kdreyer@xxxxxxxxxx> wrote:

> On Mon, Apr 27, 2020 at 11:21 AM Patrick Dowler <pdowler.cadc@xxxxxxxxx>
> wrote:
> >
> > I am trying to manually create a radosgw instance for a small development
> > installation. I was able to muddle through and get a working mon, mgr,
> and
> > osd (x2), but the docs for radosgw are based on ceph-deploy which is not
> > part of the octopus release.
>
> Here are the steps I did two weeks ago on CentOS 7 for Nautilus. I
> have not tried Octopus manually yet.
>
> # Install RGW:
> yum -y install ceph-radosgw
> mkdir -p /var/lib/ceph/radosgw/ceph-rgw.ceph1
>
> # My /etc/ceph/ceph.conf file:
> -------
> [global]
> fsid = cbc2b0e2-ed16-4f09-8578-f8c962b1a0ef
> mon initial members = ceph1
> mon host = 192.168.2.101
> public network = 192.168.2.0/24
> cluster network = 192.168.2.0/24
>
> [client.rgw.ceph1]
> host = ceph1
> rgw frontends = "civetweb port=80"
> # Uncomment this to write RGW logs:
> # log file = /var/log/ceph/ceph-rgw.log
>
> # Note: set up wildcard DNS for "*.ceph.example.com" this to work:
> rgw resolve cname = true
> rgw dns name = ceph.example.com
>
> ---------
>
> # Create RGW keyring:
> ceph auth get-or-create client.rgw.ceph1 osd 'allow rwx' mon 'allow
> rw' -o /var/lib/ceph/radosgw/ceph-rgw.ceph1/keyring
>
> # Ensure permissions are correct:
> chown -R ceph:ceph /var/lib/ceph/radosgw/
>
> # Configure RGW as "done":
> sudo -u ceph touch /var/lib/ceph/radosgw/ceph-rgw.ceph1/done
>
> # Start the service:
> systemctl enable --now ceph-radosgw@rgw.ceph1
>
> # Create a RGW user:
> radosgw-admin user create --uid=kdreyer --display-name="Ken Dreyer"
> --email=kdreyer@xxxxxxxxxxx
>
> ------
>
> Then, on the s3 client:
>
> # Write our config file:
> s3cmd --no-ssl --access_key=ASDF123456 --secret_key=FOOBAR123
> --host=ceph.example.com --host-bucket="%(bucket)s.ceph.example.com"
> --dump-config > $HOME/.s3cfg
>
> # Make a "kdreyer" bucket
> s3cmd mb s3://kdreyer
>
> # Make the whole bucket public:
> s3cmd setacl s3://kdreyer/ --acl-public
>
> # Upload a test file:
> echo "Hello World" > /tmp/hello.txt
> s3cmd put /tmp/hello.txt s3://kdreyer
>
> # Fetch file:
> curl http://kdreyer.ceph.example.com/hello.txt
>
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux