February 4, 201511 yr Hi, I currently have a share called media that is setup that goes media>movies/TV shows>movie folder/series folder I want to set a separate share for each so I have movies>movie folder with a split level of 2 so everything in the movie folder is on the same disk For TV shows it would tv>series folder>season folder with a split level of 3 so that each season is on the same disk. First, do I have the proper split level? If I cut the files and paste them in the new share will they be removed as soon as they are copied? For example, lets say I have 10 files that are each 5GB. When I cut and paste that file to the new share as soon the the first 5GB file is copied will it be removed from the old media share? I am just wondering if I can copy them all at once or if I will have to make sure I have enough free space first. Thanks!
February 4, 201511 yr You are 1 level too high for both. Go disk by disk and move, not copy. The move should happen almost instantly.
February 4, 201511 yr Author You are 1 level too high for both. Go disk by disk and move, not copy. The move should happen almost instantly. What do you mean by go disk by disk and move? Do I browse each disk on my server and move them so all the files in the movies folders and seasons are on the same disk? I have 6 disks (1 of them is a parity) and my movies and tv shows are both split out on all 5 disks.
February 4, 201511 yr I believe lionelhutz means the following: Assuming your top level shares are called Movies and TV_Shows. Set movies with a split level of 1 and TV shows with a spilt level of 2. This way a movie would have all of its files on the same drive. The TV_Shows/NCIS/ could be on multiple drives as shown. All of Season 1 will be on the same drive. Disk1/TV_Shows/NICS/Season1 Disk2/TV_Shows/NICS/Season2 etc. Disk3/TV_Shows/NICS/Posters.jpg Use the move command to move from Disk1/media>movies/TV shows>movie folder/series folder to Disk1>/TV shows/series folder Specify the path via the disk. There is an issue due to the way unRaid present all of your drives with a single view that could cause a loos of data if you dont use the disk path. As all you are doing is moving the pointer to the data, and not moving the data, the move is immediately. You might want to use midnight commander to do this. Telnet into your server and issue the "mc" command.
February 4, 201511 yr Author Ok, I got the split level thing down. For the move I would do something like this? mv /mnt/disk1/media/TV Shows/NCIS/* /mnt/disk1/TV_Shows/ And that would move everything to the new share? Would I have to do this for each disk and on each show? What about any previous seasons that may be split across multiple disks already? That's why I was wondering if it would just be easier to make the new share and then cut and paste it from one share to other so the files all get in the correct place. Thanks!
February 5, 201511 yr Ok, I got the split level thing down. For the move I would do something like this? mv /mnt/disk1/media/TV Shows/NCIS/* /mnt/disk1/TV_Shows/ And that would move everything to the new share? That does not look right - it would move all the contents of the NCIS folder into the TV Shows folder (share). What I suspect you want instead is: mv /mnt/disk1/media/TV Shows/* /mnt/disk1/TV_Shows/ or possibly even mv /mnt/disk1/media/TV Shows /mnt/disk1/ The latter should be almost instantaneous as only the directory entry for the 'TV Shows' folder needs changing on the disk. Would I have to do this for each disk and on each show? If you are working at the physical disk level, then the answer is yes. However you could also achieve the same results by go through the user shares and using the command. mv /mnt/user/media/TV Shows/* /mnt/user/TV_Shows/ which would operate on all disks at once. What about any previous seasons that may be split across multiple disks already? unRAID will not tidy up such a scenario - I am afraid it is a manual effort to do so. That's why I was wondering if it would just be easier to make the new share and then cut and paste it from one share to other so the files all get in the correct place. I am not sure that a cut/paste would fix this issue. I suspect you would need to do a copy/paste follow by a delete of the source. This would take a LOT longer than the moving the files approach discussed above which takes place within a disk so just involves changing directory entries, but it does tidy things up.
February 5, 201511 yr OK, if you move disk by disk just use your PC. It will only take seconds so there is no point in trying to learn commands to run on the server itself. If you want to fix-up the file splitting then I would move the files to the cache disk and let the mover put them back into the array under the new share. You move to a directory with the new share name on the cache drive.
February 5, 201511 yr Or use midnight commander. You want to work on the TV Shows folder and move every show up a level. By working at the "Media" directory level, you can move the entire TV shows and all sub directories at once. After you have a top level of Movies and TV Shows, with there directories under them, you will need to clean up the drives and consolidate the seasons. There are various was to perform the cleanup. One method, if you have excel, is the workbook I put together. It will index your system and let you select a target disk to move the sub-directories/files to and build the appropriate rsync command. But first you have to get them to: mnt/Diskx/Share 1 mnt/Diskx/Share 2 i.e. the following. mnt/Disk1/TV Shows mnt/Disk1/Movies http://lime-technology.com/forum/index.php?topic=33689.msg328265#msg328265
Archived
This topic is now archived and is closed to further replies.