°Ô½Ã¹° 1,358°Ç
   
Ceph journal Ramdisk
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-08-24 (¼ö) 16:37 Á¶È¸ : 3731
±ÛÁÖ¼Ò :
                                
RAMDISK ¼³Á¤
# fdisk -l /dev/ram0
Disk /dev/ram0: 67 MB, 67108864 bytes
255 heads, 63 sectors/track, 8 cylinders, total 131072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

# vim /etc/default/grub
...........................
### 5GB ###
GRUB_CMDLINE_LINUX="brd.rd_size=5120000"

# update-grub
# reboot
# fdisk -l /dev/ram0
Disk /dev/ram0: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders, total 8192000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/ram0 doesn't contain a valid partition table


RAMDISK JOURNAL  º¯°æ
# stop ceph-osd-all
# ceph-osd --flush-journal -i 2
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-08-19 16:13:00.206457 7f56c0c22940 -1 flushed journal /var/lib/ceph/osd/ceph-2/journal for object store /var/lib/ceph/osd/ceph-2

# ceph-osd --mkjournal -i 2
 HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
2016-08-19 16:15:34.230426 7f1612de3940 -1 journal read_header error decoding journal header
 HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
2016-08-19 16:15:34.233372 7f1612de3940 -1 created new journal /var/lib/ceph/osd/ceph-2/journal for object store /var/lib/ceph/osd/ceph-2


# rm -rf /var/lib/ceph/osd/ceph-2/journal
# ln -s /dev/ram0 /var/lib/ceph/osd/ceph-2/journal
# chown -h ceph:ceph /var/lib/ceph/osd/ceph-2/journal
# chown ceph:ceph /dev/ram0
# start ceph-osd-all-starter



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

 



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