Can be the journal path on a filesystem other than /?2019 Community Moderator ElectionMake all files under a directory read-only without changing permissions?Unable to change permissions of file system rootHow to get access to the root journal for systemd?Why is my systemd journal not persistent across reboots?Funny message when changing ownership of top directory in a mounted file systemgunicorn: logfile directory owner being reset on reboot?create “virtual directory” with mounted devicetmpfs /run fullMounting a 4tb lvm in Centos 7 keeps saying not enough space on devicechange the name of the journal files in /var/log/journal/remote coming from /var/log/journal/upload
How to balance a monster modification (zombie)?
What (if any) is the reason to buy in small local stores?
Would it be believable to defy demographics in a story?
Print a physical multiplication table
Why are there no stars visible in cislunar space?
Do native speakers use "ultima" and "proxima" frequently in spoken English?
Why does Surtur say that Thor is Asgard's doom?
Would this string work as string?
Help with identifying unique aircraft over NE Pennsylvania
How to find the largest number(s) in a list of elements, possibly non-unique?
The English Debate
Nested Dynamic SOQL Query
Have any astronauts/cosmonauts died in space?
Why I don't get the wanted width of tcbox?
How old is Nick Fury?
PTIJ: Which Dr. Seuss books should one obtain?
Unfrosted light bulb
Turning a hard to access nut?
Fair way to split coins
If I cast the Enlarge/Reduce spell on an arrow, what weapon could it count as?
How do you justify more code being written by following clean code practices?
Does fire aspect on a sword, destroy mob drops?
How do researchers send unsolicited emails asking for feedback on their works?
How can I create URL shortcuts/redirects for task/diff IDs in Phabricator?
Can be the journal path on a filesystem other than /?
2019 Community Moderator ElectionMake all files under a directory read-only without changing permissions?Unable to change permissions of file system rootHow to get access to the root journal for systemd?Why is my systemd journal not persistent across reboots?Funny message when changing ownership of top directory in a mounted file systemgunicorn: logfile directory owner being reset on reboot?create “virtual directory” with mounted devicetmpfs /run fullMounting a 4tb lvm in Centos 7 keeps saying not enough space on devicechange the name of the journal files in /var/log/journal/remote coming from /var/log/journal/upload
I would like to store the default journal
directory /var/log/journal/
on a mounted device, but I am not sure if I can do it due to the fact that journal
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 journal
directory on a mounted device and if yes, how to do it, if a simple mounting doesn't work.
Directory listing from the journal
entries:
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
As you can see it is occupying almost 800 MB and this fills up the main partition. Therefore the idea to store it on a different filesystem.
mount logs systemd-journald
add a comment |
I would like to store the default journal
directory /var/log/journal/
on a mounted device, but I am not sure if I can do it due to the fact that journal
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 journal
directory on a mounted device and if yes, how to do it, if a simple mounting doesn't work.
Directory listing from the journal
entries:
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
As you can see it is occupying almost 800 MB and this fills up the main partition. Therefore the idea to store it on a different filesystem.
mount logs systemd-journald
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the/
filesystem. You mean "on some filesystem other than my/
filesystem".
– JdeBP
10 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago
add a comment |
I would like to store the default journal
directory /var/log/journal/
on a mounted device, but I am not sure if I can do it due to the fact that journal
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 journal
directory on a mounted device and if yes, how to do it, if a simple mounting doesn't work.
Directory listing from the journal
entries:
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
As you can see it is occupying almost 800 MB and this fills up the main partition. Therefore the idea to store it on a different filesystem.
mount logs systemd-journald
I would like to store the default journal
directory /var/log/journal/
on a mounted device, but I am not sure if I can do it due to the fact that journal
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 journal
directory on a mounted device and if yes, how to do it, if a simple mounting doesn't work.
Directory listing from the journal
entries:
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
As you can see it is occupying almost 800 MB and this fills up the main partition. Therefore the idea to store it on a different filesystem.
mount logs systemd-journald
mount logs systemd-journald
edited 5 hours ago
Al Bundy
asked 11 hours ago
Al BundyAl Bundy
4222522
4222522
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the/
filesystem. You mean "on some filesystem other than my/
filesystem".
– JdeBP
10 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago
add a comment |
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the/
filesystem. You mean "on some filesystem other than my/
filesystem".
– JdeBP
10 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the
/
filesystem. You mean "on some filesystem other than my /
filesystem".– JdeBP
10 hours ago
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the
/
filesystem. You mean "on some filesystem other than my /
filesystem".– JdeBP
10 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506998%2fcan-be-the-journal-path-on-a-filesystem-other-than%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506998%2fcan-be-the-journal-path-on-a-filesystem-other-than%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You do not mean "on a mounted device". After all, all such filesystems are mounted, even the
/
filesystem. You mean "on some filesystem other than my/
filesystem".– JdeBP
10 hours ago
@JdeBP Yes, reading your comment I realize I described it wrong. You are right. I mean this. Does it change anything and you could answer my question?
– Al Bundy
8 hours ago
Are journal stored in inodes not in folders? I am a bit confused. Is this ext4?
– Luciano Andress Martini
5 hours ago
@LucianoAndressMartini I updated my question with a directory listing how it looks now. I hope it helps.
– Al Bundy
5 hours ago