Advertisement
Guest User

Untitled

a guest
Dec 16th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.53 KB | None | 0 0
  1. [root@kvsrv03 ~]# diff -u /usr/sbin/ceph-disk_orig /usr/sbin/ceph-disk
  2. --- /usr/sbin/ceph-disk_orig 2015-12-16 22:58:05.743929124 +0000
  3. +++ /usr/sbin/ceph-disk 2015-12-16 23:25:00.354817378 +0000
  4. @@ -1218,6 +1218,8 @@
  5. """
  6. LOG.debug('Calling partprobe on %s device %s', description, dev)
  7. command_check_call(['udevadm', 'settle'])
  8. + LOG.debug('Sleeping for 45 seconds!')
  9. + time.sleep(45)
  10. command_check_call(['partprobe', dev])
  11. command_check_call(['udevadm', 'settle'])
  12.  
  13.  
  14. [ceph@ceph-admin01 openstack_eqsy3]$ ceph-deploy disk prepare kvsrv03:/dev/sdx
  15. [ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
  16. [ceph_deploy.cli][INFO ] Invoked (1.5.30): /usr/bin/ceph-deploy disk prepare kvsrv03:/dev/sdx
  17. [ceph_deploy.cli][INFO ] ceph-deploy options:
  18. [ceph_deploy.cli][INFO ] username : None
  19. [ceph_deploy.cli][INFO ] disk : [('kvsrv03', '/dev/sdx', None)]
  20. [ceph_deploy.cli][INFO ] dmcrypt : False
  21. [ceph_deploy.cli][INFO ] verbose : False
  22. [ceph_deploy.cli][INFO ] overwrite_conf : False
  23. [ceph_deploy.cli][INFO ] subcommand : prepare
  24. [ceph_deploy.cli][INFO ] dmcrypt_key_dir : /etc/ceph/dmcrypt-keys
  25. [ceph_deploy.cli][INFO ] quiet : False
  26. [ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f75af5e67a0>
  27. [ceph_deploy.cli][INFO ] cluster : ceph
  28. [ceph_deploy.cli][INFO ] fs_type : xfs
  29. [ceph_deploy.cli][INFO ] func : <function disk at 0x7f75af5d7c08>
  30. [ceph_deploy.cli][INFO ] ceph_conf : None
  31. [ceph_deploy.cli][INFO ] default_release : False
  32. [ceph_deploy.cli][INFO ] zap_disk : False
  33. [ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks kvsrv03:/dev/sdx:
  34. [kvsrv03][DEBUG ] connection detected need for sudo
  35. [kvsrv03][DEBUG ] connected to host: kvsrv03
  36. [kvsrv03][DEBUG ] detect platform information from remote host
  37. [kvsrv03][DEBUG ] detect machine type
  38. [kvsrv03][DEBUG ] find the location of an executable
  39. [ceph_deploy.osd][INFO ] Distro info: CentOS Linux 7.2.1511 Core
  40. [ceph_deploy.osd][DEBUG ] Deploying osd to kvsrv03
  41. [kvsrv03][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
  42. [ceph_deploy.osd][DEBUG ] Preparing host kvsrv03 disk /dev/sdx journal None activate False
  43. [kvsrv03][INFO ] Running command: sudo ceph-disk -v prepare --cluster ceph --fs-type xfs -- /dev/sdx
  44. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --cluster ceph
  45. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --cluster ceph
  46. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --cluster ceph
  47. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  48. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  49. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  50. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
  51. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
  52. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mkfs_options_xfs
  53. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
  54. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_fs_mount_options_xfs
  55. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
  56. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_cryptsetup_parameters
  57. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_key_size
  58. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_type
  59. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  60. [kvsrv03][WARNIN] INFO:ceph-disk:Will colocate journal with data on /dev/sdx
  61. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  62. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  63. [kvsrv03][WARNIN] DEBUG:ceph-disk:Creating journal partition num 2 size 5120 on /dev/sdx
  64. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/sgdisk --new=2:0:5120M --change-name=2:ceph journal --partition-guid=2:2a49eed4-53f0-4d7a-b37e-e090f65b10e8 --typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 --mbrtogpt -- /dev/sdx
  65. [kvsrv03][DEBUG ] The operation has completed successfully.
  66. [kvsrv03][WARNIN] DEBUG:ceph-disk:Calling partprobe on prepared device /dev/sdx
  67. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  68. [kvsrv03][WARNIN] DEBUG:ceph-disk:Sleeping for 45 seconds!
  69. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdx
  70. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  71. [kvsrv03][WARNIN] DEBUG:ceph-disk:Journal is GPT partition /dev/disk/by-partuuid/2a49eed4-53f0-4d7a-b37e-e090f65b10e8
  72. [kvsrv03][WARNIN] DEBUG:ceph-disk:Journal is GPT partition /dev/disk/by-partuuid/2a49eed4-53f0-4d7a-b37e-e090f65b10e8
  73. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  74. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  75. [kvsrv03][WARNIN] DEBUG:ceph-disk:Creating osd partition on /dev/sdx
  76. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/sgdisk --largest-new=1 --change-name=1:ceph data --partition-guid=1:901e2aa2-a80f-433e-866c-16d6e6c517ed --typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be -- /dev/sdx
  77. [kvsrv03][DEBUG ] The operation has completed successfully.
  78. [kvsrv03][WARNIN] DEBUG:ceph-disk:Calling partprobe on created device /dev/sdx
  79. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  80. [kvsrv03][WARNIN] DEBUG:ceph-disk:Sleeping for 45 seconds!
  81. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdx
  82. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  83. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  84. [kvsrv03][WARNIN] DEBUG:ceph-disk:Creating xfs fs on /dev/sdx1
  85. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/mkfs -t xfs -f -i size=2048 -- /dev/sdx1
  86. [kvsrv03][DEBUG ] meta-data=/dev/sdx1 isize=2048 agcount=4, agsize=24091717 blks
  87. [kvsrv03][DEBUG ] = sectsz=4096 attr=2, projid32bit=1
  88. [kvsrv03][DEBUG ] = crc=0 finobt=0
  89. [kvsrv03][DEBUG ] data = bsize=4096 blocks=96366865, imaxpct=25
  90. [kvsrv03][DEBUG ] = sunit=0 swidth=0 blks
  91. [kvsrv03][DEBUG ] naming =version 2 bsize=4096 ascii-ci=0 ftype=0
  92. [kvsrv03][DEBUG ] log =internal log bsize=4096 blocks=47054, version=2
  93. [kvsrv03][DEBUG ] = sectsz=4096 sunit=1 blks, lazy-count=1
  94. [kvsrv03][DEBUG ] realtime =none extsz=4096 blocks=0, rtextents=0
  95. [kvsrv03][WARNIN] DEBUG:ceph-disk:Mounting /dev/sdx1 on /var/lib/ceph/tmp/mnt.LE5kRc with options noatime,inode64
  96. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/mount -t xfs -o noatime,inode64 -- /dev/sdx1 /var/lib/ceph/tmp/mnt.LE5kRc
  97. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon /var/lib/ceph/tmp/mnt.LE5kRc
  98. [kvsrv03][WARNIN] DEBUG:ceph-disk:Preparing osd data dir /var/lib/ceph/tmp/mnt.LE5kRc
  99. [kvsrv03][WARNIN] DEBUG:ceph-disk:Creating symlink /var/lib/ceph/tmp/mnt.LE5kRc/journal -> /dev/disk/by-partuuid/2a49eed4-53f0-4d7a-b37e-e090f65b10e8
  100. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon -R /var/lib/ceph/tmp/mnt.LE5kRc/ceph_fsid.88736.tmp
  101. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.LE5kRc/ceph_fsid.88736.tmp
  102. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon -R /var/lib/ceph/tmp/mnt.LE5kRc/fsid.88736.tmp
  103. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.LE5kRc/fsid.88736.tmp
  104. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon -R /var/lib/ceph/tmp/mnt.LE5kRc/journal_uuid.88736.tmp
  105. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.LE5kRc/journal_uuid.88736.tmp
  106. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon -R /var/lib/ceph/tmp/mnt.LE5kRc/magic.88736.tmp
  107. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.LE5kRc/magic.88736.tmp
  108. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/restorecon -R /var/lib/ceph/tmp/mnt.LE5kRc
  109. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/tmp/mnt.LE5kRc
  110. [kvsrv03][WARNIN] DEBUG:ceph-disk:Unmounting /var/lib/ceph/tmp/mnt.LE5kRc
  111. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.LE5kRc
  112. [kvsrv03][WARNIN] DEBUG:ceph-disk:get_dm_uuid /dev/sdx uuid path is /sys/dev/block/65:112/dm/uuid
  113. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/sdx
  114. [kvsrv03][DEBUG ] Warning: The kernel is still using the old partition table.
  115. [kvsrv03][DEBUG ] The new table will be used at the next reboot.
  116. [kvsrv03][DEBUG ] The operation has completed successfully.
  117. [kvsrv03][WARNIN] DEBUG:ceph-disk:Calling partprobe on prepared device /dev/sdx
  118. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  119. [kvsrv03][WARNIN] DEBUG:ceph-disk:Sleeping for 45 seconds!
  120. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /sbin/partprobe /dev/sdx
  121. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm settle
  122. [kvsrv03][WARNIN] INFO:ceph-disk:Running command: /usr/bin/udevadm trigger --action=add --sysname-match sdx1
  123. [kvsrv03][INFO ] checking OSD status...
  124. [kvsrv03][INFO ] Running command: sudo ceph --cluster=ceph osd stat --format=json
  125. [ceph_deploy.osd][DEBUG ] Host kvsrv03 is now ready for osd use.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement