Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Piotr Dzionek
Ok, Partition GUID code was the same like Partition unique GUID. I used the|sudo sgdisk --new=1:0:+20480M --change-name=1:'ceph journal' --partition-guid=1:$journal_uuid --typecode=1:$journal_uuid --mbrtogpt -- /dev/sdk| to recreate my journal. However, typecode part should be the 45B0969E-9

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Wido den Hollander
> Op 13 februari 2017 om 16:38 schreef ulem...@polarzone.de: > > > Hi Piotr, > is your partition GUID right? > > Look with sgdisk: > # sgdisk --info=2 /dev/sdd > Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown) > Partition unique GUID: 396A0C50-738C-449E-9FC6-B2D3A4469E51 > F

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread ulembke
Hi Piotr, is your partition GUID right? Look with sgdisk: # sgdisk --info=2 /dev/sdd Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown) Partition unique GUID: 396A0C50-738C-449E-9FC6-B2D3A4469E51 First sector: 2048 (at 1024.0 KiB) Last sector: 10485760 (at 5.0 GiB) Partition size

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Piotr Dzionek
I run it on CentOS Linux release 7.3.1611. After running "udevadm test /sys/block/sda/sda1" I don't see that this rule apply to this disk. Hmm I remember that it used to work properly, but some time ago I retested journal disk recreation. I followed the same tutorial like the one pasted here b

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread koukou73gr
On 2017-02-13 13:47, Wido den Hollander wrote: > > The udev rules of Ceph should chown the journal to ceph:ceph if it's set to > the right partition UUID. > > This blog shows it partially: > http://ceph.com/planet/ceph-recover-osds-after-ssd-journal-failure/ > > This is done by *95-ceph-osd.r

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Wido den Hollander
> Op 13 februari 2017 om 12:06 schreef Piotr Dzionek : > > > Hi, > > I am running ceph Jewel 10.2.5 with separate journals - ssd disks. It > runs pretty smooth, however I stumble upon an issue after system reboot. > Journal disks become owned by root and ceph failed to start. > > /starting o

Re: [ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Craig Chi
Hi, What is your OS? The permission of journal partition should be changed by udev rules: /lib/udev/rules.d/95-ceph-osd.rules In this file, it is described as: # JOURNAL_UUID ACTION=="add", SUBSYSTEM=="block", \ ENV{DEVTYPE}=="partition", \ ENV{ID_PART_ENTRY_TYPE}=="45b0969e-9b03-4f30-b4c6-b4b80c

[ceph-users] - permission denied on journal after reboot

2017-02-13 Thread Piotr Dzionek
Hi, I am running ceph Jewel 10.2.5 with separate journals - ssd disks. It runs pretty smooth, however I stumble upon an issue after system reboot. Journal disks become owned by root and ceph failed to start. /starting osd.4 at :/0 osd_data /var/lib/ceph/osd/ceph-4 /var/lib/ceph/osd/ceph-4/jo