The Wayback Machine - https://web.archive.org/web/20240801211015/https://www.geeksforgeeks.org/what-is-dfsdistributed-file-system/
Open In App

What is DFS (Distributed File System)?

Last Updated : 05 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

A Distributed File System (DFS) is a file system that is distributed on multiple file servers or multiple locations. It allows programs to access or store isolated files as they do with the local ones, allowing programmers to access files from any network or computer. In this article, we will discuss everything about Distributed File System.

What-is-DFS

What is DFS (Distributed File System)?

DFS (Distributed File System) is a technology that allows you to group shared folders located on different servers into one or more logically structured namespaces. The main purpose of the Distributed File System (DFS) is to allows users of physically distributed systems to share their data and resources by using a Common File System. A collection of workstations and mainframes connected by a Local Area Network (LAN) is a configuration on Distributed File System. A DFS is executed as a part of the operating system. In DFS, a namespace is created and this process is transparent for the clients. 

Components of DFS

  • Location Transparency: Location Transparency achieves through the namespace component.
  • Redundancy: Redundancy is done through a file replication component.

In the case of failure and heavy load, these components together improve data availability by allowing the sharing of data in different locations to be logically grouped under one folder, which is known as the “DFS root”.  It is not necessary to use both the two components of DFS together, it is possible to use the namespace component without using the file replication component and it is perfectly possible to use the file replication component without using the namespace component between servers. 

Distributed File System Replication

Early iterations of DFS made use of Microsoft’s File Replication Service (FRS), which allowed for straightforward file replication between servers. The most recent iterations of the whole file are distributed to all servers by FRS, which recognises new or updated files. “DFS Replication” was developed by Windows Server 2003 R2 (DFSR). By only copying the portions of files that have changed and minimising network traffic with data compression, it helps to improve FRS. Additionally, it provides users with flexible configuration options to manage network traffic on a configurable schedule.

Features of DFS

  • Transparency 
    • Structure transparency: There is no need for the client to know about the number or locations of file servers and the storage devices. Multiple file servers should be provided for performance, adaptability, and dependability.
    • Access transparency: Both local and remote files should be accessible in the same manner. The file system should be automatically located on the accessed file and send it to the client’s side.
    • Naming transparency: There should not be any hint in the name of the file to the location of the file. Once a name is given to the file, it should not be changed during transferring from one node to another.
    • Replication transparency: If a file is copied on multiple nodes, both the copies of the file and their locations should be hidden from one node to another.
  • User mobility: It will automatically bring the user’s home directory to the node where the user logs in.
  • Performance: Performance is based on the average amount of time needed to convince the client requests. This time covers the CPU time + time taken to access secondary storage + network access time. It is advisable that the performance of the Distributed File System be similar to that of a centralized file system.
  • Simplicity and ease of use: The user interface of a file system should be simple and the number of commands in the file should be small.
  • High availability: A Distributed File System should be able to continue in case of any partial failures like a link failure, a node failure, or a storage drive crash. 
    A high authentic and adaptable distributed file system should have different and independent file servers for controlling different and independent storage devices.
  • Scalability: Since growing the network by adding new machines or joining two networks together is routine, the distributed system will inevitably grow over time. As a result, a good distributed file system should be built to scale quickly as the number of nodes and users in the system grows. Service should not be substantially disrupted as the number of nodes and users grows.
  • Data integrity: Multiple users frequently share a file system. The integrity of data saved in a shared file must be guaranteed by the file system. That is, concurrent access requests from many users who are competing for access to the same file must be correctly synchronized using a concurrency control method. Atomic transactions are a high-level concurrency management mechanism for data integrity that is frequently offered to users by a file system.
  • Security: A distributed file system should be secure so that its users may trust that their data will be kept private. To safeguard the information contained in the file system from unwanted & unauthorized access, security mechanisms must be implemented.

History of DFS

The server component of the Distributed File System was initially introduced as an add-on feature. It was added to Windows NT 4.0 Server and was known as “DFS 4.1”. Then later on it was included as a standard component for all editions of Windows 2000 Server. Client-side support has been included in Windows NT 4.0 and also in later on version of Windows. Linux kernels 2.6.14 and versions after it come with an SMB client VFS known as “cifs” which supports DFS. Mac OS X 10.7 (lion) and onwards supports Mac OS X DFS.  

Applications of DFS

  • NFS: NFS stands for Network File System. It is a client-server architecture that allows a computer user to view, store, and update files remotely. The protocol of NFS is one of the several distributed file system standards for Network-Attached Storage (NAS).
  • CIFS: CIFS stands for Common Internet File System. CIFS is an accent of SMB. That is, CIFS is an application of SIMB protocol, designed by Microsoft.
  • SMB: SMB stands for Server Message Block. It is a protocol for sharing a file and was invented by IMB. The SMB protocol was created to allow computers to perform read and write operations on files to a remote host over a Local Area Network (LAN). The directories present in the remote host can be accessed via SMB and are called as “shares”.
  • Hadoop: Hadoop is a group of open-source software services. It gives a software framework for distributed storage and operating of big data using the MapReduce programming model. The core of Hadoop contains a storage part, known as Hadoop Distributed File System (HDFS), and an operating part which is a MapReduce programming model.
  • NetWare: NetWare is an abandon computer network operating system developed by Novell, Inc. It primarily used combined multitasking to run different services on a personal computer, using the IPX network protocol.

Working of DFS

There are two ways in which DFS can be implemented:

  • Standalone DFS namespace: It allows only for those DFS roots that exist on the local computer and are not using Active Directory. A Standalone DFS can only be acquired on those computers on which it is created. It does not provide any fault liberation and cannot be linked to any other DFS. Standalone DFS roots are rarely come across because of their limited advantage.
  • Domain-based DFS namespace: It stores the configuration of DFS in Active Directory, creating the DFS namespace root accessible at \\<domainname>\<dfsroot> or \\<FQDN>\<dfsroot>
Working-of-DFS

Advantages of Distributed File System(DFS)

  • DFS allows multiple user to access or store the data.
  • It allows the data to be share remotely.
  • It improved the availability of file, access time, and network efficiency.
  • Improved the capacity to change the size of the data and also improves the ability to exchange the data.
  • Distributed File System provides transparency of data even if server or disk fails.

Disadvantages of Distributed File System(DFS)

  • In Distributed File System nodes and connections needs to be secured therefore we can say that security is at stake.
  • There is a possibility of lose of messages and data in the network while movement from one node to another.
  • Database connection in case of Distributed File System is complicated.
  • Also handling of the database is not easy in Distributed File System as compared to a single user system.
  • There are chances that overloading will take place if all nodes tries to send data at once.

Conclusion

The Distributed File System (DFS) allows users to easily access and share files across multiple servers, increasing availability, performance, and scalability. DFS improves data access and dependability by offering characteristics such as location transparency, redundancy, and replication. However, it also offers difficulties such as security threats, data loss, and complex database management. Despite these drawbacks, DFS is still an important technology for efficient and robust data management in distributed conditions.

Frequently Asked Questions on Distributed File System(DFS) – FAQs

Q 1: Can DFS Replication communicate with FRS?

No, DFS Replication does not communicate with File Replication Service (FRS).

Q 2: How does DFS Replication handle conflicts?

DFS uses a conflict resolution algorithm based on timestamps and file hashes.

Q 3: Can I upgrade from FRS to DFS Replication without losing configuration settings?

Yes, you can migrate replication from FRS to DFS Replication.



Previous Article
Next Article

Similar Reads

Distributed System - Thrashing in Distributed Shared Memory
In this article, we are going to understand Thrashing in a distributed system. But before that let us understand what a distributed system is and why thrashing occurs. In naive terms, a distributed system is a network of computers or devices which are at different places and linked together. Each one of these distributed computers shares the same s
4 min read
Distributed System - Types of Distributed Deadlock
A Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource occupied by some other process. When this situation arises, it is known as Deadlock. A Distributed System is a Network of Machines that can exchange information with each other through Message-passing. It can be
4 min read
Distributed Information Systems in Distributed System
Distributed systems consist of multiple independent computers working together as a unified system. These systems offer enhanced scalability, reliability, and fault tolerance. They ensure efficient resource utilization and performance by distributing tasks across various nodes. One crucial aspect is managing and sharing data effectively, which is t
9 min read
Distributed Ledger Technology(DLT) in Distributed System
Distributed Ledger Technology (DLT) is a way to record and share data across multiple computers, ensuring that all copies of the data are synchronized and secure. Unlike traditional databases controlled by a single entity, DLT allows for decentralized data storage and management. This makes it harder for data to be tampered with and increases trans
11 min read
Operating System - Difference Between Distributed System and Parallel System
A distributed system is a model where distributed applications are running on multiple computers linked by a communications network. Sometimes it is also called loosely coupled systems because in which each processor has its own local memory and processing units. LOCUS and MICROS are some examples of distributed operating systems. Parallel Systems
4 min read
File Caching in Distributed File Systems
File caching enhances I/O performance because previously read files are kept in the main memory. Because the files are available locally, the network transfer is zeroed when requests for these files are repeated. Performance improvement of the file system is based on the locality of the file access pattern. Caching also helps in reliability and sca
12 min read
Difference between a Distributed Lock Manager and a Distributed Database
In today’s world, managing data and resources efficiently across multiple locations is crucial. Distributed Lock Managers and Distributed Databases are foundational in achieving this. They serve different yet complementary roles in distributed systems. While a distributed lock manager coordinates access to shared resources, a distributed database h
5 min read
Distributed Consensus in Distributed Systems
In distributed systems, achieving consensus among nodes is critical for maintaining coherence and reliability. This article explores the principles, algorithms, challenges, and applications of distributed consensus, which are essential for ensuring agreement across decentralized networks. Important Topics for Distributed Consensus in Distributed Sy
11 min read
File Accessing Models in Distributed System
In Distributed File Systems (DFS), multiple machines are used to provide the file system’s facility. Different file system utilize different conceptual models of a file. The two most usually involved standards for file modeling are structure and modifiability. File models in view of these standards are described below. File Accessing Models: The fi
4 min read
File Service Architecture in Distributed System
A file system is a system where data is stored persistently. In this article, we will see the concept of File service architecture in distributed systems. The access control mechanism is used for sharing of data between multiple users. Furthermore, concurrent access is provided certainly for read-only access. The following modules are the part of t
5 min read
three90RightbarBannerImg