Advertisement
Guest User

Untitled

a guest
Apr 30th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.45 KB | None | 0 0
  1. adamcrume@issdm-41:~/ceph$ bash -x mkcephfs -a -c adam-cluster.conf -k adam-cluster.keyring -v
  2. + BINDIR=/usr/bin
  3. + LIBDIR=/usr/lib/ceph
  4. + '[' /usr/etc = /usr/etc ']'
  5. + ETCDIR=/etc/ceph
  6. + . ceph_common.sh
  7. ++ CCONF=/usr/bin/cconf
  8. ++ default_conf=/etc/ceph/ceph.conf
  9. ++ conf=/etc/ceph/ceph.conf
  10. +++ hostname
  11. +++ cut -d . -f 1
  12. ++ hostname=issdm-41
  13. + allhosts=0
  14. + clobber=
  15. + mkbtrfs=0
  16. + numosd=
  17. + usecrushmapsrc=
  18. + usecrushmap=
  19. + verbose=0
  20. + adminkeyring=
  21. + conf=
  22. + '[' 6 -ge 1 ']'
  23. + case $1 in
  24. + allhosts=1
  25. + shift
  26. + '[' 5 -ge 1 ']'
  27. + case $1 in
  28. + '[' -z adam-cluster.conf ']'
  29. + shift
  30. + conf=adam-cluster.conf
  31. + shift
  32. + '[' 3 -ge 1 ']'
  33. + case $1 in
  34. + '[' -z adam-cluster.keyring ']'
  35. + shift
  36. + adminkeyring=adam-cluster.keyring
  37. + shift
  38. + '[' 1 -ge 1 ']'
  39. + case $1 in
  40. + verbose=1
  41. + shift
  42. + '[' 0 -ge 1 ']'
  43. + '[' -z adam-cluster.conf ']'
  44. + verify_conf
  45. + '[' -x /etc/ceph/fetch_config ']'
  46. + '[' '!' -e adam-cluster.conf ']'
  47. + get_name_list
  48. + orig=
  49. + '[' -z '' ']'
  50. ++ /usr/bin/cconf -c adam-cluster.conf -l mon
  51. ++ egrep -v '^mon$'
  52. ++ /usr/bin/cconf -c adam-cluster.conf -l mds
  53. ++ egrep -v '^mds$'
  54. ++ /usr/bin/cconf -c adam-cluster.conf -l osd
  55. ++ egrep -v '^osd$'
  56. + what='mon.a
  57. mon.b
  58. mds.a
  59. osd.0
  60. osd.1'
  61. + return
  62. + echo mon.a mon.b mds.a osd.0 osd.1
  63. + grep -q mon0
  64. + for name in '$what'
  65. ++ echo mon.a
  66. ++ cut -c 1-3
  67. + type=mon
  68. ++ echo mon.a
  69. ++ cut -c 4-
  70. ++ sed 's/\.//'
  71. + id=a
  72. + num=a
  73. + check_host
  74. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon host
  75. + host=issdm-41
  76. + ssh=
  77. + rootssh=
  78. + dir=/users/adamcrume/ceph
  79. + get_conf user '' user
  80. + var=user
  81. + def=
  82. + key=user
  83. + shift
  84. + shift
  85. + shift
  86. + '[' 1 -eq 1 ']'
  87. + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mon "user" ""'
  88. /usr/bin/cconf -c adam-cluster.conf -i a -t mon "user" ""
  89. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon user ''
  90. + eval 'user=""'
  91. ++ user=
  92. + '[' -n issdm-41 ']'
  93. + '[' issdm-41 '!=' issdm-41 ']'
  94. + echo '=== mon.a === '
  95. === mon.a ===
  96. + return 0
  97. + '[' -n '' ']'
  98. + '[' mon = mon ']'
  99. + '[' -n '' ']'
  100. + echo monkeyring=
  101. monkeyring=
  102. + echo tmpkeyring=
  103. tmpkeyring=
  104. + cp -a
  105. cp: missing file operand
  106. Try `cp --help' for more information.
  107. + '[' -n '' ']'
  108. + get_conf mon_data '' 'mon data'
  109. + var=mon_data
  110. + def=
  111. + key='mon data'
  112. + shift
  113. + shift
  114. + shift
  115. + '[' 1 -eq 1 ']'
  116. + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mon "mon data" ""'
  117. /usr/bin/cconf -c adam-cluster.conf -i a -t mon "mon data" ""
  118. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mon 'mon data' ''
  119. + eval 'mon_data="/srv/mon.a"'
  120. ++ mon_data=/srv/mon.a
  121. + do_cmd '/usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
  122. + '[' -z '' ']'
  123. + '[' 1 -eq 1 ']'
  124. + echo '--- issdm-41# /usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
  125. --- issdm-41# /usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f
  126. + ulimit -c unlimited
  127. ++ whoami
  128. + whoami=adamcrume
  129. + '[' adamcrume = '' ']'
  130. + '[' -z '' ']'
  131. + bash -c '/usr/bin/cmon -c adam-cluster.conf --mkfs -i a --monmap --osdmap -k ; rm -f '
  132. ** WARNING: Ceph is still under heavy development, and is only suitable for **
  133. ** testing and review. Do not trust it with important data. **
  134. error opening output file /var/log/ceph/mon.a.log
  135. ceph version 0.21 (090436f5)
  136. error opening output file /var/log/ceph/mon.a.log
  137. ceph version 0.21 (090436f5)
  138. 12.04.30_13:22:02.169725 7f9f8c388720 auth: can't open key file(s) /etc/ceph/mon.a.keyring
  139. usage: cmon -i monid [--mon-data=pathtodata] [flags]
  140. --debug_mon n
  141. debug monitor level (e.g. 10)
  142. --mkfs
  143. build fresh monitor fs
  144. --debug_ms N
  145. set message debug level (e.g. 1)
  146. -D debug (no fork, log to stdout)
  147. -f foreground (no fork, log to file)
  148. -c ceph.conf or --conf=ceph.conf
  149. get options from given conf file
  150. + '[' -n '' ']'
  151. + cp -av adam-cluster.keyring /srv/mon.a/admin_keyring.bin
  152. cp: cannot stat `adam-cluster.keyring': No such file or directory
  153. + '[' mon = osd ']'
  154. + '[' mon = mds ']'
  155. + for name in '$what'
  156. ++ echo mon.b
  157. ++ cut -c 1-3
  158. + type=mon
  159. ++ echo mon.b
  160. ++ cut -c 4-
  161. ++ sed 's/\.//'
  162. + id=b
  163. + num=b
  164. + check_host
  165. ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon host
  166. + host=issdm-42
  167. + ssh=
  168. + rootssh=
  169. + dir=/users/adamcrume/ceph
  170. + get_conf user '' user
  171. + var=user
  172. + def=
  173. + key=user
  174. + shift
  175. + shift
  176. + shift
  177. + '[' 1 -eq 1 ']'
  178. + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "user" ""'
  179. /usr/bin/cconf -c adam-cluster.conf -i b -t mon "user" ""
  180. ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon user ''
  181. + eval 'user=""'
  182. ++ user=
  183. + '[' -n issdm-42 ']'
  184. + '[' issdm-42 '!=' issdm-41 ']'
  185. + '[' 1 -eq 0 ']'
  186. + '[' -z '' ']'
  187. + ssh='ssh issdm-42'
  188. + rootssh='ssh root@issdm-42'
  189. + get_conf dir /users/adamcrume/ceph 'ssh path'
  190. + var=dir
  191. + def=/users/adamcrume/ceph
  192. + key='ssh path'
  193. + shift
  194. + shift
  195. + shift
  196. + '[' 1 -eq 1 ']'
  197. + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "ssh path" "/users/adamcrume/ceph"'
  198. /usr/bin/cconf -c adam-cluster.conf -i b -t mon "ssh path" "/users/adamcrume/ceph"
  199. ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon 'ssh path' /users/adamcrume/ceph
  200. + eval 'dir="/users/adamcrume/ceph"'
  201. ++ dir=/users/adamcrume/ceph
  202. + echo '=== mon.b === '
  203. === mon.b ===
  204. + return 0
  205. + '[' -n 'ssh issdm-42' ']'
  206. + echo
  207. + grep -v -q ' issdm-42 '
  208. + scp -q adam-cluster.conf issdm-42:adam-cluster.conf
  209. + scp -q issdm-42:
  210. usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
  211. [-l limit] [-o ssh_option] [-P port] [-S program]
  212. [[user@]host1:]file1 ... [[user@]host2:]file2
  213. + scp -q issdm-42:
  214. usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
  215. [-l limit] [-o ssh_option] [-P port] [-S program]
  216. [[user@]host1:]file1 ... [[user@]host2:]file2
  217. + pushed_to=' issdm-42 '
  218. + '[' mon = mon ']'
  219. + '[' -n 'ssh issdm-42' ']'
  220. + '[' -n '' ']'
  221. + scp -q issdm-42:
  222. usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
  223. [-l limit] [-o ssh_option] [-P port] [-S program]
  224. [[user@]host1:]file1 ... [[user@]host2:]file2
  225. + get_conf mon_data '' 'mon data'
  226. + var=mon_data
  227. + def=
  228. + key='mon data'
  229. + shift
  230. + shift
  231. + shift
  232. + '[' 1 -eq 1 ']'
  233. + echo '/usr/bin/cconf -c adam-cluster.conf -i b -t mon "mon data" ""'
  234. /usr/bin/cconf -c adam-cluster.conf -i b -t mon "mon data" ""
  235. ++ /usr/bin/cconf -c adam-cluster.conf -i b -t mon 'mon data' ''
  236. + eval 'mon_data="/srv/mon.b"'
  237. ++ mon_data=/srv/mon.b
  238. + do_cmd '/usr/bin/cmon -c adam-cluster.conf --mkfs -i b --monmap --osdmap -k ; rm -f '
  239. + '[' -z 'ssh issdm-42' ']'
  240. + '[' 1 -eq 1 ']'
  241. + 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 "'
  242. --- 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 "
  243. + 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 '
  244. ** WARNING: Ceph is still under heavy development, and is only suitable for **
  245. ** testing and review. Do not trust it with important data. **
  246. error opening output file /var/log/ceph/mon.b.log
  247. ceph version 0.21 (090436f5)
  248. ceph version 0.21 (090436f5)
  249. error opening output file /var/log/ceph/mon.b.log
  250. 12.04.30_13:22:02.532072 7f876133b720 auth: can't open key file(s) /etc/ceph/mon.b.keyring
  251. usage: cmon -i monid [--mon-data=pathtodata] [flags]
  252. --debug_mon n
  253. debug monitor level (e.g. 10)
  254. --mkfs
  255. build fresh monitor fs
  256. --debug_ms N
  257. set message debug level (e.g. 1)
  258. -D debug (no fork, log to stdout)
  259. -f foreground (no fork, log to file)
  260. -c ceph.conf or --conf=ceph.conf
  261. get options from given conf file
  262. + '[' -n 'ssh issdm-42' ']'
  263. + '[' -n '' ']'
  264. + scp -p adam-cluster.keyring issdm-42:/srv/mon.b/admin_keyring.bin
  265. adam-cluster.keyring: No such file or directory
  266. + '[' mon = osd ']'
  267. + '[' mon = mds ']'
  268. + for name in '$what'
  269. ++ echo mds.a
  270. ++ cut -c 1-3
  271. + type=mds
  272. ++ echo mds.a
  273. ++ cut -c 4-
  274. ++ sed 's/\.//'
  275. + id=a
  276. + num=a
  277. + check_host
  278. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds host
  279. + host=issdm-41
  280. + ssh=
  281. + rootssh=
  282. + dir=/users/adamcrume/ceph
  283. + get_conf user '' user
  284. + var=user
  285. + def=
  286. + key=user
  287. + shift
  288. + shift
  289. + shift
  290. + '[' 1 -eq 1 ']'
  291. + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mds "user" ""'
  292. /usr/bin/cconf -c adam-cluster.conf -i a -t mds "user" ""
  293. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds user ''
  294. + eval 'user=""'
  295. ++ user=
  296. + '[' -n issdm-41 ']'
  297. + '[' issdm-41 '!=' issdm-41 ']'
  298. + echo '=== mds.a === '
  299. === mds.a ===
  300. + return 0
  301. + '[' -n '' ']'
  302. + '[' mds = mon ']'
  303. + '[' mds = osd ']'
  304. + '[' mds = mds ']'
  305. + get_conf keyring '' keyring
  306. + var=keyring
  307. + def=
  308. + key=keyring
  309. + shift
  310. + shift
  311. + shift
  312. + '[' 1 -eq 1 ']'
  313. + echo '/usr/bin/cconf -c adam-cluster.conf -i a -t mds "keyring" ""'
  314. /usr/bin/cconf -c adam-cluster.conf -i a -t mds "keyring" ""
  315. ++ /usr/bin/cconf -c adam-cluster.conf -i a -t mds keyring ''
  316. + eval 'keyring="/etc/ceph/mds.a.keyring"'
  317. ++ keyring=/etc/ceph/mds.a.keyring
  318. + '[' -n /etc/ceph/mds.a.keyring ']'
  319. + '[' -n '' ']'
  320. + cp -v /tmp/keyring.mds.a /etc/ceph/mds.a.keyring
  321. cp: cannot stat `/tmp/keyring.mds.a': No such file or directory
  322. + rm -f /tmp/keyring.mds.a
  323. + for name in '$what'
  324. ++ echo osd.0
  325. ++ cut -c 1-3
  326. + type=osd
  327. ++ echo osd.0
  328. ++ cut -c 4-
  329. ++ sed 's/\.//'
  330. + id=0
  331. + num=0
  332. + check_host
  333. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd host
  334. + host=issdm-41
  335. + ssh=
  336. + rootssh=
  337. + dir=/users/adamcrume/ceph
  338. + get_conf user '' user
  339. + var=user
  340. + def=
  341. + key=user
  342. + shift
  343. + shift
  344. + shift
  345. + '[' 1 -eq 1 ']'
  346. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "user" ""'
  347. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "user" ""
  348. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd user ''
  349. + eval 'user=""'
  350. ++ user=
  351. + '[' -n issdm-41 ']'
  352. + '[' issdm-41 '!=' issdm-41 ']'
  353. + echo '=== osd.0 === '
  354. === osd.0 ===
  355. + return 0
  356. + '[' -n '' ']'
  357. + '[' osd = mon ']'
  358. + '[' osd = osd ']'
  359. + get_conf osd_data '' 'osd data'
  360. + var=osd_data
  361. + def=
  362. + key='osd data'
  363. + shift
  364. + shift
  365. + shift
  366. + '[' 1 -eq 1 ']'
  367. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd data" ""'
  368. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd data" ""
  369. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'osd data' ''
  370. + eval 'osd_data="/srv/osd.0"'
  371. ++ osd_data=/srv/osd.0
  372. + get_conf osd_journal '' 'osd journal'
  373. + var=osd_journal
  374. + def=
  375. + key='osd journal'
  376. + shift
  377. + shift
  378. + shift
  379. + '[' 1 -eq 1 ']'
  380. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd journal" ""'
  381. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "osd journal" ""
  382. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'osd journal' ''
  383. + eval 'osd_journal="/srv/osd.0.journal"'
  384. ++ osd_journal=/srv/osd.0.journal
  385. + get_conf keyring '' keyring
  386. + var=keyring
  387. + def=
  388. + key=keyring
  389. + shift
  390. + shift
  391. + shift
  392. + '[' 1 -eq 1 ']'
  393. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "keyring" ""'
  394. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "keyring" ""
  395. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd keyring ''
  396. + eval 'keyring="/etc/ceph/osd.0.keyring"'
  397. ++ keyring=/etc/ceph/osd.0.keyring
  398. + get_conf btrfs_path /srv/osd.0 'btrfs path'
  399. + var=btrfs_path
  400. + def=/srv/osd.0
  401. + key='btrfs path'
  402. + shift
  403. + shift
  404. + shift
  405. + '[' 1 -eq 1 ']'
  406. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs path" "/srv/osd.0"'
  407. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs path" "/srv/osd.0"
  408. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs path' /srv/osd.0
  409. + eval 'btrfs_path="/srv/osd.0"'
  410. ++ btrfs_path=/srv/osd.0
  411. + get_conf btrfs_devs '' 'btrfs devs'
  412. + var=btrfs_devs
  413. + def=
  414. + key='btrfs devs'
  415. + shift
  416. + shift
  417. + shift
  418. + '[' 1 -eq 1 ']'
  419. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs devs" ""'
  420. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs devs" ""
  421. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs devs' ''
  422. + eval 'btrfs_devs=""'
  423. ++ btrfs_devs=
  424. ++ echo
  425. ++ cut '-d ' -f 1
  426. + first_dev=
  427. + get_conf btrfs_opt noatime 'btrfs options'
  428. + var=btrfs_opt
  429. + def=noatime
  430. + key='btrfs options'
  431. + shift
  432. + shift
  433. + shift
  434. + '[' 1 -eq 1 ']'
  435. + echo '/usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs options" "noatime"'
  436. /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd "btrfs options" "noatime"
  437. ++ /usr/bin/cconf -c adam-cluster.conf -i 0 -t osd 'btrfs options' noatime
  438. + eval 'btrfs_opt="noatime"'
  439. ++ btrfs_opt=noatime
  440. + '[' -n noatime ']'
  441. + btrfs_opt='-o noatime'
  442. + '[' -n /srv/osd.0.journal ']'
  443. + echo ''
  444. + grep -q -w /srv/osd.0.journal
  445. + do_cmd 'test -d /srv/osd.0 || mkdir -p /srv/osd.0'
  446. + '[' -z '' ']'
  447. + '[' 1 -eq 1 ']'
  448. + echo '--- issdm-41# test -d /srv/osd.0 || mkdir -p /srv/osd.0'
  449. --- issdm-41# test -d /srv/osd.0 || mkdir -p /srv/osd.0
  450. + ulimit -c unlimited
  451. ++ whoami
  452. + whoami=adamcrume
  453. + '[' adamcrume = '' ']'
  454. + '[' -z '' ']'
  455. + bash -c 'test -d /srv/osd.0 || mkdir -p /srv/osd.0'
  456. + '[' -n /srv/osd.0.journal ']'
  457. ++ dirname /srv/osd.0.journal
  458. + do_cmd 'test -d /srv/osd.0.journal || mkdir -p /srv'
  459. + '[' -z '' ']'
  460. + '[' 1 -eq 1 ']'
  461. + echo '--- issdm-41# test -d /srv/osd.0.journal || mkdir -p /srv'
  462. --- issdm-41# test -d /srv/osd.0.journal || mkdir -p /srv
  463. + ulimit -c unlimited
  464. ++ whoami
  465. + whoami=adamcrume
  466. + '[' adamcrume = '' ']'
  467. + '[' -z '' ']'
  468. + bash -c 'test -d /srv/osd.0.journal || mkdir -p /srv'
  469. + '[' 0 -eq 1 ']'
  470. + '[' -n '' ']'
  471. + do_cmd '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
  472. + '[' -z '' ']'
  473. + '[' 1 -eq 1 ']'
  474. + echo '--- issdm-41# /usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
  475. --- issdm-41# /usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0
  476. + ulimit -c unlimited
  477. ++ whoami
  478. + whoami=adamcrume
  479. + '[' adamcrume = '' ']'
  480. + '[' -z '' ']'
  481. + bash -c '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
  482. ** WARNING: Ceph is still under heavy development, and is only suitable for **
  483. ** testing and review. Do not trust it with important data. **
  484. error opening output file /var/log/ceph/osd.0.log
  485. ceph version 0.21 (090436f5)
  486. unable to find any monitors in conf
  487. + '[' -z '' ']'
  488. + echo 'failed: '\''/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'\'''
  489. failed: '/usr/bin/cosd -c adam-cluster.conf --monmap -i 0 --mkfs --osd-data /srv/osd.0'
  490. + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement