Re: how to use mstart clusters for multi-cluster development

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

 



Awesome, thanks for the help, Deepika!

On Mon, Jun 27, 2022 at 1:10 PM Deepika Upadhyay <dupadhya@xxxxxxxxxx> wrote:
We don't have a way to start rbd-mirror using vstart script right now, but that would be good to have I guess.

Yes, rbd-mirror in case of multicluster
bin/rbd-mirror --mon_host $mon_host_for_site_b --key $key

where key could be fetched using :
../src/mrun site-b ceph auth get client.admin

On Mon, Jun 27, 2022 at 12:54 PM Nizamudeen A <nia@xxxxxxxxxx> wrote:
Thank you! This worked perfectly. Also If I want the rbd-mirror daemon to be running, I'll need to start the daemon like rbd-mirror -d right? Is there any other way we can do that? I mean like providing an arg like RBD-MIRROR=1 as the vstart args. 

On Mon, Jun 27, 2022 at 12:19 PM Deepika Upadhyay <dupadhya@xxxxxxxxxx> wrote:
sure, the command could be written as:

../src/mrun $cluster_name dashboard set-rgw-credentials

On Mon, Jun 27, 2022 at 12:13 PM Nizamudeen A <nia@xxxxxxxxxx> wrote:
Thank you so much Deepika.. I forgot to paste the issue there while I was typing the mail. my bad.

The issue I ran into was this btw.

./bin/ceph dashboard set-rgw-credentials
unable to get monitor info from DNS SRV with service name: ceph-mon
2022-06-26T17:43:19.763+0000 7f778bfff700 -1 failed for service _ceph-mon._tcp
2022-06-26T17:43:19.763+0000 7f778bfff700 -1 monclient: get_monmap_and_config cannot identify monitors to contact
[errno 2] RADOS object not found (error connecting to the cluster)

I didn't know about mrun script, but that helps. I'll try it out.

Regards!

On Mon, Jun 27, 2022 at 12:06 PM Deepika Upadhyay <dupadhya@xxxxxxxxxx> wrote:
hey Nizam,

Not sure what issue you ran into, but incase you want to use mstart scripts for setting up rbd-mirroring,

you can use to setup site-a and site-b clusters:
mon=1 osd=1 mds=0 ../src/mstart.sh site-a --short -n --without-dashboard
mon=1 osd=1 mds=0 ../src/mstart.sh site-b --short -n --without-dashboard

after cluster setup you should be able to run ceph command using mrun script like:

`../src/mrun site-a ceph -s`
`../src/mrun site-b ceph -s`

feel free to ping if you have any specific doubt regarding rbd-mirror multicluster setup.

Thanks!

On Sun, Jun 26, 2022 at 11:26 PM Nizamudeen A <nia@xxxxxxxxxx> wrote:
Hi all,

Recently I've been trying to use the mstart script to start the ceph development cluster. But I ran into this issue when I am issuing any ceph commands like we do for the vstart clusters. I am not sure how to run the ceph commands here. Does any one use mstart clusters here for multi-cluster development?

Also It would be great to know which is the easiest way to start a multi-cluster dev environment within the same machine, if I want to play around with rbd-mirroring. 

Thanks in advance. Regards,
--

Nizamudeen A

Software Engineer

Red Hat

_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx

[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux