mkcephfs: work on multiple nodes without using ssh
Probably two phases:
- first generate monmap, fsid, keys, etc. tar it up or something.
- then run the node-specific parts on each node using above tar.
#3 Updated by Sage Weil over 10 years ago
After talking with TV about this, I think this should look more like:
- run node-specific steps on every host. generate crypto key and put it some specific location. e.g.,
[ssh host1] mkcephfs -n osd.1 -k /tmp/foo.key
- suck up the keys
scp host1:/tmp/foo.key /tmp/keys/osd.1
- do common steps (generate fsid, monmap)
- do monitors
scp -rp /tmp/keys monhost1:/tmp/keys
ssh monhost1 mkcephfs -n mon.0 --keydir /tmp/keys ...
...or something. Basically, do monitors last and avoid copying keys to hosts that don't need them.