raid: how to improve write speed of NAS NFS to my home server drives


Problem: I have slow write speeds on my NFS NAS. I would like to improve write speed on my home server.

My typical use is: copy a 1-30gb file on my Mac laptop to my ubuntu server in one of two places: 1) temporary storage – server system folder (SSD) or 2) permanent storage (HDD – raid6 – 5x6tb units – 5400rpm)

Let's first tackle the SSD write speed:

the line in my export file is:

 /home/username/Transfer   192.168.102.1/24(rw,insecure,no_subtree_check,all_squash,anonuid=1000,anongid=1000)

If I send a file and monitor the progress:

 MBP:home hugh$ rsync -va --progress /home/Source/ /Volumes/Destination/
    building file list ... 
    blah blah
    sent 1233757345 bytes  received 60 bytes  9753022.96 bytes/sec
    total size is 2487074514  speedup is 2.02

So I get 9.7 MB / s on an SSD. What can I add / remove from my export line to improve this?

Now for permanent storage:

The export line is:

 /mnt/Share/bigraid      192.168.102.1/24(rw,sync,insecure,no_subtree_check,all_squash,anonuid=1000,anongid=1000)

If I move something from the transfer folder to the RAID:

sent 1,359,312,494 bytes  received 38 bytes  209,125,004.92 bytes/sec
total size is 1,358,980,577  speedup is 1.00

Well, the raid can write at ~ 210MB / s. But if I move something from my laptop to the raid:

sent 1099794896 bytes  received 48 bytes  1532815.25 bytes/sec
total size is 1099660496  speedup is 1.00

The speed is much slower (1.5MB / s). Now I know I need to remove the "sync" and wait for the raid to stop syncing (it's brand new), so I'll report when that changes.

If anyone has any recommendations on how to improve writing performance, I would be very grateful.

Thank you