RE: VFS functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Basically, I intend to create a module that, when loaded, allows for
>> file/directory replication. So if /home is meant to be replicated to /opt
>> then /etc can contain a config file that has a line like:
>> /home	   /opt
>
>Why do you want such a module?

I wanted to replicate a local directory on a server to a NFS mounted
directory. We tried to use rsync but for our directory sizes it worked out
to be too slow. For a directory (you guessed it - mail) with about 80,000+
files the sync time was about half an hour. Also, during the sync the
utilization figures on the file server (a NetApp) would go high. We
originally planned to export such NFS directories to all the mail servers
from the NetApp fileserver so that if any mail server disks crashed we
wouldn't lose any data and bring it back-up quickly. But since rsync turned
out to be very slow for even a single server we had to scrap the idea of
doing multiple servers.

>Oh, and how are you going to handle mmap?

Haven't looked into that yet :) But should follow the same pattern. Monitor
for file open, open the corresponding file replica and place the file
descriptors in a table and have the write function look up the table for
replicating the writes.

Will also need to track the file descriptor's positioning in the file also,
Right?

Thanks,

Siddhartha



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux