Tuesday, April 16, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1177  / 1 Year ago, wed, december 21, 2022, 1:11:07

i am trying to deploy HA ceph like shown in OpenstackHA But i wanted to deploy Ceph MON and Ceph OSD on same 3 machines. So in order to that, my 1st cmd will be,



juju deploy --config local.yaml -n 3 local:ceph


and 2nd cmd, i am wondering how i should do, coz i want to deploy CEPH-OSD to same machines.
something like this,



juju deploy --force-machine 0 --config ceph.yaml local:ceph-osd
juju deploy --force-machine 1 --config ceph.yaml local:ceph-osd
juju deploy --force-machine 2 --config ceph.yaml local:ceph-osd


or can it be like this,



juju deploy --force-machine 0,1,2 --config ceph.yaml -n 3 local:ceph-osd


I have not tried these command actually and not good aware of cmd syntax also, thats why i am asking it here


More From » juju

 Answers
6
$ juju add-unit -h
usage: juju add-unit [options] <service name>
purpose: add a service unit

options:
-e, --environment (= "local")
juju environment to operate in
-n, --num-units (= 1)
number of service units to add
--to (= "")
the machine or container to deploy the unit in, bypasses constraints

Service units can be added to a specific machine using the --to argument.
Examples:
juju add-unit mysql --to 23 (Add unit to machine 23)
juju add-unit mysql --to 24/lxc/3 (Add unit to lxc container 3 on host machine 24)
juju add-unit mysql --to lxc:25 (Add unit to a new lxc container on host machine 25)

[#29878] Thursday, December 22, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
piscen

Total Points: 134
Total Questions: 117
Total Answers: 133

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
;