Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can I cancel BTRFS balance on pool raid1 without repercussions?

Featured Replies

  • Author
On 8/27/2021 at 11:20 AM, JorgeB said:

It will if it's being moved from a different share and you are using user shares (/mnt/user/share) as source and dest, never move from user shares to disk shares or vice versa, fine to use disk shares only.

I'm curious, what happens or doesn't happen if you go from disk shares to user shares or vice versa?

  • Community Expert
Just now, live4soccer7 said:

I'm curious, what happens or doesn't happen if you go from disk shares to user shares or vice versa?

 

  • Author

This:

 

If you mix user shares and disks when moving/copying files, you can actually lose data, because Linux doesn't realize that the source path and the destination path might actually be the same file, and so tries to overwrite what it is trying to read. This is often referred to as the User Share Copy Bug.

 

I tried it out of curiosity, pretty sure lost that data. It wasn't a ton though, so not a big deal. I've been searching the whole server for it.

  • Community Expert

For it to really lose data, the source and destination path have to be the same file.

 

For example, /mnt/user/data/file.txt, and /mnt/disk1/data/file.txt, are both the same file.txt in the data user share, since the user shares are just the aggregate of all top level folders on all pool and array disks.

 

So, if you copy or move /mnt/user/data/file.txt to/from /mnt/disk1/data/file.txt, Linux doesn't know these are the same file, so it tries to overwrite what it is trying to read.

 

In that case, the usual result is the file still exists, but it has no contents.

  • Author

I did mv. Gone, no where to be found. I was using MC. same file. I thought, well I'll be sure all these files are a part of the share. That was definitely not the correct thinking. lol. It isn't a big deal because I can reproduce the data, but it does put me about a week back.

  • Community Expert
35 minutes ago, live4soccer7 said:

I'm curious, what happens or doesn't happen if you go from disk shares to user shares or vice versa?

You are very likely to end up with data loss (0 byte files) dues to Linux not realising that source and destination might be the same file.

 

  • Community Expert
16 minutes ago, live4soccer7 said:

I'll be sure all these files are a part of the share

 

19 minutes ago, trurl said:

the user shares are just the aggregate of all top level folders on all pool and array disks.

No matter how those top level folders or the files and folders in them got created, they are part of user shares.

 

If you don't already have a user share named Media, and you create a top level folder named Media on a pool or array disk, it is automatically a user share named Media with default settings.

 

If you already have a user share named Media, and you create a new top level folder named Media on a pool or array disk, it is part of that Media share and has its settings.

  • Author
7 minutes ago, trurl said:

 

No matter how those top level folders or the files and folders in them got created, they are part of user shares.

 

If you don't already have a user share named Media, and you create a top level folder named Media on a pool or array disk, it is automatically a user share named Media with default settings.

 

If you already have a user share named Media, and you create a new top level folder named Media on a pool or array disk, it is part of that Media share and has its settings.

That's sort of what I've grasped from all of this. haha. I was thinking share parameters/ownership or whatever was applied during a file transfer and not strictly based on the share being created and the file just being transferred to that folder.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.