JustinChase Posted January 10, 2012 Posted January 10, 2012 My server was pretty full before I upgraded to Pro, and I wanted to move some stuff off of a very full drive to an empty drive. I used nohup mv /mnt/disk1/something to /mnt/disk3/something & and it didn't seem to be working, so I tried a variant of that, also seemed to not work, then another. Turns out they all seem to be working, and now, 15 hours later, I have a folder I can see in windows, but cannot access. The original disk1 seems to not be any smaller, and the only folder showing on disk3 using Windows Explorer>Network>disk3 will not let me access it, so I can't see what's actually been moved. Using Putty, I can see that it is creating directories on disk3, but not exactly how I expected, but that's not so bad, I can fix that. It has not given me any more room on disk1 yet, and it's kind of frustrating. I just checked again, and there are 9 folders in the folder on disk 3, and there are 28 in the original folder I tried to move from. Windows said it would take 11 hours to move almost a TB, but 15 hours later MC seems to be 1/3 done. I only used MC because I thought it would be faster I also don't know how to see any sort of progress of what Midnight commander is doing, so I just want to stop it, and use another/slower method that I can at least monitor. I understand that MC does not delete the original files until the end of the whole operation, so just killing the server seems a bad idea. Also, once I either stop it, or it "finishes" will the locked folder be released, or will I need to throw some voodoo on it so I can see/use/manipulate it in Windows? All-in-all, MC has been a fail, and I won't be using it again, lesson learned. However, I'd like to recover as cleanly from my silly mistake as possible. How might I do that? Any suggestions?
lionelhutz Posted January 10, 2012 Posted January 10, 2012 I believe ps -A will shows the move processes running and then you type kill ## where ## is the process ID number from the ps command. You might end up damaging the files that are currently being moved. Possibly the new version will be bad but the old one won't be deleted yet. What you did has nothing to do with mc = Midnight Commander. That is just a simple move command. MC is a simple "grahical" user interface that can be run on the server. You have 3 concurrent move operations running which are all fighting each other for access to the same files and also they are causing the disks to seek A LOT. Forcing a disk to seek slows it down A LOT. Running 2 concurrent moves might slow the speed down to something like 1/6th the speed of a single move. I have no idea how bad 3 concurrent moves are but it will be pretty bad, like maybe 1/20th the speed of single move. You will have to run the new permissions if you are running a 5.0beta release. Peter
JustinChase Posted January 10, 2012 Author Posted January 10, 2012 Thank you for the help. That makes perfect sense, and is what I figured. I won't mention I may have actually done it 4 times Being a bit of a noob (obviously ), where do I enter the ps -A command, at the Putty prompt I assume? Same place I'll enter the kill ## command once I know the process ID? Once I get it stopped, can you please expand on this "You will have to run the new permissions", specifically what permissions, and where/how do I force them? I assume also in Putty, but I'd prefer to ask than screw it up again Finally, how do I run/start Midnight Commander in unRAID? I think it's included in the build, but I'm not sure how to actually start it vs. doing what I did. Thanks, and sorry for being dumb about this stuff
lionelhutz Posted January 10, 2012 Posted January 10, 2012 Yes, just at the command line via Putty. Same with Midnight Commander, just type mc and it will pop up. I think the new permissions script in available via the unRAID web interface. Not sure, I don't run the beta. Look at the release notes and I believe it tells you how to run it under the part about upgrading from an earlier 4.x version. Peter
JustinChase Posted January 11, 2012 Author Posted January 11, 2012 Well, I'm happy to report that only 2 mv operations were active when I got home and 25 of 26 folders had been created, and I figured waiting would be less annoying than trying to find/fix duplicates, so I just let it run, and it finally finished and everything seems fine, and there are no permissions issues with any folders. I was hoping it was only due to the mv happening. Also, I've figured out how to use the mc command to launch Midnight Commander, and that's WAY better. Sadly, the Wiki doesn't really say how to start Midnight Commander. I know (now) how easy it is (type mc in a putty window prompt), but it's not really said anywhere, so I just didn't know. Maybe the wiki can be updated to include this simple, but important bit of info. http://lime-technology.com/wiki/index.php?title=Transferring_Files_Within_the_unRAID_Server Anyway, patience solved stupidity again. Thanks for the help!
lionelhutz Posted January 11, 2012 Posted January 11, 2012 Edit the Wiki and add the info then. If you are logged-in here then you can edit it.
JustinChase Posted January 11, 2012 Author Posted January 11, 2012 Cool, I didn't know I could so that. Done.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.