I'd love to get helped out; it'd be much appreciated.
Best Wishes,
Nicholas.
On Tue, Mar 14, 2017 at 4:51 PM Gunwoo Gim <wind8702@xxxxxxxxx> wrote:
Hello, I'm trying to deploy a ceph filestore cluster with LVM using ceph-ansible playbook. I've been fixing a couple of code blocks in ceph-ansible and ceph-disk/main.py and made some progress but now I'm stuck again; 'ceph-disk activate osd' fails.Please let me just show you the error message and the output of 'ls':~ # ceph-disk -v activate /dev/mapper/vg--hdd1-lv--hdd1p1main_activate: path = /dev/mapper/vg--hdd1-lv--hdd1p1get_dm_uuid: get_dm_uuid /dev/mapper/vg--hdd1-lv--hdd1p1 uuid path is /sys/dev/block/252:12/dm/uuidget_dm_uuid: get_dm_uuid /dev/mapper/vg--hdd1-lv--hdd1p1 uuid is part1-LVM-ETn7wXOmnesc9MNpleTYzP29jjOkp19J12ELrQez43LFPfdFc1dItn8EFF299401command: Running command: /sbin/blkid -p -s TYPE -o value -- /dev/mapper/vg--hdd1-lv--hdd1p1command: Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfsmount: Mounting /dev/mapper/vg--hdd1-lv--hdd1p1 on /var/lib/ceph/tmp/mnt.cJDc7I with options noatime,largeio,inode64,swalloccommand_check_call: Running command: /bin/mount -t xfs -o noatime,largeio,inode64,swalloc -- /dev/mapper/vg--hdd1-lv--hdd1p1 /var/lib/ceph/tmp/mnt.cJDc7Iactivate: Cluster uuid is 0bc0ea6d-ed8a-4ef0-9e82-ba6454a7214ecommand: Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsidactivate: Cluster name is cephactivate: OSD uuid is 5097be3f-349e-480d-8b0d-d68c13ae2f72activate: OSD id is 1activate: Initializing OSD...command_check_call: Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o /var/lib/ceph/tmp/mnt.cJDc7I/activate.monmapgot monmap epoch 2command: Running command: /usr/bin/timeout 300 ceph-osd --cluster ceph --mkfs --mkkey -i 1 --monmap /var/lib/ceph/tmp/mnt.cJDc7I/activate.monmap --osd-data /var/lib/ceph/tmp/mnt.cJDc7I --osd-journal /var/lib/ceph/tmp/mnt.cJDc7I/journal --osd-uuid 5097be3f-349e-480d-8b0d-d68c13ae2f72 --keyring /var/lib/ceph/tmp/mnt.cJDc7I/keyring --setuser ceph --setgroup cephmount_activate: Failed to activateunmount: Unmounting /var/lib/ceph/tmp/mnt.cJDc7Icommand_check_call: Running command: /bin/umount -- /var/lib/ceph/tmp/mnt.cJDc7ITraceback (most recent call last):File "/usr/sbin/ceph-disk", line 9, in <module>load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')()File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5251, in runmain(sys.argv[1:])File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5202, in mainargs.func(args)File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3553, in main_activatereactivate=args.reactivate,File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3310, in mount_activate(osd_id, cluster) = activate(path, activate_key_template, init)File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3486, in activatekeyring=keyring,File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 2948, in mkfs'--setgroup', get_ceph_group(),File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 2895, in ceph_osd_mkfsraise Error('%s failed : %s' % (str(arguments), error))ceph_disk.main.Error: Error: ['ceph-osd', '--cluster', 'ceph', '--mkfs', '--mkkey', '-i', u'1', '--monmap', '/var/lib/ceph/tmp/mnt.cJDc7I/activate.monmap', '--osd-data', '/var/lib/ceph/tmp/mnt.cJDc7I', '--osd-journal', '/var/lib/ceph/tmp/mnt.cJDc7I/journal', '--osd-uuid', u'5097be3f-349e-480d-8b0d-d68c13ae2f72', '--keyring', '/var/lib/ceph/tmp/mnt.cJDc7I/keyring', '--setuser', 'ceph', '--setgroup', 'ceph'] failed : 2017-03-14 16:01:10.051537 7fdc9a025a40 -1 filestore(/var/lib/ceph/tmp/mnt.cJDc7I) mkjournal error creating journal on /var/lib/ceph/tmp/mnt.cJDc7I/journal: (13) Permission denied2017-03-14 16:01:10.051565 7fdc9a025a40 -1 OSD::mkfs: ObjectStore::mkfs failed with error -132017-03-14 16:01:10.051624 7fdc9a025a40 -1 ** ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.cJDc7I: (13) Permission denied~ # ls -al /var/lib/ceph/tmptotal 8drwxr-xr-x 2 ceph ceph 4096 Mar 14 16:01 .drwxr-xr-x 11 ceph ceph 4096 Mar 14 11:12 ..-rwxr-xr-x 1 root root 0 Mar 14 11:12 ceph-disk.activate.lock-rwxr-xr-x 1 root root 0 Mar 14 11:44 ceph-disk.prepare.lock~ # ls -l /dev/mapper/vg-*-lv-*p*lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd1-lv--hdd1p1 -> ../dm-12lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd2-lv--hdd2p1 -> ../dm-14lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd3-lv--hdd3p1 -> ../dm-16lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd4-lv--hdd4p1 -> ../dm-18lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd5-lv--hdd5p1 -> ../dm-20lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd6-lv--hdd6p1 -> ../dm-22lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd7-lv--hdd7p1 -> ../dm-24lrwxrwxrwx 1 root root 8 Mar 14 13:46 /dev/mapper/vg--hdd8-lv--hdd8p1 -> ../dm-26lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--hdd9-lv--hdd9p1 -> ../dm-28lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd1-lv--ssd1p1 -> ../dm-11lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd1-lv--ssd1p2 -> ../dm-15lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd1-lv--ssd1p3 -> ../dm-19lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd1-lv--ssd1p4 -> ../dm-23lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd1-lv--ssd1p5 -> ../dm-27lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd2-lv--ssd2p1 -> ../dm-13lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd2-lv--ssd2p2 -> ../dm-17lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd2-lv--ssd2p3 -> ../dm-21lrwxrwxrwx 1 root root 8 Mar 14 13:47 /dev/mapper/vg--ssd2-lv--ssd2p4 -> ../dm-25~ # ls -l /dev/dm-*brw-rw---- 1 root disk 252, 0 Mar 14 13:46 /dev/dm-0brw-rw---- 1 root disk 252, 1 Mar 14 13:46 /dev/dm-1brw-rw---- 1 root disk 252, 10 Mar 14 13:47 /dev/dm-10brw-rw---- 1 ceph ceph 252, 11 Mar 14 13:47 /dev/dm-11brw-rw---- 1 ceph ceph 252, 12 Mar 14 13:46 /dev/dm-12brw-rw---- 1 ceph ceph 252, 13 Mar 14 13:47 /dev/dm-13brw-rw---- 1 ceph ceph 252, 14 Mar 14 13:46 /dev/dm-14brw-rw---- 1 ceph ceph 252, 15 Mar 14 13:47 /dev/dm-15brw-rw---- 1 ceph ceph 252, 16 Mar 14 13:46 /dev/dm-16brw-rw---- 1 ceph ceph 252, 17 Mar 14 13:47 /dev/dm-17brw-rw---- 1 ceph ceph 252, 18 Mar 14 13:46 /dev/dm-18brw-rw---- 1 ceph ceph 252, 19 Mar 14 13:47 /dev/dm-19brw-rw---- 1 root disk 252, 2 Mar 14 13:46 /dev/dm-2brw-rw---- 1 ceph ceph 252, 20 Mar 14 13:46 /dev/dm-20brw-rw---- 1 ceph ceph 252, 21 Mar 14 13:47 /dev/dm-21brw-rw---- 1 ceph ceph 252, 22 Mar 14 13:46 /dev/dm-22brw-rw---- 1 ceph ceph 252, 23 Mar 14 13:47 /dev/dm-23brw-rw---- 1 ceph ceph 252, 24 Mar 14 13:46 /dev/dm-24brw-rw---- 1 ceph ceph 252, 25 Mar 14 13:47 /dev/dm-25brw-rw---- 1 ceph ceph 252, 26 Mar 14 13:46 /dev/dm-26brw-rw---- 1 ceph ceph 252, 27 Mar 14 13:47 /dev/dm-27brw-rw---- 1 ceph ceph 252, 28 Mar 14 13:47 /dev/dm-28brw-rw---- 1 root disk 252, 3 Mar 14 13:46 /dev/dm-3brw-rw---- 1 root disk 252, 4 Mar 14 13:46 /dev/dm-4brw-rw---- 1 root disk 252, 5 Mar 14 13:46 /dev/dm-5brw-rw---- 1 root disk 252, 6 Mar 14 13:47 /dev/dm-6brw-rw---- 1 root disk 252, 7 Mar 14 13:46 /dev/dm-7brw-rw---- 1 root disk 252, 8 Mar 14 13:46 /dev/dm-8brw-rw---- 1 root disk 252, 9 Mar 14 13:47 /dev/dm-9Best Regards,Nicholas.--You can find my PGP public key here: https://google.com/+DewrKim/about
--
You can find my PGP public key here: https://google.com/+DewrKim/about
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com