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
5
votes
3 answers

Convert a software raid volume from ext3 to ext4 (or ext2)?

I have an mdadm created software raid volume in my ubuntu linux 11 machine. It is NOT the boot drive. It is a software raid 5 configuration made from 3 large sata drives. When I created it initially, I made it ext3. I have since learned that I…
Scott Szretter
  • 1,882
  • 11
  • 43
  • 66
5
votes
1 answer

upgrading ext3 fs on ubuntu 8.04

so we are stuck with this closed source system that keeps on adding folders to one directory, and it's going to hit the 32k limit soon because it's ext3. and that folder is expected to have +100k folders very soon too. it's 2.6.24-27-xen x86_64…
Devrim
  • 1,187
  • 4
  • 16
  • 29
5
votes
1 answer

Does increasing the journal size improve performance for ext4 filesystems?

There is an article on linux-mag which says that increasing the size of the journal on ext4 filesystems actually improves filesystem performance for very large partitions. I'm wondering if anyone here can authoritatively confirm or deny this for…
AlexCombas
  • 101
  • 2
  • 4
5
votes
0 answers

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/vservershosting-vs /mnt/ mount: /mnt: mount(2)…
undefine
  • 1,046
  • 9
  • 21
5
votes
1 answer

Are my drives being utilized equally with Linux Software RAID 0 array?

I have four NVMe drives in a RAID 0 configuration. I am attempting to determine how many IOPS the array is handling. When I run iostat, it appears that one drive is handling more IO than the other three drives. Is this an error with the way that…
5
votes
2 answers

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 doing I/O (so it seems it hasn't errored out and…
Rogue
  • 163
  • 1
  • 6
4
votes
1 answer

Restoring a smaller partition image to larger partition using dd

I recently backed up an 11GB ext4 partition to a file using dd, repartitioned, and restored the file to a 40GB partition. parted now shows the partition as 40GB, Nautilus reads it as 11GB, and both list the drive as only having 2GB free. Is this a…
user30569
4
votes
1 answer

Manually set needs_recovery flag in ext4 filesystem to True

I am trying to setup some unit tests for an application, and one thing I need is a 'dirty' ext4 filesystem that can be tested against. Is there a way I can manually set the 'needs_recovery' flag?
vimalloc
  • 151
  • 1
  • 6
4
votes
2 answers

LVM cache in writeback mode is equivalent to external ext4 journal?

I am running ext4 filesystems on LVM. The two big speedup options I'm looking at are, LVM cache and the external ext4 journal. It sounds like if I'm using a single SSD for this, LVM cache in writeback mode is the same thing as having your ext4…
RobC
  • 143
  • 1
  • 4
4
votes
3 answers

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 slightly larger partition as well. So, I then ran…
carlspring
  • 713
  • 1
  • 7
  • 12
4
votes
1 answer

Cannot remove mount option "discard" on an ext4 file system

I tried to turn off TRIM ("discard") on my ext4 filesystem, but I did not succeed. I tried to add nodiscard option into /etc/fstab, but I can still see this: # tune2fs -l /dev/md2 | grep discard Default mount options: journal_data_writeback…
Alex Flo
  • 1,761
  • 3
  • 18
  • 23
4
votes
1 answer

Kickstart partitioning with ext4 in autopart mode?

When installing CentOS 6.x, how to specify the filesystem type with ext4 and also use the autopart directive in kickstart file? The default filesystem type with autopart directive used is ext3, which can not manage a very large disk space.
boydc2011
  • 141
  • 2
4
votes
1 answer

Direct I/O on Linux

I'm trying to enable Direct I/O on /opt (/dev/sda6, ext4) on Linux Mint 13. What I'm trying is: mount -o dio,rw /dev/sda6 /opt as root. The system responds with: mount: wrong fs type, bad option, bad superblock on /dev/hda2 dmesg is…
BerserkEVA
  • 153
  • 1
  • 1
  • 5
4
votes
1 answer

Ext2: e2fsck what do the "errors" mean?

So, my hard drive was acting all slow, and after checking through my syslog, I found all these errors. Some googling led me to try to run e2fsck -c -c on the drive. So, it's been going for about 2 days now, and seems to be nearly complete. But, it…
bnsh
  • 143
  • 4
4
votes
1 answer

rsync copies unmodified files between different file systems

I try to synchronize files between two machines using rsync, but it seems to copy all the files regardless file modification time. Two consecutive call of the command produces the same results, so it is clearly broken. The command in question…
Joó Ádám
  • 265
  • 3
  • 10