I'd like to disable log in the xfs.
I didn't find an option in
mkfs.xfs
So my question is: Is it possibile to disable them or move them in RAM? If yes, how? Thanks
You cannot disable the logging code paths in xfs, but you can remove any actual IO overhead by using some dirty tricks (note, I have not tested this beyond mounting it):
# modprobe null_blk
# mkfs.xfs -l logdev=/dev/nullb1,size=16m <DATA_DEVICE>
# mount -o logdev=/dev/nullb1 <DATA_DEVICE> <MOUNT_POINT>
Of course by doing this you lose all consistency guarantees that the log would give you, and after a crash or power loss you will need to run xfs_repair to make the filesystem consistent again.
The xfs filesystem is a journal filesystem so no you cannot disable logging entirely.(i'm not sure why you would). The mkfs.xfs -l [log_section_options]
will allow you to shrink the size of the log or move it to another device. You may do something like this : mkfs.xfs -l size=512b /dev/sdc1
to shrink the log file to the minimum size allowed.