¡Ø osd journal size
Description: The size of the journal in megabytes. If this is 0, and the journal is a block device, the entire block device is used. Since v0.54, this is ignored if the journal is a block device, and the entire block device is used.
Type: 32-bit Integer
Default: 5120
Recommended: Begin with 1GB. Should be at least twice the product of the expected speed multiplied by filestore max sync interval.
root@osd-0:~# ceph osd set noout
set noout
root@osd-0:~# stop ceph-osd-all
ceph-osd-all stop/waiting
root@osd-0:~# ceph-osd --flush-journal -i 0
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0d 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0d 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-02-03 10:46:07.054975 7fada3686940 -1 flushed journal /dev/sda2 for object store /var/lib/ceph/osd/ceph-0
root@osd-0:~# rm /var/lib/ceph/osd/ceph-0/journal
root@osd-0:~# ln -s /dev/sda2 /var/lib/ceph/osd/ceph-0/journal
:: /etc/ceph/ceph.conf ¼öÁ¤
[osd.0]
host = osd-0
osd journal = /dev/sda2
osd journal size = 10000
root@osd-0:~# ceph-osd --mkjournal -i 0
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0d 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-02-03 10:46:56.324602 7fe0b604f940 -1 created new journal /dev/sda2 for object store /var/lib/ceph/osd/ceph-0
root@osd-0:~# ls -l /var/lib/ceph/osd/ceph-0/journal
lrwxrwxrwx 1 root root 9 2¿ù 3 10:46 /var/lib/ceph/osd/ceph-0/journal -> /dev/sda2
root@osd-0:~# start ceph-osd-all
ceph-osd-all start/running
root@osd-0:~# ceph osd unset noout
unset noout
root@osd-0:~# ceph-disk list
......................
......................
/dev/sda :
/dev/sda1 other, fe36cf31-848b-425a-8985-d2b05481d91c
/dev/sda2 other, 0fc63daf-8483-4772-8e79-3d69d8477de4
/dev/sdb :
/dev/sdb1 ceph data, active, cluster ceph, osd.0, journal /dev/sda1
¡Ø osd journal size ½ÎÀÌÁ conf ÆÄÀÏ¿¡ Àû¿ë½Ã¿¡ ¿¡·¯´Â ¾ø´Âµ¥....ÀÌ°Ô Àû¿ëµÈ°ÇÁö È®ÀÎÇÒ ¹æ¹ýÀ» ãÁö ¸øÇÏ¿´´Ù. ceph-disk list ·Î º¸¸é....¿©ÀüÈ÷ journal /dev/sda1 ·Î È®ÀεȴÙ.