~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to qa/mon/bootstrap/host.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -ex
 
2
 
 
3
cwd=`pwd`
 
4
cat > conf <<EOF
 
5
[global]
 
6
mon host = 127.0.0.1:6789
 
7
 
 
8
[mon]
 
9
admin socket = 
 
10
log file = $cwd/\$name.log
 
11
debug mon = 20
 
12
debug ms = 1
 
13
EOF
 
14
 
 
15
rm -f mm
 
16
fsid=`uuidgen`
 
17
 
 
18
rm -f keyring
 
19
ceph-authtool --create-keyring keyring --gen-key -n client.admin
 
20
ceph-authtool keyring --gen-key -n mon.
 
21
 
 
22
ceph-mon -c conf -i a --mkfs --fsid $fsid --mon-data mon.a -k keyring
 
23
 
 
24
ceph-mon -c conf -i a --mon-data $cwd/mon.a
 
25
 
 
26
ceph -c conf -k keyring health
 
27
 
 
28
killall ceph-mon
 
29
echo OK
 
 
b'\\ No newline at end of file'