Questions tagged [ext4]

The ext4 or fourth extended filesystem is a journaling file system for linux/*nix developed as the successor to ext3.

469 questions
3
votes
2 answers

Is data=journal on a separate device on Ext4 as good as using a RAID controller with battery backed cache for file system consistency?

It seems to me that data=journal prevents file system inconsistency in the case of power failure. Using it with a dedicated journal device mitigates the performance penalty of writing the data twice. A power outage would still lose the data that is…
Jeff Strunk
  • 2,127
  • 1
  • 24
  • 29
3
votes
3 answers

Files on ext4 on Drobo with corrupt, zero-ed out blocks

I have a 2TB ext4 file system (Ubuntu running Linux kernel 2.6.31-22-server x86_64). This file system is the second drive on a Drobo box plugged in via USB. We've not had problems on the first drive (Drobo limits drive size to 2TB due to some OS…
Patrick
  • 31
  • 2
3
votes
2 answers

ext4 fs breaking after power outages

I am experiencing quite a typical but strange problem: the hdd is going bust after power cuts on my server. I can feel it huge work done by fsck on startup after the crash, and then my subversion repository is losing months of work - it all sounds…
Michael Pliskin
  • 225
  • 1
  • 12
3
votes
3 answers

Immutable hard links on ext3/4?

In my research on file versioning at the fs level, snapshotting, and related ideas, I took a look at hard-links and exactly what they are and how they behave. Using rsync you can get a pretty slick poor man's snapshotting system up and running on…
Dale Forester
  • 241
  • 2
  • 5
3
votes
1 answer

Why can I change the the reserved blocks on a read only mounted ext4 filesystem?

I would have expected an error, sorry FS is read-only, but it is possible. This is unexpected & counter intuitive is there a reason? Linux files 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64…
lithium7
  • 39
  • 1
3
votes
1 answer

e2fsck cleans a filesystem and then a few minutes later (after a lot of reads) there are errors

The filesystem is on an LVM RAID5. It appears to be working correctly: $ sudo pvs [sudo] password for jrwren: PV VG Fmt Attr PSize PFree /dev/sda2 datavg lvm2 a-- <7.28t 2.80t /dev/sdb2 datavg lvm2 a-- <3.64t 0 …
jrwren
  • 370
  • 2
  • 5
  • 16
3
votes
0 answers

What linux distro support Host Managed HDD by file system?

According to this Seagate presentation there are some ongoing (?) efforts targeted toward modification of ext4 file system introducing SMRFS -EXT4 - support of host managed hard drives. The goal is to provide layer that will hide specifics of ZAC…
Vlad
  • 131
  • 8
3
votes
1 answer

Cheap/fast deduplication with hardlinks?

I've got shared hosting with a few thousand Wordpress installs and I've wanted for ages to have a nice way of removing all the duplicate files in a sensible and secure way. I'm looking for better disk cache hit ratios and simpler backups. I'm just…
Nick
  • 287
  • 1
  • 10
3
votes
0 answers

Interpreting resize2fs shrink progress (-p) "pass 2" output

The question: What is resize2fs's progress bar indicating during "pass 2" of an offline shrink operation on a large (8-28Tb) ext4 filesystem? The details: I've done ~5 resize2fs shrink operations using the -p ("progress") flag and I can't figure out…
adfaklsdjf
  • 161
  • 4
3
votes
1 answer

Reason for EXT4 file system corruption of Hyper-V guest

We had our second corruption of an ext4 partition in a relatively short time and ext4 is supposedly very reliable. As this is a virtual machine and the host providing the resources saw no disk errors or power-loss or such, I want to rule out…
Olaf Mandel
  • 145
  • 1
  • 8
3
votes
5 answers

Linus/ext4/nvme crashes during high io

During mvn compilation, I have random crashes. The problem seems related to high IO and in kern.log, I can see things like: kernel: [158430.895045] nvme nvme1: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10 kernel: [158430.951331]…
Brimstedt
  • 151
  • 1
  • 12
2
votes
1 answer

output of cat /proc/sys/fs/inode-nr vs df -i

What's the difference between the output of cat /proc/sys/fs/inode-nr and df -i Both are documented at returning the number of inodes in use, but they return apparently unrelated numbers. $ df -i Filesystem Inodes IUsed IFree IUse%…
puzzled
  • 31
  • 2
2
votes
1 answer

Diagnosing missing logical volume

EDIT: the system boots off a 16 gigabyte USB key. Apparently, at some point, the 'device name' (sorry if I'm using that term incorrectly) of the boot device changed.from /dev/sde to /dev/sdb to /dev/sdc The oldest .vg files (from before I added the…
2
votes
1 answer

Why is UUID missing after creating ext4 filesystem on RHEL7 ec2 instance

I'm using Ansible to configure a server. This server is running on AWS Ec2 and I'm attaching to it four EBS drives. When I run my ansible playbook it will fail about 50% of the time. The failure is when I mount a path to a newly formatted drive.…
Levi
  • 253
  • 2
  • 10
2
votes
1 answer

quotacheck: Cannot stat() given mountpoint –cugv: No such file or directory

I am trying to enable quotas on an ext4 partition of a Debian 9 VM. The partition is mounted on /public with the usrquota,grpquota options. The machine has been rebooted. Here is what happens: root@deb9-fs ~# df -hT /public/ Filesystem Type …
stan
  • 173
  • 1
  • 11