February 1, 201610 yr I am trying to understand split levels. If I previously had a split level of 5, and therefore have the following structure: /mnt/disk1/video/tvshows/show1/season1/episode1 /mnt/disk2/video/tvshows/show1/season1/episode2 /mnt/disk3/video/tvshows/show1/season1/episode3 /mnt/disk4/video/tvshows/show1/season1/episode4 What would happen if I changed the split level to 4, and then did a "mv /mnt/user/video/tvshows /mnt/user/video/tvseries"? Assuming that unRAID would choose disk1 using its allocation method, would I get: /mnt/disk1/video/tvseries/show1/season1/episode1 /mnt/disk1/video/tvseries/show1/season1/episode2 /mnt/disk1/video/tvseries/show1/season1/episode3 /mnt/disk1/video/tvseries/show1/season1/episode4 It should right? That would be very cool. But something tells me that I won't... UPDATE: I just ran a test. It turns out that doing the move leaves all the files on their current disks. BUT WHY?
February 2, 201610 yr Community Expert Your split level is too high, if you try what you said nothing will really change. Episodes will still split over all disks. You should choose split level 2 or 3 depending on what you want to accomplish. With 2 you'll get all seasons from a show in 1 disk (or the entire show if you will), with 3 seasons can be split over all disks. I think the manual explains split level pretty well: https://lime-technology.com/wiki/index.php/Un-Official_UnRAID_Manual#Split_level But yeah if you change to the right split level before you move it should work like you said. Edit: I see now that you want to move within the same user share, if you do that I think the files will stay on the disks they are now. You should either create a new user share at the top level then move, or you should move between disk shares. But be careful not to move from user share to disk share or vice versa or you could experience the user share copy bug
February 2, 201610 yr Author Well, I think I have the split levels correct. I just tried changing it to 2, and then did the move, but it still left the episodes scattered across multiple drives. WHY?
February 2, 201610 yr Author Edit: I see now that you want to move within the same user share, if you do that I think the files will stay on the disks they are now. You should either create a new user share at the top level then move, or you should move between disk shares. But be careful not to move from user share to disk share or vice versa or you could experience the user share copy bug Well, I would have agreed with you, but I just tested it. I did a "mv /mnt/user/video/tvshows /mnt/user/video-new/tvseries" (with split level set to 2) and every file and directory stayed on its original disk... I'm baffled...
February 2, 201610 yr Community Expert Weird.. I've never tried to move between user shares before but I thought it would work. Well, then you'll have to move between disk shares.. It will be more work, but now that you have the split level right you only have to do it once.
February 2, 201610 yr Author Weird.. I've never tried to move between user shares before but I thought it would work. Well, then you'll have to move between disk shares.. It will be more work, but now that you have the split level right you only have to do it once. Nope. Turns out that using rsync instead of mv gives the desired results... Very interesting...
February 2, 201610 yr Author FURTHER UPDATE: Here is what I found: 1. Doing an mv within a share, or from share to share, WILL NOT PHYSICALLY RELOCATE files and directories from their disks. (Exception: the disks are not part of both shares) 2. Doing an rsync WILL PHYSICALLY RELOCATE files and directories according to the allocation method and split level defined for the share, even within a share. Here is an rsync command that will do just that: rsync -av --ignore-existing --remove-source-files /mnt/user/video/tvshows/ /mnt/user/video/tvseries/ && rsync -av --delete `mktemp -d`/ /mnt/user/video/tvshows/ && rmdir /mnt/user/video/tvshows/ So here's an interesting use case. Let's say you have a share where you want to change the split level, or you want to change the allocation method, or you want to balance the fill of a bunch of disks in a share. I think you could simply run the above rsync command on each folder, first rsyncing the folder to a temp folder, then moving that temp folder back to the original folder, and voila, that folder is now following the allocation method and split level defined by the share! Maybe is could be done with a single command, such as: rsync -av --ignore-existing --remove-source-files /mnt/user/share/folder/ /mnt/user/share/temp/ && rsync -av --delete `mktemp -d`/ /mnt/user/share/folder/ && rmdir /mnt/user/share/folder/ && mv /mnt/user/share/temp /mnt/user/share/folder If I'm right, then maybe someone could create a small script file called "redistribute" or something that does the above. Could someone much smarter than me weigh in on the above and make sure it's sound...
Archived
This topic is now archived and is closed to further replies.