Questions tagged [ext3]

ext3 is the default file system for many Linux distributions.

ext3 offers many features as a file system - journaling as well as very efficient directory indices.

283 questions
165
votes
18 answers

Disk full, du tells different. How to further investigate?

I have a SCSI disk in a server (hardware Raid 1), 32G, ext3 filesytem. df tells me that the disk is 100% full. If I delete 1G this is correctly shown. However, if I run a du -h -x / then du tells me that only 12G are used (I use -x because of some…
initall
  • 2,205
  • 3
  • 18
  • 19
119
votes
24 answers

rm on a directory with millions of files

Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID card, ext3 FS mounted noatime and data=ordered, not under crazy load, kernel 2.6.18-92.1.22.el5, uptime 545 days. Directory doesn't contain any…
BMDan
  • 7,129
  • 2
  • 22
  • 34
62
votes
8 answers

How do I determine the block size of an ext3 partition on Linux?

How do I determine the block size of an ext3 partition on Linux?
mike
  • 3,853
  • 11
  • 29
  • 27
52
votes
4 answers

How do you get e2fsck to show progress information?

I'm running e2fsk on a very large (1TB+) ext3 disk with e2fsck -v /dev/sda1 from RIPLinux booted with PXE. I get e2fsck 1.41.6 (30-May-2009) /dev/sda1 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes and…
Tim Abell
  • 1,311
  • 3
  • 10
  • 21
32
votes
12 answers

Filesystem large number of files in a single directory

OK, not so large but I need to use something where around 60,000 files with average size of 30kb are stored in a single directory (this is a requirement so can't simply break into sub-directories with smaller number of files). The files will be…
bugmenot77
  • 403
  • 1
  • 5
  • 7
32
votes
11 answers

How to make `rm` faster on ext3/linux?

I have ext3 filesystem mounted with default options. On it I have some ~ 100GB files. Removal of any of such files takes long time (8 minutes) and causes a lot of io traffic, which increases load on server. Is there any way to make the rm not as…
user13185
28
votes
5 answers

CentOS thinks Disk is busy, can't mount or fsck

I'm a longtime user, and first time question submitter. I've spent a full day searching this and many other sites for a solution, but I must resort to requesting assistance to resolve my situation. History: Our HP Proliant, Centos 5.9 server was…
TripSixes
  • 383
  • 1
  • 3
  • 6
26
votes
12 answers

Storing and backing up 10 million files on Linux

I run a website where about 10 million files (book covers) are stored in 3 levels of subdirectories, ranging [0-f]: 0/0/0/ 0/0/1/ ... f/f/f/ This leads to around 2400 files per directory, which is very fast when we need to retrieve one file. This…
BenMorel
  • 4,215
  • 10
  • 53
  • 81
25
votes
9 answers

Maximum number of files in one ext3 directory while still getting acceptable performance?

I have an application writing to an ext3 directory which over time has grown to roughly three million files. Needless to say, reading the file listing of this directory is unbearably slow. I don't blame ext3. The proper solution would have been to…
knorv
  • 1,789
  • 6
  • 19
  • 29
20
votes
3 answers

How long should resize2fs take on a 1TB partition?

I've got a new computer at the university and almost set up everything for myself on it when I've noticed that the previous user of the machine used a huge 1TB ext3 partition only. I usually keep /home on a separate partition and I also prefer to…
Tamás
  • 303
  • 1
  • 2
  • 6
19
votes
3 answers

How to tell the language encoding of a filename on Linux?

I have a directory with ~10,000 image files from an external source. Many of the filenames contain spaces and punctuation marks that are not DB friendly or Web friendly. I also want to append a SKU number to the end of every filename (for accounting…
rwired
  • 381
  • 2
  • 7
  • 18
18
votes
1 answer

From bad sector to "damaged file" - did it for Linux/ext3, can I do it for Windows/NTFS?

When a SMART check on a disk reports a bad sector, it is important to be able to identify the file that has the bad sector - and restore it from backups. Below, I show how I did this for my Linux/ext3 VMWARE server - but does anyone know if this can…
ttsiodras
  • 413
  • 1
  • 4
  • 10
18
votes
7 answers

How do you re-mount an ext3 fs readwrite after it gets mounted readonly from a disk error?

Its a relatively common problem when something goes wrong in a SAN for ext3 to detect the disk write errors and remount the filesystem read-only. Thats all well and good, only when the SAN is fixed I can't figure out how to re-re-mount the…
cagenut
  • 4,808
  • 2
  • 23
  • 27
17
votes
4 answers

Rsync -avzHP follows hardlinks instead of copying them as hardlinks

I use rsnapshot to create hourly/daily/weekly/monthly backups of my "work"-share. Now I'm trying to copy the whole backup-directory onto an external drive using rsync. I used this command/parameters within a screen session (yes, the…
woerndl
  • 273
  • 1
  • 2
  • 7
16
votes
2 answers

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 reliable choices. I've only used ext4 on recent…
warren
  • 17,829
  • 23
  • 82
  • 134
1
2 3
18 19