/var/lib/ceph/osd/ceph-NNN/journal is a "real" file on my system:
ls -l /var/lib/ceph/osd/ceph-0/journal
-rw-r--r-- 1 root root 1073741824 Oct 17 06:47
/var/lib/ceph/osd/ceph-0/journal
Any problems with my proposed added steps (3 - 5)?
1. stop a ceph-osd daemon
2. ceph-osd --flush-journal -i NNN
3. (+) cp /var/lib/ceph/osd/ceph-NNN/journal
/var/lib/ceph/osd/ceph-NNN/journal.saved
4. (+) create a new empty journal file:
touch /mount/sdzNNN/journal
5. (+) Create the symbolic link for Ceph:
ln -s /mount/sdzNNN/journal
var/lib/ceph/osd/ceph-NNN/journal
6. ceph-osd --mkjournal -i NNN
7. start ceph-osd
Tim
-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: Wednesday, October 16, 2013 5:02 PM
To: Snider, Tim
Cc: [email protected]
Subject: Re: [ceph-users] changing from default journals to external journals
On Wed, 16 Oct 2013, Snider, Tim wrote:
> I configured my cluster using the default journal location for my
> osds. Can I migrate the default journals to explicit separate devices
> without a complete cluster teardown and reinstallation? How?
- stop a ceph-osd daemon, then
- ceph-osd --flush-journal -i NNN
- set/adjust the journal symlink at /var/lib/ceph/osd/ceph-NNN/journal to
point wherever you want
- ceph-osd --mkjournal -i NNN
- start ceph-osd
This won't set up the udev magic on the journal device, but that doesn't really
matter if you're not hotplugging devices.
sage
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com