Questions tagged [ext4]

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

Filter by
Sorted by
Tagged with
30 votes
2 answers
58k views

Transparent compression filesystem in conjunction with ext4

I am trying to test a project that needs compressed storage with use of the ext4 file system since the application I use relies on ext4 features. Are there any production/stable solutions out there ...
user235918's user avatar
128 votes
10 answers
504k views

How to extend an ext4 partition and filesystem?

I have a 400GB disk with a 320GB ext4 partition. I would like to grow the ext4 partition to use the left space (80GB of free space). +--------------------------------+--------+ | ext4 ...
mimipc's user avatar
  • 2,067
18 votes
8 answers
8k views

Is btrfs production ready?

I've seen a lot of information on btrfs lately. I have been considering ext4 for my next filesystem, but am tempted by btrfs instead. How widely used is btrfs? What are the pro's and con's?
mdpc's user avatar
  • 11.9k
5 votes
3 answers
23k views

Permission denied to resize filesystem

Im attempting to resize a filesystem on a mulipathed volume that I've grown, rescanned all the disks, and resized the multipath map. # resize2fs /dev/mapper/my_vol resize2fs 1.43-WIP (20-Jun-2013) ...
Sirch's user avatar
  • 5,815
46 votes
3 answers
93k views

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum ...
user avatar
18 votes
3 answers
16k views

Is there a way to protect SSD from corruption due to power loss?

We have a group of consumer terminals that have Linux, a local web server, and PostgreSQL installed. We are getting field reports of machines with problems and upon investigation it seems as if there ...
Yehosef's user avatar
  • 1,305
8 votes
3 answers
57k views

changing filesystem format from xfs to ext4 without losing data

I have a fresh Lucid Lynx (Ubuntu 10.04) running on a laptop. where I defined the filesystems as: mount point / on ext4 (46 Gb) mount point /home on jfs (63 GB) swap as 3 Gb I left the machine over ...
A.Rashad's user avatar
  • 293
6 votes
2 answers
6k views

Resize2fs at 81h and counting

Setup: 12x 1TB drives in a RAID6 (MDADM) crypt-setup running ontop of MDADM LVM running on the crypted drives EXT4 on the LVM Background: I added a new drive to the RAID (increasing from 11 to 12 ...
Adam's user avatar
  • 63
4 votes
3 answers
4k views

Copying data over with rsync causes size discrepancies

I am switching machines and have attached the old hard drive (/dev/sda4) to the new machine. The old machine had a slightly smaller hard drive (720G), compared to the new one (736G), so I created a ...
carlspring's user avatar
2 votes
1 answer
17k views

Kernel Errors Present: EXT4-fs

Logwatch is giving me the following error: WARNING: Kernel Errors Present EXT4-fs (sda1): error count: 4 ...: 1 Time(s) EXT4-fs (sda1): initial error at 1350482172: e ...: 1 Time(s) EXT4-fs (sda1):...
audiomason's user avatar
0 votes
1 answer
6k views

How i can restrict certain file extension upload via ssh?

How can I restrict certain file extensions and file upload size via SSH? I am using Ubuntu 12.10 default installation and Open-ssh server.
Ignacio S.'s user avatar
0 votes
1 answer
2k views

Storing many small files with xattr in XFS and ext4

I have many small files (20 millions) with xattr on XFS drives. The average size of files is around 20KB and the average size of xattr is about 512 bytes. Because I would like to move them to ext4, I ...
beketa's user avatar
  • 93
64 votes
3 answers
102k views

Is it possible to on-line shrink a EXT4 volume with LVM?

Today I tried this on my machine with OpenSUSE 12.3 (kernel 3.7): # resize2fs /dev/mapper/system-srv 2G resize2fs 1.42.6 (21-Sep-2012) Filesystem at /dev/mapper/system-srv is mounted on /srv; on-line ...
Alicia's user avatar
  • 795
21 votes
6 answers
46k views

exportfs: Warning: /home/user/share does not support NFS export

'exportfs -r' returns me this error when I'm trying to export /home/user/share (ext4): exportfs: Warning: /home/user/share does not support NFS export. /etc/exports: /home/user/share 192.168.1....
Talis's user avatar
  • 219
16 votes
2 answers
10k views

Production-ready, highly reliable filesystems on Linux: ext4 ext3 XFS or JFS (or ZFS)?

The last real question I've seen on this topic is from about two years ago (is ext4 ready for production usage). In the intervening time, how has ext4 improved? XFS, JFS, and ext3 are the standby ...
warren's user avatar
  • 18.7k
15 votes
6 answers
32k views

What are the differences between ext3, ext4 , ReiserFS?

And why should I pick one instead of the other?
Andrea Ambu's user avatar
14 votes
6 answers
2k views

Is the F.U.D. about ext4 justified? Or would it be safe to use in some production systems?

I am wondering if ext4 is safe to use on my servers. But I've heard so much FUD about it that I am concerned. Our system could lose some data, and it would not be too big a deal. Even a full days ...
Stu Thompson's user avatar
  • 3,379
11 votes
10 answers
5k views

How does the number of subdirectories impact drive read / write performance on Linux?

I've got an EXT3 formatted drive on a Linux CentOS server. This is a web app data drive and contains a directory for every user account ( there are 25,000 users ). Each folder contains files that ...
T. Brian Jones's user avatar
11 votes
6 answers
17k views

How can I compact the VHD file with Ubuntu?

I use windows server 2008r2 with role Hyper-V. The guest system is Ubuntu 12.04 LTC. It is situated on the dynamic virtual hard disk. I want to compact this VHD (The real size is 50 GB, 360 GB on the ...
AmShegar's user avatar
  • 259
10 votes
5 answers
4k views

Is ext4 ready for a production usage?

What do you think about ext4 filesystem in the production enviroment ? We are very close to launching our project that will use tens of millions quite often updated not very big files and we need to ...
Konstantin's user avatar
9 votes
1 answer
1k views

5.5GB written daily to 1.2GB root volume - 4 times previous levels

Problem: I recently revamped one of my servers, it was tested prior to use, and functions well, however, a few days ago, I noticed approximately 4 times the usual amount of writes to the root volume. ...
cyberx86's user avatar
  • 20.9k
8 votes
4 answers
19k views

Rsync size is difference from source to destination

I'm using rsync with the options -r for recursive -l copy symlinks as symlinks -t preserve modification time -D preserve devices and specials -v verbose --prune-empty-dirs The source FS is ext4 and ...
lbanz's user avatar
  • 1,609
7 votes
1 answer
2k views

Ubuntu server ext4 hitting 65000 subdirectory limit

I have a Ubuntu 14.04 server that is failing to create a new directory beyond the 65,000 directory. I have run a tune2fs -l and can see that the dir_nlink flag is set. Does anyone know what else can ...
gregjkm's user avatar
  • 71
6 votes
3 answers
6k views

mkfs -O ^64bit,^metadata_csum -t ext4 in 2019

Thomas Krenn recommends creating ext4 partitions like: https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices mkfs -O ^64bit,^metadata_csum -t ext4 what does this mean? does this have anything ...
canoodle's user avatar
  • 193
6 votes
6 answers
14k views

EXT4 "No space left on device (28)" incorrect

I have been through the other questions/answers regarding inode usage, mounting issues and others but none of those questions seem to apply... df -h /dev/sdd1 931G 100G 785G 12% /media/teradisk ...
Aiden Bell's user avatar
5 votes
0 answers
13k views

Mount filesystem with "structure needs cleaning" on ext4

There is a created years ago(and many time resized from that times) filesystem with ext4. After power failure it stop to mount. When i try to mount it manually i receive an error: # mount /dev/space/...
undefine's user avatar
  • 1,076
5 votes
2 answers
4k views

Estimating the time needed for a resize2fs shrink

I have a large ext4 filesystem which I'm currently shrinking (109Tb -> 83Tb in my case), and it's taking an extremely long time (Day 5 as of asking). Currently I can see that the process is still ...
Rogue's user avatar
  • 163
5 votes
4 answers
2k views

Effectively handling 2+ million files

I have a file based DB that has about 2M files stored in 3 levels of subdirectories. 2/2/6253 2/2/6252 ... File a vary from 30 bytes to 60 KB. Whole DB is Read Only. DB is about 125 Gigabytes big. ...
Worker's user avatar
  • 647
5 votes
3 answers
7k views

Any way to recover ext4 filesystems from a deleted LVM logical volume?

The other day I had a proper brain fart moment while expanding a disk on a Linux guest under Vmware. I stretched the Vmware disk file to the desired size and then I did what I usually do on Linux ...
Vegar Nilsen's user avatar
5 votes
3 answers
3k views

how do I convert a live root ext3 filesystem to ext4?

I have a root filesystem thats live and mounted and I'd like to convert it to ext4. All the howto's i've read deal with booting off a live CD but thats not an option.
incognito2's user avatar
4 votes
1 answer
8k views

MySQL is VERY slow on my ext4 file system [closed]

I have a normal hardware, I just installed Ubuntu 11.04 anew. But something's completely wrong. PHPunit tests are REALLY slow. I have no idea what's wrong. With ext3 all was normal. Thanks.
valk's user avatar
  • 507
3 votes
2 answers
18k views

How can i fix it: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full

I have noticed that in dmesg and syslog i have something like that: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full! I have checked df -i too: Filesystem Inodes ...
Rafał Kamiński's user avatar
3 votes
3 answers
9k views

optimizing ext[234] for small file throughput

I have a system that has a high throughput of small files on disk, i.e. a huge number of small files are created, written and deleted within seconds. Are there any reasonable ext2/ext3/ext4 mount ...
Michael's user avatar
  • 285
3 votes
3 answers
2k views

How does SSD meta-data corruption on power-loss happen? And can I minimize it?

Note: This is a follow-up question to Is there a way to protect SSD from corruption due to power loss?. I got good info there but it basically centered in three area, "get a UPS", "get better drives",...
Yehosef's user avatar
  • 1,305
2 votes
2 answers
4k views

Recover the file system from a corrupted RAID1

TL;DR How to recover the ext4 file system from a corrupted RAID1 partition? My situation I have one failed disk that belonged to an RAID1 array on a Synology DiskStation, the other one is lost. ...
Jakub's user avatar
  • 123
2 votes
3 answers
2k views

Ubuntu 10.10 Maverick Server makes system locks up at random intervals (i7 930; 12GB RAM)

To introduce: I have a machine with the following specs: Intel Core i7 930 12GB Ram Corsair 2xSamsung HDD 320gb (No Raid, just partitions) Asus P6TD Deluxe The machine has been at Datacenter just a ...
Rodrigo's user avatar
  • 267
1 vote
2 answers
8k views

File system keeps becoming read-only

After working for a while, my filesystem (EXT4) becomes read-only. I then use my live USB to boot into live mode and I run fsck on the corrupted partition (and others too, to be safe). I run fsck -y ...
sanjeev mk's user avatar
1 vote
1 answer
1k views

zfs for Hadoop cloud instead of ext4 [closed]

Right now I have couple of linodes with ext4. I have a hadoop setup. What benefit would I get if I migrate my file system from ext4 to zfs. Will there be any benefit in response times? Any speed ...
M-BoB's user avatar
  • 11
1 vote
1 answer
3k views

How to mount a LVM controlled ext4 file system stored on a AWS EBS volume built from a snapshot

I have a ext4 file system that is part of a Logical Volume and the underlying storage is AWS EBS. I took a snapshot of the EBS and then used that to create a new EBS volume and attached it to theEC2 ...
Pete's user avatar
  • 131
0 votes
1 answer
3k views

Mystery stack traces in /var/log/messages

I am seeing the following messages in my server's /var/log/messages. They look like stack traces and are not preceded by any narrative (e.g. "such-and-such has gone wrong"). I am almost certain they ...
NPE's user avatar
  • 679