ceph - ceph-deploy osd activate - [ERROR ] OSD::mkfs: ObjectStore::mkfs failed with error -13 , ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.l7bamu: (13) Permission denied
By 때찌때찌맴매 - 4월 25, 2018
ceph-deploy osd activate - [ERROR ] OSD::mkfs: ObjectStore::mkfs failed with error -13 , ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.l7bamu: (13) Permission denied
* 해당 "ceph-deploy osd activate" 진행중 장애 발생은 디스크 장치의 소유권 문제로 인해 발생 합니다.
[ ERROR 장애발생 ] [root@loccalhost ~ ]# ceph-deploy osd activate osd-2:sda1 . . [osd-0][WARNIN] ceph_disk.main.Error: Error: ['ceph-osd', '--cluster', 'ceph', '--mkfs', '--mkkey', '-i', u'1', '--monmap', '/var/lib/ceph/tmp/mnt.l7bamu/activate.monmap', '--osd-data', '/var/lib/ceph/tmp/mnt.l7bamu', '--osd-journal', '/var/lib/ceph/tmp/mnt.l7bamu/journal', '--osd-uuid', u'a53f54e6-6dcb-4ed1-bfcf-3500e5ac5968', '--keyring', '/var/lib/ceph/tmp/mnt.l7bamu/keyring', '--setuser', 'ceph', '--setgroup', 'ceph'] failed : 2018-04-18 16:13:17.313958 7f65fcbe1800 -1 filestore(/var/lib/ceph/tmp/mnt.l7bamu) mkjournal error creating journal on /var/lib/ceph/tmp/mnt.l7bamu/journal: (13) Permission denied [osd-0][WARNIN] 2018-04-18 16:13:17.313972 7f65fcbe1800 -1 OSD::mkfs: ObjectStore::mkfs failed with error -13 [osd-0][WARNIN] 2018-04-18 16:13:17.314012 7f65fcbe1800 -1 ** ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.l7bamu: (13) Permission denied [osd-0][WARNIN] [osd-0][ERROR ] RuntimeError: command returned non-zero exit status: 1 [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: /usr/sbin/ceph-disk -v activate --mark-init systemd --mount /dev/sda1
[ device 장치 확인 및 조치 ] [ 정상 ] [root@osd-1 ~]# ll /dev/sda* brw-rw---- 1 root disk 8, 0 4월 18 16:41 /dev/sda brw-rw---- 1 ceph ceph 8, 1 4월 18 16:41 /dev/sda1 brw-rw---- 1 ceph ceph 8, 2 4월 18 16:41 /dev/sda2 [ 장애 ] [root@osd-2 ~]# ll /dev/sda* brw-rw---- 1 root disk 8, 0 4월 18 16:06 /dev/sda brw-rw---- 1 root disk 8, 1 4월 18 16:06 /dev/sda1 brw-rw---- 1 root disk 8, 2 4월 18 16:06 /dev/sda2 [ 해결 ] [root@osd-2 ~]# chown ceph:ceph /dev/sda1 [root@osd-2 ~]# chown ceph:ceph /dev/sda2 또는 [root@osd-2 ~]# reboot * 리부팅 후 해당 디바이스가 ceph:ceph 로 변경 됩니다.