Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [journaling]

The tag has no usage guidance.

2
votes
0answers
20 views

Are released blocks logged in the journal for ext4?

Suppose we have a simple case: ext4 file system with journaling a single file named file, which has no other hard links the inode for file has associated with it only 1 data block My understanding ...
2
votes
1answer
71 views

disk %util reaches 100% constantly when avgrq-sz is small

On my system with 4.9.86 kernel I have noticed weird behaviour with my disk (HDD with 5400 rpm), the %util goes 100% for quite some time constantly (for 5 minutes or so), I do see the avrg-rq size is ...
1
vote
0answers
42 views

Difference between journaled and plain quota

I am trying to set up quotas on a filesystem and I am getting the famous message: quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to ...
3
votes
0answers
671 views

How to stop jbd2 on unmounted filesystem

I need to resize2fs the root partition of an embedded device. Since it doesn't have an alternate boot option, I used an tmpfs, moved and restated everything until I finally was able to umount /dev/...
-1
votes
1answer
696 views

Bypass systemd-journald to send messages directly to ryslog daemon

As a follow-up of my earlier question Prevent syslogs from being logged under journalctl, and this wonderful JdeBP's answer I want to know how do I bypass systemd-journald to send syslog messages ...
1
vote
1answer
992 views

Prevent syslogs from being logged under journalctl

I have a simple Python snippet managed by a systemd service which logs to the rsysogd daemon where I've defined a configuration file to put it to a syslog server with a format I've defined. This is ...
1
vote
1answer
361 views

How to journal command after sudo?

How to configure Linux to journal all command entered by a user after they use sudo su - or sudo su - username ?
1
vote
1answer
1k views

Disable and enable ext4 journaling ?

If I disable the journaling function of an EXT4-filesystem using the command tune2fs -O ^has_journal /dev/sda and enable it after the next start, will the data saved on the harddisk remain unaffected ...
2
votes
1answer
4k views

Difference between nointegrity, noatime & relatime

What is the difference between nointegrity, noatime and relatime? And what is the best option for a SSD? I am using ext4 as my filesystem. And why disabling journaling on my system, data loss can ...
2
votes
0answers
277 views

Ext4-Error: Bit already cleared for inode

System: Debian Wheezy Kernel 3.11.6 Atmel SAM9x25 Mono 3.2.8 SD card with ext4 partition I got following message error when I booted my mono application: root@net-231:/opt/programm# [ 6061.078125] ...
0
votes
1answer
65 views

How to recover after messing with hard drive during mid-session sleep? [closed]

I need help recovering from a stupid mistake. I was using an old laptop hard drive to evaluate a Linux distro (PCLinuxOS), and have invested some time in customizing it or I would just start over. ...
5
votes
3answers
897 views

“write-once archive”: ext2 vs ext4^has_journal vs

summary Suppose one is setting up an external drive to be a "write-once archive": one intends to reformat it, copy some files that will (hopefully) never be updated, then set it aside until I need to ...
2
votes
0answers
2k views

ext4 & jbd2 dirty metadata

I have an embedded system based on the RiotBoard, I have the main file system on the MMC set as read-only, and an 8gb usb flash drive for writeable storage. rootfs is debian, linux kernel version 4.3....
2
votes
1answer
2k views

Why is OS constantly writing to disk (ext4) on a Ubuntu 14.04 machine? Is it normal?

I'm quite sure it didn't happen before I started using LUKS and LVM on my disk (2 or 3 weeks ago), but now root user is constantly (every 2-3 seconds) writing (not reading, just writing) on disk and I ...
0
votes
0answers
122 views

Is there a program like searchmonkey/Everything that previews images or webms?

On Windows there a nice file search engine called Everything, which is >(unlike find) very fast and (unlike locate) always returns up to date results. AFAIK it works by filling a database from the ...
3
votes
0answers
1k views

EXT4 Journaling - Problem

Basically my root (/) ext4 partition keeps being mounted as read-only when I apply internal journaling feature. I understand that this should be default, but today I had been trying to apply external ...
1
vote
0answers
214 views

Ext3 Journaling Question on inode and disk layout

I have the following questions about Journaling and JBD(journaling block device): Why Journal Inode number comes as 8 when we do ./dumpe2fs? Where on disk partition do we store journaled blocks? ...
3
votes
2answers
789 views

Unable to mount root filesystem rw with journal

Trying to understand the whole journalling setup and from what I've read and tried, it's eluding me somehow. The root filesystem is ext3. Examining it via tune2fs -l /dev/root shows that '...
5
votes
2answers
2k views

Pulling log messages for a particular log in systemd journal?

I was wondering if it is possible to pull log messages for a particular log with systemd's journal logging. For example, when I open a log in C, openlog('slog', LOG_CONS | LOG_PID, LOG_LOCAL1), to ...
6
votes
1answer
2k views

Can I find out if a given ext4 block is in the inode table, and if so, can I pick it out of a journal with no header by hand?

So en route from my old laptop to a new one my old laptop's hard drive got some physical damage. badblocks reports 64 bad sectors. I had a two-month-old Ubuntu GNOME setup with a split / and /home ...
3
votes
1answer
173 views

Many transient files on journaled filesystem?

Writing and deleting many files quickly I'm going to write many temporary files per second, over a sustained period. Each will be deleted after some milliseconds. Say we have an image processing ...
31
votes
2answers
2k views

Why did powering down my machine after a bad `rm` save my files?

Classical situation: I ran a bad rm and realized immediately afterwards that I had removed the wrong files. (Nothing critical and I had tolerably recent backups, but still annoying.) Knowing that ...
4
votes
1answer
6k views

ext4 filesystems frequently corrupting

We have occasional power outages in our environment which seems to cause data corruption on our Ubuntu machines with ext4 filesystems. To my understanding ext4's default is to use data=ordered ...
4
votes
2answers
9k views

How to clean journals in ext3/ext4 filesystem? [closed]

Some preamble: I'm taking bitwise copy of disk devices (via dd command) from twin hosts (i.e. with the same virtualized hardware layout and software packages, but with different history of usage). To ...
4
votes
0answers
943 views

jbd2 journal constant i/o

iotop reports a constant i/o about 3% of [jbd2/vda1-8], I think this is the journal manager for ext4. my fstab is: UUID=X / ext4 defaults,noatime,nodiratime 1 1 tmpfs /dev/shm ...
7
votes
2answers
2k views

what does a “deleted file” entry look like in the journal

I hope I've got this right: A file's inode contains data such as inode number, time of last modification, ownership etc. – and also the entry: »deletion time«. Which made me curious: ...
2
votes
1answer
520 views

Minimizing “idle” writes on a file system

Leaving out many details, I need to create a read/write file system on a device with the following main goals: Eliminate all writes while data is not being explicitly written. Reduce all indirect ...
15
votes
3answers
11k views

What mount option to use for ext3 file system to minimise data loss or corruption?

I have an embedded setup using an initramfs for the root file system but using a custom ext3 partition mounted on a compact flash IDE drive. Because data integrity in the face of power loss is the ...
1
vote
1answer
761 views

why kjournald uses writes so much?

Total DISK READ: 1056.26 K/s | Total DISK WRITE: 9.20 M/s TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND 1055 be/4 root 0.00 B 11.64 M 0.00 % 1.99 % [...
2
votes
1answer
6k views

Which drive had a “journal commit I/O error”?

I received a message: kernel:[123456.789012] journal commit I/O error Which disk drive had the journal error?
3
votes
1answer
146 views

To use -c0 -i0 in file-systems with journal

I've several partitions with ext4. Now, I would want if it makes sense to use tune2fs with flags -c0 (max-mount-counts) and -i0 (interval-between-checks) in the partitions with a journal file-system ...
1
vote
2answers
3k views

Keep ext4 journal on another system, how much space would be necessary?

I'm going to move journal to another partition, but I don't know how to correctly caculate the size needed for journal? I'm running ext4 file system with 15GB capacity.
4
votes
1answer
18k views

disabling journal vs data=writeback in ext4 file system

What is the difference between disabling journal on ext4 file system using: tune2fs -O ^has_journal /dev/sda1 and using data=writeback when mounting? I thought ext4 - journal = ext2. means when we ...
43
votes
10answers
31k views

Is there a file search engine like “Everything” in Linux?

On Windows there a nice file search engine called Everything, which is (unlike find) very fast and (unlike locate) always returns up to date results. AFAIK it works by filling a database from the ...
4
votes
1answer
6k views

huge .sujournal file on FreeBSD

I am running out of space and when I checked, I found that I have # pwd /usr # ls -l .sujournal -r-------- 1 root wheel 33554432 Dec 31 1969 .sujournal I wanted to ask should/can I remove it? ...
5
votes
3answers
466 views

Is ext2 suitable for daily use on a desktop or laptop?

Is a journaling filesystem needed in today's desktop world? A good OS doesn't kernel panic every month, and if we are using a laptop, then there aren't any power outages, so why shouldn't we use ...
5
votes
2answers
666 views

With full data journaling, why does data appear in the directory immediately?

I've got a question regarding full data journaling on ext3 filesystems. The man page states the following: data=journal All data is committed into the journal prior to being written into the main ...
26
votes
5answers
13k views

Do journaling filesystems guarantee against corruption after a power failure?

I am asking this question on behalf of another user who raised the issue in the Ubuntu chat room. Do journaling filesystems guarantee that no corruption will occur if a power failure occurs? If this ...