Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adamcrume@issdm-41:~/ceph$ bash -x mkcephfs -a -c adam-cluster.conf -k adam-cluster.keyring -v
- + BINDIR=/usr/bin
- + LIBDIR=/usr/lib/ceph
- + '[' /usr/etc = /usr/etc ']'
- + ETCDIR=/etc/ceph
- + . ceph_common.sh
- ++ CCONF=/usr/bin/cconf
- ++ default_conf=/etc/ceph/ceph.conf
- ++ conf=/etc/ceph/ceph.conf
- +++ hostname
- +++ cut -d . -f 1
- ++ hostname=issdm-41
- + allhosts=0
- + clobber=
- + mkbtrfs=0
- + numosd=
- + usecrushmapsrc=
- + usecrushmap=
- + verbose=0
- + adminkeyring=
- + conf=
- + '[' 6 -ge 1 ']'
- + case $1 in
- + allhosts=1
- + shift
- + '[' 5 -ge 1 ']'
- + case $1 in
- + '[' -z adam-cluster.conf ']'
- + shift
- + conf=adam-cluster.conf
- + shift
- + '[' 3 -ge 1 ']'
- + case $1 in
- + '[' -z adam-cluster.keyring ']'
- + shift
- + adminkeyring=adam-cluster.keyring
- + shift
- + '[' 1 -ge 1 ']'
- + case $1 in
- + verbose=1
- + shift
- + '[' 0 -ge 1 ']'
- + '[' -z adam-cluster.conf ']'
- + verify_conf
- + '[' -x /etc/ceph/fetch_config ']'
- + '[' '!' -e adam-cluster.conf ']'
- + get_name_list
- + orig=
- + '[' -z '' ']'
- ++ /usr/bin/cconf -c adam-cluster.conf -l mon
- ++ egrep -v '^mon$'
- ++ /usr/bin/cconf -c adam-cluster.conf -l mds
- ++ egrep -v '^mds$'
- ++ /usr/bin/cconf -c adam-cluster.conf -l osd
- ++ egrep -v '^osd$'
- + what='mon.a
- mon.b
- mds.a
- osd.0
- osd.1'
- + return
- + echo mon.a mon.b mds.a osd.0 osd.1
- + grep -q mon0
- + for name in '$what'
- ++ echo mon.a
- ++ cut -c 1-3
- + type=mon
- ++ echo mon.a
- ++ cut -c 4-
- ++ sed 's/\.//'
- + id=a
- + num=a
- + check_host
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon host
- + host=issdm-41
- + ssh=
- + rootssh=
- + dir=/users/adamcrume/ceph
- + get_conf user '' user
- + var=user
- + def=
- + key=user
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mon "user" ""'
- /usr/bin/cconf -c adam-cluster.conf -i a -t mon "user" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon user ''
- + eval 'user=""'
- ++ user=
- + '[' -n issdm-41 ']'
- + '[' issdm-41 '!=' issdm-41 ']'
- + echo '=== mon.a === '
- === mon.a ===
- + return 0
- + '[' -n '' ']'
- + '[' mon = mon ']'
- + '[' -n '' ']'
- + echo monkeyring=
- monkeyring=
- + echo tmpkeyring=
- tmpkeyring=
- + cp -a
- cp: missing file operand
- Try `cp --help' for more information.
- + '[' -n '' ']'
- + get_conf mon_data '' 'mon data'
- + var=mon_data
- + def=
- + key='mon data'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mon "mon data" ""'
- /usr/bin/cconf -c adam-cluster.conf -i a -t mon "mon data" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon 'mon data' ''
- + eval 'mon_data="/srv/mon.a"'
- ++ mon_data=/srv/mon.a
- + do_cmd '/usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
- + '[' -z '' ']'
- + '[' 1 -eq 1 ']'
- + echo '--- issdm-41# /usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
- --- issdm-41# /usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f
- + ulimit -c unlimited
- ++ whoami
- + whoami=adamcrume
- + '[' adamcrume = '' ']'
- + '[' -z '' ']'
- + bash -c '/usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
- ** WARNING: Ceph is still under heavy development, and is only suitable for **
- ** testing and review. Do not trust it with important data. **
- error opening output file /var/log/ceph/mon.a.log
- ceph version 0.21 (090436f5)
- error opening output file /var/log/ceph/mon.a.log
- ceph version 0.21 (090436f5)
- 12.04.30_13:22:02.169725 7f9f8c388720 auth: can't open key file(s) /etc/ceph/mon.a.keyring
- usage: cmon -i monid [--mon-data=pathtodata] [flags]
- --debug_mon n
- debug monitor level (e.g. 10)
- --mkfs
- build fresh monitor fs
- --debug_ms N
- set message debug level (e.g. 1)
- -D debug (no fork, log to stdout)
- -f foreground (no fork, log to file)
- -c ceph.conf or --conf=ceph.conf
- get options from given conf file
- + '[' -n '' ']'
- + cp -av adam-cluster.keyring /srv/mon.a/admin_keyring.bin
- cp: cannot stat `adam-cluster.keyring': No such file or directory
- + '[' mon = osd ']'
- + '[' mon = mds ']'
- + for name in '$what'
- ++ echo mon.b
- ++ cut -c 1-3
- + type=mon
- ++ echo mon.b
- ++ cut -c 4-
- ++ sed 's/\.//'
- + id=b
- + num=b
- + check_host
- ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon host
- + host=issdm-42
- + ssh=
- + rootssh=
- + dir=/users/adamcrume/ceph
- + get_conf user '' user
- + var=user
- + def=
- + key=user
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "user" ""'
- /usr/bin/cconf -c adam-cluster.conf -i b -t mon "user" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon user ''
- + eval 'user=""'
- ++ user=
- + '[' -n issdm-42 ']'
- + '[' issdm-42 '!=' issdm-41 ']'
- + '[' 1 -eq 0 ']'
- + '[' -z '' ']'
- + ssh='ssh issdm-42'
- + rootssh='ssh root@issdm-42'
- + get_conf dir /users/adamcrume/ceph 'ssh path'
- + var=dir
- + def=/users/adamcrume/ceph
- + key='ssh path'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "ssh path" "/users/adamcrume/ceph"'
- /usr/bin/cconf -c adam-cluster.conf -i b -t mon "ssh path" "/users/adamcrume/ceph"
- ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon 'ssh path' /users/adamcrume/ceph
- + eval 'dir="/users/adamcrume/ceph"'
- ++ dir=/users/adamcrume/ceph
- + echo '=== mon.b === '
- === mon.b ===
- + return 0
- + '[' -n 'ssh issdm-42' ']'
- + echo
- + grep -v -q ' issdm-42 '
- + scp -q adam-cluster.conf issdm-42:adam-cluster.conf
- + scp -q issdm-42:
- usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
- [-l limit] [-o ssh_option] [-P port] [-S program]
- [[user@]host1:]file1 ... [[user@]host2:]file2
- + scp -q issdm-42:
- usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
- [-l limit] [-o ssh_option] [-P port] [-S program]
- [[user@]host1:]file1 ... [[user@]host2:]file2
- + pushed_to=' issdm-42 '
- + '[' mon = mon ']'
- + '[' -n 'ssh issdm-42' ']'
- + '[' -n '' ']'
- + scp -q issdm-42:
- usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
- [-l limit] [-o ssh_option] [-P port] [-S program]
- [[user@]host1:]file1 ... [[user@]host2:]file2
- + get_conf mon_data '' 'mon data'
- + var=mon_data
- + def=
- + key='mon data'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "mon data" ""'
- /usr/bin/cconf -c adam-cluster.conf -i b -t mon "mon data" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon 'mon data' ''
- + eval 'mon_data="/srv/mon.b"'
- ++ mon_data=/srv/mon.b
- + do_cmd '/usr/bin/cmon -c adam-cluster.conf --mkfs -i b --monmap --osdmap -k ; rm -f '
- + '[' -z 'ssh issdm-42' ']'
- + '[' 1 -eq 1 ']'
- + echo '--- ssh issdm-42 "cd /users/adamcrume/ceph ; ulimit -c unlimited ; /usr/bin/cmon -c adam-cluster.conf --mkfs -i b --monmap --osdmap -k ; rm -f "'
- --- ssh issdm-42 "cd /users/adamcrume/ceph ; ulimit -c unlimited ; /usr/bin/cmon -c adam-cluster.conf --mkfs -i b --monmap --osdmap -k ; rm -f "
- + ssh issdm-42 'cd /users/adamcrume/ceph ; ulimit -c unlimited ; /usr/bin/cmon -c adam-cluster.conf --mkfs -i b --monmap --osdmap -k ; rm -f '
- ** WARNING: Ceph is still under heavy development, and is only suitable for **
- ** testing and review. Do not trust it with important data. **
- error opening output file /var/log/ceph/mon.b.log
- ceph version 0.21 (090436f5)
- ceph version 0.21 (090436f5)
- error opening output file /var/log/ceph/mon.b.log
- 12.04.30_13:22:02.532072 7f876133b720 auth: can't open key file(s) /etc/ceph/mon.b.keyring
- usage: cmon -i monid [--mon-data=pathtodata] [flags]
- --debug_mon n
- debug monitor level (e.g. 10)
- --mkfs
- build fresh monitor fs
- --debug_ms N
- set message debug level (e.g. 1)
- -D debug (no fork, log to stdout)
- -f foreground (no fork, log to file)
- -c ceph.conf or --conf=ceph.conf
- get options from given conf file
- + '[' -n 'ssh issdm-42' ']'
- + '[' -n '' ']'
- + scp -p adam-cluster.keyring issdm-42:/srv/mon.b/admin_keyring.bin
- adam-cluster.keyring: No such file or directory
- + '[' mon = osd ']'
- + '[' mon = mds ']'
- + for name in '$what'
- ++ echo mds.a
- ++ cut -c 1-3
- + type=mds
- ++ echo mds.a
- ++ cut -c 4-
- ++ sed 's/\.//'
- + id=a
- + num=a
- + check_host
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds host
- + host=issdm-41
- + ssh=
- + rootssh=
- + dir=/users/adamcrume/ceph
- + get_conf user '' user
- + var=user
- + def=
- + key=user
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mds "user" ""'
- /usr/bin/cconf -c adam-cluster.conf -i a -t mds "user" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds user ''
- + eval 'user=""'
- ++ user=
- + '[' -n issdm-41 ']'
- + '[' issdm-41 '!=' issdm-41 ']'
- + echo '=== mds.a === '
- === mds.a ===
- + return 0
- + '[' -n '' ']'
- + '[' mds = mon ']'
- + '[' mds = osd ']'
- + '[' mds = mds ']'
- + get_conf keyring '' keyring
- + var=keyring
- + def=
- + key=keyring
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mds "keyring" ""'
- /usr/bin/cconf -c adam-cluster.conf -i a -t mds "keyring" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds keyring ''
- + eval 'keyring="/etc/ceph/mds.a.keyring"'
- ++ keyring=/etc/ceph/mds.a.keyring
- + '[' -n /etc/ceph/mds.a.keyring ']'
- + '[' -n '' ']'
- + cp -v /tmp/keyring.mds.a /etc/ceph/mds.a.keyring
- cp: cannot stat `/tmp/keyring.mds.a': No such file or directory
- + rm -f /tmp/keyring.mds.a
- + for name in '$what'
- ++ echo osd.0
- ++ cut -c 1-3
- + type=osd
- ++ echo osd.0
- ++ cut -c 4-
- ++ sed 's/\.//'
- + id=0
- + num=0
- + check_host
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd host
- + host=issdm-41
- + ssh=
- + rootssh=
- + dir=/users/adamcrume/ceph
- + get_conf user '' user
- + var=user
- + def=
- + key=user
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "user" ""'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "user" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd user ''
- + eval 'user=""'
- ++ user=
- + '[' -n issdm-41 ']'
- + '[' issdm-41 '!=' issdm-41 ']'
- + echo '=== osd.0 === '
- === osd.0 ===
- + return 0
- + '[' -n '' ']'
- + '[' osd = mon ']'
- + '[' osd = osd ']'
- + get_conf osd_data '' 'osd data'
- + var=osd_data
- + def=
- + key='osd data'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd data" ""'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd data" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'osd data' ''
- + eval 'osd_data="/srv/osd.0"'
- ++ osd_data=/srv/osd.0
- + get_conf osd_journal '' 'osd journal'
- + var=osd_journal
- + def=
- + key='osd journal'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd journal" ""'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd journal" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'osd journal' ''
- + eval 'osd_journal="/srv/osd.0.journal"'
- ++ osd_journal=/srv/osd.0.journal
- + get_conf keyring '' keyring
- + var=keyring
- + def=
- + key=keyring
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "keyring" ""'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "keyring" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd keyring ''
- + eval 'keyring="/etc/ceph/osd.0.keyring"'
- ++ keyring=/etc/ceph/osd.0.keyring
- + get_conf btrfs_path /srv/osd.0 'btrfs path'
- + var=btrfs_path
- + def=/srv/osd.0
- + key='btrfs path'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs path" "/srv/osd.0"'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs path" "/srv/osd.0"
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs path' /srv/osd.0
- + eval 'btrfs_path="/srv/osd.0"'
- ++ btrfs_path=/srv/osd.0
- + get_conf btrfs_devs '' 'btrfs devs'
- + var=btrfs_devs
- + def=
- + key='btrfs devs'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs devs" ""'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs devs" ""
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs devs' ''
- + eval 'btrfs_devs=""'
- ++ btrfs_devs=
- ++ echo
- ++ cut '-d ' -f 1
- + first_dev=
- + get_conf btrfs_opt noatime 'btrfs options'
- + var=btrfs_opt
- + def=noatime
- + key='btrfs options'
- + shift
- + shift
- + shift
- + '[' 1 -eq 1 ']'
- + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs options" "noatime"'
- /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs options" "noatime"
- ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs options' noatime
- + eval 'btrfs_opt="noatime"'
- ++ btrfs_opt=noatime
- + '[' -n noatime ']'
- + btrfs_opt='-o noatime'
- + '[' -n /srv/osd.0.journal ']'
- + echo ''
- + grep -q -w /srv/osd.0.journal
- + do_cmd 'test -d /srv/osd.0 || mkdir -p /srv/osd.0'
- + '[' -z '' ']'
- + '[' 1 -eq 1 ']'
- + echo '--- issdm-41# test -d /srv/osd.0 || mkdir -p /srv/osd.0'
- --- issdm-41# test -d /srv/osd.0 || mkdir -p /srv/osd.0
- + ulimit -c unlimited
- ++ whoami
- + whoami=adamcrume
- + '[' adamcrume = '' ']'
- + '[' -z '' ']'
- + bash -c 'test -d /srv/osd.0 || mkdir -p /srv/osd.0'
- + '[' -n /srv/osd.0.journal ']'
- ++ dirname /srv/osd.0.journal
- + do_cmd 'test -d /srv/osd.0.journal || mkdir -p /srv'
- + '[' -z '' ']'
- + '[' 1 -eq 1 ']'
- + echo '--- issdm-41# test -d /srv/osd.0.journal || mkdir -p /srv'
- --- issdm-41# test -d /srv/osd.0.journal || mkdir -p /srv
- + ulimit -c unlimited
- ++ whoami
- + whoami=adamcrume
- + '[' adamcrume = '' ']'
- + '[' -z '' ']'
- + bash -c 'test -d /srv/osd.0.journal || mkdir -p /srv'
- + '[' 0 -eq 1 ']'
- + '[' -n '' ']'
- + do_cmd '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
- + '[' -z '' ']'
- + '[' 1 -eq 1 ']'
- + echo '--- issdm-41# /usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
- --- issdm-41# /usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0
- + ulimit -c unlimited
- ++ whoami
- + whoami=adamcrume
- + '[' adamcrume = '' ']'
- + '[' -z '' ']'
- + bash -c '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
- ** WARNING: Ceph is still under heavy development, and is only suitable for **
- ** testing and review. Do not trust it with important data. **
- error opening output file /var/log/ceph/osd.0.log
- ceph version 0.21 (090436f5)
- unable to find any monitors in conf
- + '[' -z '' ']'
- + echo 'failed: '\''/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'\'''
- failed: '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
- + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement