Questions tagged [filesystems]

A file system (or filesystem) is a means to organize data expected to be retained after a program terminates by providing procedures to store, retrieve and update data, as well as manage the available space on the device(s) which contain it.

A file system (or filesystem) is a means to organize data expected to be retained after a program terminates by providing procedures to store, retrieve and update data, as well as manage the available space on the device(s) which contain it. A file system organizes data in an efficient manner and is tuned to the specific characteristics of the device. A tight coupling usually exists between the operating system and the file system. Some file systems provide mechanisms to control access to the data and metadata. Ensuring reliability is a major responsibility of a file system. Some file systems allow multiple programs to update the same file at nearly the same time.

1986 questions
6
votes
2 answers

inconsistency between du -sh and df -h

I know this is a common occurrence when the result of du -sh is smaller than that returned by the file system with df -h. (Because some files are still open in processes etc..) But in my case I have the opposite. I'm running Ubuntu 12.04 and trying…
D.Mill
  • 379
  • 5
  • 15
6
votes
1 answer

chmod 1777 or 3777 on /tmp

Is there an ideal chmod for /tmp (with /var/tmp symlinked to /tmp)? I've seen people mention it both ways just curious as to the difference. Is it a security difference?
Tiffany Walker
  • 6,681
  • 14
  • 56
  • 82
6
votes
3 answers

Which partition is my OS installed on?

I want to know which partition OS installed on my server. Below is the fdisk and df command outputs from my server. [root@ ~]# fdisk -l Disk /dev/sda: 2000.3 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of…
Pelang
  • 413
  • 5
  • 9
  • 15
6
votes
2 answers

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 drives), and 'bubbled' up through the layers (MDADM,…
Adam
  • 63
  • 1
  • 3
6
votes
2 answers

Mounting a linux image built with "dd" on Mac OSX 10.7

I recently did a ssh root@myserver "dd if=/dev/xvda " | dd of=//myimage.img as instructed by my VPS server docs at linode. I did this before to another linux system and mounted it perfectly by doing sudo mount -o loop myimage.img…
frazras
  • 193
  • 1
  • 9
6
votes
2 answers

Best options to create and mount an ext4 volume containing > 10M files in one directory

What are the appropriate options to mkfs and mount for an ext4 filesystem with a folder containing >10 million files for read access? What I have so far: umount /media/dirsizetest mkfs.ext4 -L DIRSIZETEST -E lazy_itable_init=1 -E lazy_journal_init=1…
ligos
  • 181
  • 1
  • 1
  • 5
6
votes
1 answer

Does ZFS replace the need for hardware/software RAID?

I want to provide protection against data loss on my servers. Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS. Is it correct that ZFS itself provides RAID 1 or 5 like data protection WITHOUT needing a RAID controller…
user53744
  • 163
  • 1
  • 4
6
votes
1 answer

The impact of a high directory-to-file ratio on XFS

We're building a product that is likely to generate very large XFS volumes, and I'm trying to discover the scaling bottlenecks we're likely to run into given the architecture. As we manipulate files they get placed into directories on the XFS…
sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
6
votes
6 answers

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 df -ih /dev/sdd1 59M 12M 47M 21%…
Aiden Bell
  • 609
  • 1
  • 6
  • 15
6
votes
6 answers

Dedicated server automatic backup solution

I have a dedicated Ubuntu web server in a cloud environment, and I am looking for a nice way to do automated backups. I would like to backup some directories with web apps, and all my MySql databases. As for destination: make snapshots every two…
Luigi
  • 173
  • 5
6
votes
8 answers

md5sum repeatedly gives different checksum for same file on same machine

I have a very small and quite old hard drive disk, about 32G. On to this disk I have copied a largish tar file, about 5G. When I run md5sum to generate a checksum on this file I repeatedly get different results (on the same machine and the same…
Joel
  • 469
  • 2
  • 6
  • 13
6
votes
1 answer

How to format XFS parition if the stability is the most important thing

We want to use XFS to format some partitions in a server. High performance is of course our goal, but we prefer to stability firstly. For example, we want to recover the FS quickly if power failure happens. It's not acceptable if the partition is…
flypen
  • 205
  • 1
  • 3
  • 7
6
votes
1 answer

High Availability NFS Server (Heartbeat/DRBD) long hang on clients when takeover occurs

We have a High Availability NFS environment using DRBD, heartbeat and nfs exposed to clients (Simular to the following https://help.ubuntu.com/community/HighlyAvailableNFS ). This seems to be a rather common and well supported method of doing HA…
leenix
  • 81
  • 6
6
votes
1 answer

VirtualBox: vboxsf filesystem wrongly detected as readonly?

I have VirtualBox (Windows XP host) running a CentOS 6.0 virtual machine, with one shared folder. Here is the list of mounted devices: [root@localhost ~]# mount -l ... www on /media/sf_www type vboxsf (gid=501,rw) Looks like it's read/write. Now if…
BenMorel
  • 4,507
  • 10
  • 57
  • 85