Skip to content

FSx for Windows File Server Server-Side Copy

0

I'm evaluating a use case in which we must often copy folders under a common FSx path exposed over the network. Let's say we have an FSx server, which is called fsx.my.ad, with a shared folder catalog.
Under the catalog, there are folders with variable sizes, i.e., 4GB to 20GB, and we need to "clone" some of them with different names. We are currently using some robocopy tasks, but I'm discussing with some of our developers doing something at the code level. However, I wonder if the FSx for Windows supports server-side copy operations. According to MS documentation, the FSCTL SRV COPYCHUNK should be used when the source and destination are on the same server. In this way, clients can offload copy operations to the server using Copy-Chunk requests. In processing such a request, the network round-trip should be avoided, as reported on the Samba Wiki.

According to the latter, robocopy should have the offload on by default. My experience with robocopy is different and consistent with the usual behavior of a remote copy. If I issue the command from an EC2,i.e., robocopy \fsx.my.ad\Catalog\A \fsx.my.ad\Catalog\A1 /E /MT:32, I see network traffic on the EC2 both in and out as per read and write operation. So, the EC2 is acting as a "copy hub," and the robocopy process reads from the shared folder over the network and writes to the new destination folder on the same share over the network.

I guess this option is not usable on FSx, so the optimization is not achievable with FSx. Am I right? If so, I don't waste programmer's work :)

Gianluca

asked 2 years ago572 views

2 Answers
0

Yeah, at present, robocopy is probably your best option here.

AWS

answered 2 years ago

  • We also had some good and comparable results with custom C# code and parallel threading. But yeah, the robocopy is likely best suited for most of the other general use cases.

0

Based on the information available about Amazon FSx for Windows File Server, it appears that server-side copy operations as described in your scenario are not explicitly supported or documented as a feature of FSx.

FSx for Windows File Server is built on Windows Server and provides file storage accessible over the SMB protocol. While it offers high performance and various administrative features, there is no specific mention of support for server-side copy operations using FSCTL_SRV_COPYCHUNK or similar mechanisms.

Your observation about the robocopy behavior is consistent with a standard remote copy operation, where data is transferred through the client (in this case, your EC2 instance) rather than being processed entirely on the server side. This suggests that the FSx implementation may not be leveraging the server-side copy capabilities you're looking for.

Given this, it's likely that optimizations relying on server-side copy operations may not be achievable with FSx for Windows File Server in its current form. Your approach of using robocopy or developing custom code at the application level might remain the most practical options for your use case.

However, it's worth noting that FSx does offer high performance capabilities, including high throughput and IOPS, as well as an in-memory cache for frequently accessed data. These features may still provide some level of optimization for your copy operations, even if they don't utilize server-side copy in the way you've described.

If server-side copy functionality is crucial for your use case, you may want to consider reaching out to AWS support for more detailed information or to request this feature for future implementation.
Sources
Amazon FSx for Windows File Server Features - Amazon Web Services
FSx for Windows File Server performance - Amazon FSx for Windows File Server
FSx for Windows File Server - AWS Prescriptive Guidance

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.