Skip to Content

What Is an NFS Datastore?

Today’s businesses and networks rely heavily on efficient and secure storage solutions to manage their data. One such solution is a Network File System (NFS) datastore, which provides a cost-effective, high-availability network file storage option. Developed by Sun Microsystems in the 1980s, NFS datastores allow sharing of file systems across a network, providing flexibility and ease of use for businesses and networks.

What Is an NFS Datastore?

An NFS datastore is a protocol that allows multiple users to access the same files and data from a centralized location. This eliminates the need for each user to have a separate copy of the data, reducing storage space requirements and making data management more efficient. NFS datastores are widely used in virtualization environments, where they enable virtual machines to access shared storage resources.

Differences Between NFS and VMFS datastores

While both NFS and virtual machine file system (VMFS) datastores serve the purpose of storing virtual machine files, there are significant differences between them. Let’s explore the key differences. 

Protocol and Access Method

NFS is a network-based file system protocol that allows remote file access over a network. It follows a client-server model, where the NFS server hosts the shared files, and clients connect to the server using the NFS protocol. NFS datastores are accessed as shared network storage, similar to accessing files from a remote file server.

VMFS is a specialized file system designed specifically for virtualization environments. It’s a clustered file system that provides shared storage for virtual machines running on VMware ESXi hosts. VMFS datastores are accessed directly by the hypervisor, bypassing the need for a network file system protocol.

File-level vs. Block-level Access

NFS operates at the file level. It allows clients to access individual files and directories over the network. Clients can perform file-level operations, such as reading, writing, and modifying files.

VMFS operates at the block level. It provides direct access to storage blocks where virtual machine files are stored. Instead of interacting with files, the hypervisor interacts with raw disk blocks, allowing for efficient storage and management of virtual machines.

File Locking

NFS provides file-locking mechanisms to handle concurrent access to shared files. It allows multiple clients to access the same file simultaneously, but file locking ensures that only one client can modify a file at a time to prevent conflicts.

VMFS includes its own file-locking mechanisms to manage concurrent access to virtual machine files. It ensures that multiple ESXi hosts can access the same virtual machine files without conflicts, enabling features like vMotion and high availability.

Scalability

NFS datastores can be shared across multiple ESXi hosts, providing scalability and allowing multiple hosts to access the same shared storage. It’s suitable for small to medium-sized deployments and offers flexibility in terms of storage location.

VMFS datastores are optimized for scalability and performance within VMware environments. They are designed for large-scale deployments and can handle high volumes of virtual machines and data. VMFS datastores are typically implemented on high-performance storage systems, such as storage area network (SAN) or network attached storage (NAS) devices.

Storage Management Features

NFS datastores leverage the storage management capabilities provided by the NFS server. The storage system hosting the NFS share manages features such as snapshots, thin provisioning, and data deduplication.

VMFS datastores offer advanced storage management features integrated with VMware's virtualization platform. These features include datastore snapshots, thin provisioning, storage vMotion, storage policies, and Storage Distributed Resource Scheduler (SDRS) for automated storage load balancing.

In summary, while both NFS and VMFS datastores are used for storage in virtualization environments, they differ in their protocol, access method, file-level vs. block-level access, file-locking mechanisms, scalability, and storage management features. Ultimately, the choice between NFS and VMFS depends on the specific requirements of the virtualization environment, such as scalability, performance, and integration with storage management features.

How Does an NFS Datastore Work?

Here’s a quick rundown of how an NFS datastore works. 

Server Setup

The NFS server is responsible for hosting the shared files and directories. It typically runs on a dedicated server or NAS device. The server sets up and configures the NFS service, specifying the directories to be shared and the access permissions for clients.

Client Connection

The client machines that want to access the shared files need to connect to the NFS server. This requires the client machines to have the NFS client software installed. The NFS client software enables the client to communicate with the NFS server using the NFS protocol.

Mounting the NFS Share

To access the shared files, the client machine needs to mount the NFS share. Mounting is the process of making the shared file system available on the client's local file system. The client specifies the NFS server's address and the shared directory to mount. Once mounted, the client can interact with the files on the NFS share as if they were local files.

File Access

Once the NFS share is mounted, the client can read, write, and perform various file operations on the shared files and directories. The NFS protocol handles the communication between the client and the server, ensuring that the file access requests are properly transmitted and processed.

File Locking

NFS provides file-locking mechanisms to ensure data consistency and prevent conflicts when multiple clients access the same file simultaneously. File locking allows for exclusive or shared access to files, ensuring that only one client can modify a file at a time to prevent data corruption or inconsistencies.

Security and Access Control

NFS supports access control mechanisms to manage the security and permissions for shared files and directories. The server can define access rules and permissions to control which clients can access specific files and what operations they can perform. This helps protect sensitive data and ensures that only authorized users can access and modify files.

Performance Optimization

NFS implementations often include various optimization techniques to improve performance. Caching mechanisms can be employed to reduce network traffic by storing frequently accessed data locally on the client machines. Additionally, NFS supports asynchronous writes, where the client acknowledges data writes without waiting for the server's confirmation, enhancing performance in certain scenarios.

Error Handling and Recovery

NFS includes error handling and recovery mechanisms to handle network interruptions, server failures, or other unexpected events. The protocol defines how clients and servers should handle these situations and recover from failures to ensure data integrity and availability.

In summary, an NFS datastore works by enabling shared access to files and directories over a network. The NFS server hosts the shared files, and clients connect to the server using the NFS client software. Clients mount the NFS share to make it available on their local file system, allowing them to read, write, and perform file operations. NFS provides security, access control, file locking, performance optimization, error handling, and recovery mechanisms to ensure reliable and efficient file sharing.

Which Is Better: NFS or iSCSI?

The choice between NFS and Internet Small Computer System Interface (iSCSI) depends on various factors, including your specific use case, requirements, and the underlying infrastructure. Both NFS and iSCSI have their strengths and things to consider. Let’s compare them.  

Protocol and Access Method

While NFS is a file-level protocol that allows remote file access over a network, iSCSI is a block-level protocol that enables the transport of SCSI commands over an IP network. It presents remote storage as if it were a local disk attached to the system. iSCSI datastores provide direct block-level access to storage devices, which can be beneficial for certain workloads.

Performance

NFS can be efficient for read-intensive workloads, especially when caching mechanisms are employed. However, it may introduce some overhead due to the file-level access and additional protocol layers involved.

iSCSI offers excellent performance for applications that require low latency and high throughput, as it operates at the block level. It allows direct access to storage devices and can take advantage of advanced features like jumbo frames and offloading capabilities of network interface cards (NICs).

Flexibility and Cross-platform Support

NFS is known for its cross-platform compatibility, supporting various operating systems such as Linux, Unix, and Windows. It simplifies file sharing and collaboration across different platforms.

iSCSI presents remote storage as a local disk, making it suitable for environments that require block-level access, such as database systems or virtualization platforms. It’s generally platform-independent and can work with any operating system that supports iSCSI initiators.

Infrastructure Requirements

NFS relies on a dedicated NFS server that hosts the shared storage. It requires network connectivity and proper configuration between the server and clients. NFS deployments often leverage existing Ethernet infrastructure, making it a cost-effective option.

iSCSI relies on storage devices or SANs that present storage volumes to the network. It requires dedicated hardware or storage appliances capable of exporting iSCSI targets. iSCSI deployments often require separate network infrastructure or dedicated VLANs for optimal performance.

Scalability and Management

NFS is relatively straightforward to set up and manage. It offers flexibility in terms of storage location and can be easily shared across multiple systems. However, scalability might be a consideration for larger deployments, as NFS relies on the performance and capacity of the NFS server.

iSCSI provides scalability by leveraging the capabilities of storage systems or SANs. It can handle large-scale deployments and offers advanced storage management features, such as RAID configurations, volume snapshots, and thin provisioning.

Security 

NFS traditionally had limited security features, but recent versions (NFSv4) introduced improved security mechanisms like Kerberos authentication and stronger access controls. However, additional configuration and security measures may be required to ensure data protection.

iSCSI can leverage existing network security measures, such as IPsec or VLAN segmentation, to provide secure data transmission. It allows encryption of data in transit, adding an extra layer of security.

In conclusion, determining which protocol is better, NFS or iSCSI, depends on your specific requirements and environment. NFS is often favored for its simplicity, cross-platform support, and ease of use in sharing files. iSCSI, on the other hand, excels in performance, especially for block-level access and demanding workloads. It provides lower latency and higher throughput, making it suitable for applications that require direct storage access.

To make an informed decision between NFS and iSCSI, consider the following factors:

Workload requirements: Evaluate the specific needs of your workloads. If you primarily deal with file sharing and collaboration across different platforms, NFS may be the better choice. If you require low-latency access and high-performance storage for applications like databases or virtualization, iSCSI may be more suitable.

Infrastructure and budget: Assess your existing infrastructure and budget constraints. NFS can be more cost-effective since it utilizes existing Ethernet networks and does not require dedicated storage hardware. On the other hand, iSCSI may require additional investment in dedicated storage devices or SAN infrastructure.

Management complexity: Consider the complexity of managing and configuring each protocol. NFS is generally easier to set up and manage, while iSCSI may involve more advanced configuration and administration due to its block-level nature and dedicated storage systems.

Scalability: Evaluate the scalability requirements of your storage solution. iSCSI, with its ability to leverage advanced storage systems, offers more scalability options, including features like RAID configurations and thin provisioning. NFS scalability depends on the performance and capacity of the NFS server.

Security: Take into account the security considerations of your data. While both protocols can be secured, iSCSI may offer more robust security options, such as data encryption and network-level security protocols like IPsec.

Ultimately, the choice between NFS and iSCSI depends on your specific needs and priorities. It may also be worth considering a hybrid approach, where NFS and iSCSI are used together in different parts of your infrastructure to leverage their respective strengths.

What's the Difference Between NFS and CIFS?

NFS and Common Internet File System (CIFS) are both protocols used for sharing file systems over a network. However, NFS is primarily used in Unix-based systems, while CIFS is used in Windows-based systems.

CIFS, also known as Server Message Block (SMB), originated at IBM in the 1980s and was later embraced and expanded upon by Microsoft, becoming the de facto standard for file sharing in Windows environments.

Performance

NFS typically outperforms CIFS in terms of speed and efficiency, especially in Unix-based environments. It leverages a stateless protocol, which results in lower overhead and faster data transfers. CIFS, with its emphasis on Windows compatibility and extensive feature set, tends to have slightly higher overhead, potentially impacting performance, particularly in high-latency networks.

Security

Both NFS and CIFS provide security features, but there are differences in their implementations. NFS initially relied on basic security mechanisms like host-based authentication, which could be vulnerable to certain attacks. However, modern versions, such as NFSv4, have introduced stronger security measures, including support for Kerberos authentication and encryption. CIFS, with its integration into Windows operating systems, benefits from the robust security mechanisms and access control features provided by Windows, such as Active Directory integration and file-level permissions.

Platform Support

NFS has broader platform support, extending beyond Unix-like systems. It can be implemented on Windows systems through third-party software, making it more versatile in heterogeneous environments. CIFS, as the native file-sharing protocol of Windows, seamlessly integrates with Windows Server environments and offers advanced features specific to the Windows ecosystem.

In conclusion, while both NFS and CIFS serve the purpose of network file sharing, they differ in terms of origins, compatibility, performance, security, and platform support. Choosing between them depends on your specific requirements, existing infrastructure, and the platforms you use within your organization.

NFS Datastores in Virtualization

NFS datastores are widely used in virtualization environments because they provide a cost-effective, high-availability network file storage option. NFS datastores enable virtual machines to access shared storage resources, simplifying data management and reducing storage space requirements. While NFS is not a VMware technology, it’s widely used in VMware. ESXi, a hypervisor used in virtualization environments, supports the use of NFS datastores. ESXi also provides advanced features such as high availability and a distributed resource scheduler, which enable efficient use of NFS datastores.

Advantages and Benefits of Using NFS Datastores

Using NFS datastores provides several advantages and benefits, including:

Cost-effective, High-availability Network File Storage

NFS datastores provide a cost-effective, high-availability network file storage option, reducing storage space requirements and simplifying data management.

Ease of Use and Flexibility

NFS datastores are easy to set up and use, providing flexibility and ease of management for businesses and networks.

Disadvantages of Using NFS Datastores

While NFS datastores provide several advantages, there are also some disadvantages to consider, including:

Performance and Security 

NFS datastores may not provide the same level of performance and security as other storage solutions, such as iSCSI.

Network File Storage Latency and Compatibility Issues

NFS datastores may be affected by network file storage latency and compatibility issues. Network latency can cause delays in accessing data, while compatibility issues may arise between different operating systems and network configurations.

Use Pure to Take Full Advantage of NFS Datastores

NFS datastores are a key part of virtualization, which helps companies make dramatic improvements in IT efficiency and flexibility.  

But infrastructure constraints prevent many IT departments from taking full advantage of their virtualization investment, with storage systems typically the greatest bottleneck. The Pure Storage® FlashArray™ suite of products removes storage issues, enabling organizations to fully realize the benefits of virtualization.

With FlashArray, you get:

Full Virtualization

FlashArray//X™ provides the performance and scalability necessary to enable the virtualization of everything, including demanding enterprise desktop infrastructure and even performance-hungry, mission-critical workloads such as large databases. Not only can you virtualize every workload, but common management tasks are simpler and faster, reducing the burden on IT administrators.

100% Consolidation

Get always-on, 99.9999% delivered availability, inclusive of non-disruptive upgrades and maintenance. FlashArray makes it simple to integrate with the management platform of your choice: VMware vRealize, Cisco UCS Director, Microsoft System Center, and OpenStack, among others.

100% Automation

FlashArray also delivers comprehensive orchestration and automation features

for private or hybrid cloud-model IT. Rapidly deploy scalable workflows that automate complex IT processes. Automate your datastore creation (no tuning, aligning, or tiers needed) and your protection policies (with native snapshots and replication). Eliminate resource contention with predictive analytics and smart alerts that offer proactive identification and resolution of emerging issues.

100% Self-service

Application owners and other users need cloud-model data center services that are instantly available and easy to consume. FlashArray lets virtualization administrators quickly build self-service catalogs that allow users to self-provision applications, services, and resources. Sample catalogs are available on the Pure Storage community website, where users share their workflows, service templates, and more.

Learn more about the FlashArray suite of products.

こちらの資料もご覧ください!

12/2024
導入事例:株式会社 JSOL|ピュア・ストレージ
総合的な IT サービスの提供で定評のある株式会社 JSOL は、VDI のニーズ急増によるストレージの諸課題の抜本的な解決策としてピュアのオールフラッシュ・ストレージ FlashArray を導入し、ストレージ I/O の高速化をはじめとする大幅な性能の向上に成功しています。
導入事例
4 ページ
ご相談・お問い合わせ
ご質問・ご相談

ピュア・ストレージ製品および認定についてのご質問・ご相談を承っております。ご連絡をお待ちしております。

デモのご用命

ライブデモのご用命を承っております。ピュアがいかにしてデータを成果に変えるお手伝いができるかをご説明します。 

ピュア・ストレージ・ジャパン株式会社

〒100-0014 東京都千代田区永田町 2 丁目 10-3 東急キャピトルタワー 12 階

 

一般: info-japan@purestorage.com

メディア: pr-japan@purestorage.com

03-4563-7443(総合案内)

閉じる
このブラウザは現在サポートされていません。

古いブラウザには、セキュリティ・リスクが存在する場合があります。ピュア・ストレージの Web サイトをより快適にご利用いただけるよう、最新のブラウザにアップデートしてください。