Re: How to create new empty journal?

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

 



For all of these use cases you're going to want to flush the journal
to permanent store to make sure you don't lose any data.
1) Shut down the cosd.
2) Start it up again with the --flush-journal argument.
It will run in the foreground and flush out any data in the journal.
You're all set and can do whatever you want!
-Greg

On Thu, Jun 9, 2011 at 3:19 AM, Fyodor Ustinov <ufm@xxxxxx> wrote:
> On 06/09/2011 01:09 PM, Wido den Hollander wrote:
>>
>> Hi,
>>
>> On Thu, 2011-06-09 at 01:30 +0300, Fyodor Ustinov wrote:
>>>
>>> Hi!
>>>
>>> I need to create new fresh journal for OSD server without removing data.
>>> How?
>>
>> This can be done with:
>>
>> $ cosd -i<osdnum>  -c /etc/ceph/ceph.conf --mkjournal
>
> Thanx!
>
>> This will reset your journal.
>>
>> Why do you want to do this?
>>
>
> Many cases:
>
> 1. I have journal on tempfs and want to stop ceph cluster and restart
> servers. After that I lose journal.
>
> 2. I want to increase journal size.
>
> 3. I want to decrease journal size.
>
> 4. I want replace journal device.
>
> And so on.
>
> WBR,
>    Fyodor.
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux