Jump to content

Sanity Check on Moving Shares From a Disk to Another Disk


Go to solution Solved by itimpi,

Recommended Posts

Hi,

 

I have a share all on disk 1 which I'd like to move to disks 2 & 3.

/mnt/disk1/share1

 

In the UI I believe I need to change the included disks to Disk 2 & 3, and exclude disk 1.

 

But this will NOT copy/move existing data, it'll only be true for new data.

 

Therefore, from the CLI I plan to do this:

 

cp -R -u /mnt/disk1/share1 /mnt/disk2/share1

 

This will move all the data from disk1, onto disk2.

 

Then, when I access that data via the SMB share, unraid will automatically know the existing data is now in disk2...

 

 

Is my understanding of this correct?

 

 

Link to comment
  • Solution

Not quite.   If you use 'cp' then the data will end up on both drives.   You need to either delete the files from disk1 after doing the copy or use a command that does a move.   

 

When a file exists in the same location on more than one drive then Unraid will initially show the copy on the lowest number drive and hide the other one.   This can then get confusing as if you delete the file it appears to not happen as this then 'uncovers' the copy on the other drive.

Link to comment
3 minutes ago, itimpi said:

Not quite.   If you use 'cp' then the data will end up on both drives.   You need to either delete the files from disk1 after doing the copy or use a command that does a move.   

 

When a file exists in the same location on more than one drive then Unraid will initially show the copy on the lowest number drive and hide the other one.   This can then get confusing as if you delete the file it appears to not happen as this then 'uncovers' the copy on the other drive.

Ahh yes I will delete it after, but was just checking my idea of how moving data from one drive to another would work.

 

 

Thanks!

 

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.

×
×
  • Create New...