°Ô½Ã¹° 1,369°Ç
   
ceph journal size
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-02-03 (¼ö) 11:27 Á¶È¸ : 5238
±ÛÁÖ¼Ò :
                                
¡Ø 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 ·Î È®ÀεȴÙ.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.