All of lore.kernel.org
 help / color / mirror / Atom feed
* How to create new empty journal?
@ 2011-06-08 22:30 Fyodor Ustinov
  2011-06-09 10:09 ` Wido den Hollander
  0 siblings, 1 reply; 5+ messages in thread
From: Fyodor Ustinov @ 2011-06-08 22:30 UTC (permalink / raw)
  To: ceph-devel

Hi!

I need to create new fresh journal for OSD server without removing data.
How?

WBR,
     Fyodor.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to create new empty journal?
  2011-06-08 22:30 How to create new empty journal? Fyodor Ustinov
@ 2011-06-09 10:09 ` Wido den Hollander
  2011-06-09 10:19   ` Fyodor Ustinov
  0 siblings, 1 reply; 5+ messages in thread
From: Wido den Hollander @ 2011-06-09 10:09 UTC (permalink / raw)
  To: Fyodor Ustinov; +Cc: ceph-devel

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

This will reset your journal.

Why do you want to do this?

Wido 

> 
> WBR,
>      Fyodor.
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to create new empty journal?
  2011-06-09 10:09 ` Wido den Hollander
@ 2011-06-09 10:19   ` Fyodor Ustinov
  2011-06-09 17:13     ` Gregory Farnum
  0 siblings, 1 reply; 5+ messages in thread
From: Fyodor Ustinov @ 2011-06-09 10:19 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to create new empty journal?
  2011-06-09 10:19   ` Fyodor Ustinov
@ 2011-06-09 17:13     ` Gregory Farnum
  2011-06-09 20:07       ` Fyodor Ustinov
  0 siblings, 1 reply; 5+ messages in thread
From: Gregory Farnum @ 2011-06-09 17:13 UTC (permalink / raw)
  To: Fyodor Ustinov; +Cc: Wido den Hollander, ceph-devel

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@ufm.su> 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@vger.kernel.org
> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to create new empty journal?
  2011-06-09 17:13     ` Gregory Farnum
@ 2011-06-09 20:07       ` Fyodor Ustinov
  0 siblings, 0 replies; 5+ messages in thread
From: Fyodor Ustinov @ 2011-06-09 20:07 UTC (permalink / raw)
  To: Gregory Farnum; +Cc: Wido den Hollander, ceph-devel

On 06/09/2011 08:13 PM, Gregory Farnum wrote:
> 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
Thanx!

WBR,
     Fyodor.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-09 20:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 22:30 How to create new empty journal? Fyodor Ustinov
2011-06-09 10:09 ` Wido den Hollander
2011-06-09 10:19   ` Fyodor Ustinov
2011-06-09 17:13     ` Gregory Farnum
2011-06-09 20:07       ` Fyodor Ustinov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.