OK to write data directly to mnt/disk<n> when populating new server?


Recommended Posts

TLDR: Is it safe write data (via FTP) directly to /mnt/disk1/share, /mnt/disk2/share, etc. during initial population of a large amount of data to the array, or will that break file permissions or high water strategy when transferring files normally to /mnt/user/share later on?

 

Full:

 

I've currently got 2 Unraid servers containing the same data, and due to recently phasing out some old hardware, I recently spun up a third.  I had 8 relatively new 2 TB drives and the controller card in the server could only handle those size drives, so I figured it was perfect as a tertiary backup for my data.

 

I have been transferring data to the array in /mnt/user/datastore and with the high water method it is doing the usual fill each drive to 1 TB and then move onto the next one, but these are SMR drives so they are slow to move 9 TB of data total.  I would normally just wait but this server is going to get moved offsite and is currently eating up overhead on the UPS for all of my other equipment.

 

The server the data is being copied from is a fast ZFS array over a 10 Gb link, so the bottleneck is the speed of a single drive in the new Unraid server.

 

My question is, are there any downsides to using my FTP client to write a 500 GB set of files to the appropriate share on one disk, then set up a transfer of another 500 GB set of files to the same share on another disk, and so on so that I can saturate the connection and get the transfer done quicker?  Basically, manually distributing the files, but doing so simultaneously using multiple FTP sessions.

 

Then under normal use writing files now and then to the server, will the 'high water' method level data distribution out across the disks?  Or will this cause issues with file permissions or something else I am not seeing.

Edited by natethebrewer
forgot question mark in title
Link to comment
  • natethebrewer changed the title to OK to write data directly to mnt/disk<n> when populating new server?

As I read over what you intend to do, I can see only one flaw in your thinking.

 

If you have a parity disk, that will be a real, real choke-point.   IF you want to do this, you will have to unassign the parity disk until you are finished.  Then reassign the parity disk and rebuild parity.  It sounds like you will have a backup of the data on the other server so this should not be a problem. 

 

Writing directly to a disk share is not a "NO, NO".  What is a problem is doing file operations between disk shares and array shares.  That type of operation will eventually cause a loss of data!!!   (Bit of clarification, File Operations that involve disk share to disk share are OK.  File operations between shares on the array are not a problem.)

Link to comment
30 minutes ago, Frank1940 said:

If you have a parity disk, that will be a real, real choke-point.   IF you want to do this, you will have to unassign the parity disk until you are finished.  Then reassign the parity disk and rebuild parity.  It sounds like you will have a backup of the data on the other server so this should not be a problem. 

 

Didn't think about the parity drive.... So it does sound like disabling parity, writing to all the disks, then re-enabling parity and letting it build would be what I would do in the future.

 

At this point since I already did a parity check when I spun up the array, and I have about half the data moved (doing reconstructed writes), I guess I will just let it go at this point, because even if I cut the transfer time in half, throwing a parity check on after that is going to take longer than the remaining file copy.

 

Should have asked sooner but can use that strategy with the next one.

 

Thank you for the info!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.