Project

General

Profile

Actions

Feature #336

closed

osd: metadata on tmpfs

Added by Jan Smets over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Having the journal (or even data) on a memory filesystem would be usefull for testing.

Filesystem Size Used Avail Use% Mounted on
none 3.0G 0 3.0G 0% /dev/shm

osd journal = /dev/shm/journal
osd journal size = 500

mount failed to open journal /dev/shm/journal: Inappropriate ioctl for device
maybe journal is not pointing to a block device and its size wasn't configured?

tmpfs lacks user_xattr.

Actions #1

Updated by Sage Weil over 13 years ago

Jan Smets wrote:

Having the journal (or even data) on a memory filesystem would be usefull for testing.

Filesystem Size Used Avail Use% Mounted on
none 3.0G 0 3.0G 0% /dev/shm

osd journal = /dev/shm/journal
osd journal size = 500

mount failed to open journal /dev/shm/journal: Inappropriate ioctl for device
maybe journal is not pointing to a block device and its size wasn't configured?

Does /dev/shm/journal already exist? Did you get this error during mkcephfs? (mkcephfs should create it...) You can also try

ceph mon getmap -o /tmp/monmap
cosd -i 0 --monmap /tmp/monmap --mkjournal

to create it.

There shouldn't be anything special about tmpfs.. the journal can be a raw block device or a file. In this case it's a file.

tmpfs lacks user_xattr.

not necessary for the journal.

Actions #2

Updated by Jan Smets over 13 years ago

use

journal dio = false

Thanks. Please close.

Actions #3

Updated by Sage Weil over 13 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF