Can be the Journal path on a filesystem other than /?

According to this guide I made the [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] persistent because I had a serious issue where I needed the logged information but it got lost after I reboot the server.

I would like to store the default [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] directory [FONT=Courier New][COLOR="#0000CD"]/var/log/journal/[/COLOR][/FONT] on a mounted file system other than [FONT=Courier New][COLOR="#0000CD"]/[/COLOR][/FONT], but I am not sure if I can do it due to the fact that [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] is an important service which may already run before any device is mounted which would lead to the fact that suddenly the directly changes.

Is it safe/possible to store the [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] directory on a mounted device and if yes, how to do it, if a simple mounting doesn’t work.

This is the current directory listing which is getting bigger and bigger so there won’t be enough space in few days on the [FONT=Courier New][COLOR="#0000CD"]/[/COLOR][/FONT] file system.
I have to create an additional virtual disk I use for the [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] file system.

2019-03-18 22:16:41 root@AAEB-APP206LY:/var/log/journal/d41cf15550e34487abe7103b61fbf794 => ll total 792M drwxr-sr-x 1 root systemd-journal 884 Mar 12 06:35 ./ drwxr-sr-x 1 root systemd-journal 64 Feb 26 18:17 ../ -rw-r----- 1 root systemd-journal 96M Mar 18 22:16 system.journal -rw-r----- 1 root root 120M Feb 26 18:17 system@d5301574c947425cb992f7839ae52cdb-0000000000000001-0005827c7effc14d.journal -rw-r----- 1 root systemd-journal 96M Mar 5 12:29 system@d5301574c947425cb992f7839ae52cdb-0000000000051acb-000582cf3a7ba719.journal -rw-r----- 1 root systemd-journal 96M Mar 12 06:35 system@d5301574c947425cb992f7839ae52cdb-00000000000872b4-000583572e31154d.journal -rw-r-----+ 1 root systemd-journal 128M Mar 18 22:16 user-5000.journal -rw-r-----+ 1 root root 128M Mar 5 12:29 user-5000@cf6acecdf28e48c790173a36447ec2e7-0000000000051ad9-000582cf3d435013.journal -rw-r-----+ 1 root systemd-journal 128M Mar 12 06:35 user-5000@cf6acecdf28e48c790173a36447ec2e7-00000000000872b9-000583572e312040.journal

The tag on your post says you are using SLES12 SP4 but you are referring to a document for openSUSE Leap which is a different product.
You should refer to the documentation for SUSE Linux Enterprise Server 12 SP4.

I appreciate your help but - honestly - your comment doesn’t help at all.

[FONT=Courier New][COLOR="#006400"]Journal[/COLOR][/FONT] for SLES 12.4 is described here. Please, forget the link in the first paragraph in the initial question.

Under 15.1 there is EXACTLY the same wording regarding “Making the Journal Persistent” as in the link I provided.

I apologize endless I dared to link to an article which is not supposed to be for SLES 12.4 - in the end, it doesn’t really change anything because - as I wrote in my first question - I was talking only about making the [FONT=Courier New][COLOR="#006400"]Journal[/COLOR][/FONT] Persistent.

Good, I am not capable to fix my first question [where is the EDIT option?] so I ask the whole community to forgive me these dramatic mistake and may be someone can answer my question.

[QUOTE]Is it safe/possible to store the [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] directory on a mounted device and if yes, how to do it, if a simple mounting doesn’t work.[/QUOTE]For a safe way to change the journal directory on a running system see chaptre 15.1 in sles administration guide:
https://www.suse.com/documentation/sles-12/book_sle_admin/data/journalctl_persistent.html
Prior you should mount your preferred partition to /var/log/journal.

Please read chaptre 15.5.1 in sles administration guide:
https://www.suse.com/documentation/sles-12/book_sle_admin/data/journalctl_config.html

This is exactly my problem: How can I assure that the partition/file system has been mounted before [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] starts to work?
For me it is the chicken or the egg problem. Which one starts first?

When [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT] starts before the file system has been mounted so what happens? Inconsistency? Undefined behaviour? ???
In this case I am removing the underlying file system for the service [FONT=Courier New][COLOR="#008000"]Journal[/COLOR][/FONT].

Hi
From the man page journactld.conf under Storage= is set to persistent,
it stores to ram until the location is mounted…


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.28-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi
Opps, that should be journald.conf


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.28-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Good, I am studying the man page. I will try it on a test system and let you know!