Feature #336
closedosd: metadata on tmpfs
0%
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.
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/shmosd journal = /dev/shm/journal
osd journal size = 500mount 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.
Updated by Jan Smets over 13 years ago
use
journal dio = false
Thanks. Please close.