Re: Replace Journal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Здравствуйте! 

On Fri, Apr 22, 2016 at 09:30:15AM +0200, martin.wilderoth wrote:

> >> I have a ceph cluster and I will change my journal devices to new SSD's.
> >>
> >> In some instructions of doing this they refer to a journal file (link to
> >> UUID of journal )
> >>
> >> In my OSD folder this journal don’t exist.
> >>
>> If your cluster is "years old" and not created with ceph-disk, then yes,
>> that's not surprising.
>> Mind, I created a recent one of mine manually and still used that scheme:
>> --- ls -la /var/lib/ceph/osd/ceph-12/
>> total 80
>> drwxr-xr-x   4 root root  4096 Mar  1 14:44 .
>> drwxr-xr-x   8 root root  4096 Sep 10  2015 ..
>> -rw-r--r--   1 root root    37 Sep 10  2015 ceph_fsid
>> drwxr-xr-x 320 root root 24576 Mar  2 20:24 current
>> -rw-r--r--   1 root root    37 Sep 10  2015 fsid
>> lrwxrwxrwx   1 root root    44 Sep 10  2015 journal ->
>> /dev/disk/by-id/wwn-0x55cd2e404b77573c-part5
>> -rw-------   1 root root    57 Sep 10  2015 keyring
>> ---
>>
>> Ceph isn't magical, so if that link isn't there, you probably have
>> something like this in your ceph.conf, preferably with UUID instead of thet
>> possibly changing device name:
>> ---
>> [osd.0]
>>     host = ceph-01
>>     osd journal = /dev/sdc3
>> ---


> Yes that is my setup, Would that mean i could either create symlink journal
> -> /dev/disk/......
> remove the osd journal in ceph.conf.

> or change my ceph.conf with osd journal = /dev/....

> And the recommended way is actually to use journal symlink ?

I'm using symlinks to /dev/disk/by-partlabel/
It saves me from any troubles when replacing journal SSDs.
The same for mounts: I use LABEL= in fstab because of changing device names when
replacing HW in storage nodes.

Of cause, any can set proper udev rules, but I'm too lazy for this exercises :)

-- 
WBR, Max A. Krasilnikov
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux