smburns25 Posted August 31, 2009 Share Posted August 31, 2009 How do I clear out or will the system clear out the directory structure on the cache drive. The system did a move last night after I copied a dozen or so movies and other files. This morning I looked at the cache drive and all of the files and directories had been moved to the appropriate shares, but the structure of what was on the cache drive remains. Will this clean itself out periodically or do I need to clean it out manually. If this needs to be done manually, can it be added to the feature list? There really should be no reason to maintain this structure once the files have been successfully movedto the shares through the Mover program. Link to comment
Joe L. Posted August 31, 2009 Share Posted August 31, 2009 It does remove empty cache directories in the 4.5beta6 version... perhaps you are running an older version? Joe L. Link to comment
prostuff1 Posted August 31, 2009 Share Posted August 31, 2009 As Joe stated, in the new 4.5b6 the structure is cleared. I am still running 4.4.2 final but since i never look at the cache disk i dont really see (nor care) that the structure is still left. Link to comment
smburns25 Posted August 31, 2009 Author Share Posted August 31, 2009 It does remove empty cache directories in the 4.5beta6 version... perhaps you are running an older version? Joe L. I am using 4.4.2. Not a real fan of Betas unless they are extremely stable. If you do not believe that I should be concerned with installing the beta, then I will. Link to comment
Joe L. Posted August 31, 2009 Share Posted August 31, 2009 It does remove empty cache directories in the 4.5beta6 version... perhaps you are running an older version? Joe L. I am using 4.4.2. Not a real fan of Betas unless they are extremely stable. If you do not believe that I should be concerned with installing the beta, then I will. Completely up to you. 4.5beta6 is stable... there are a few known bugs... associated with adding more than 16 drives, and with active directory permissions. It is the version I am running, but I am not on a corporate LAN, so I don't use any active directory authentication, and I don't have more than 16 drives... If you are using neither, then you can upgrade and get your directories cleaned out... or, you look at this post where the newer mover script was posted, and install it yourself or... you can live with the empty folders until you do upgrade. As I said, it is all up to you. The empty directories don't do any harm. Joe L. Link to comment
olympia Posted September 1, 2009 Share Posted September 1, 2009 Hi Joe L., I think there is one more serious bug in 4.5beta6, and this is exactly for the cache drive function. It is just not working at all for a lot of users(including me). To be honest I don't remember anyone who reported it is OK for him/her. According to this, I would not recommend to upgrade if the cache function is to be used. Link to comment
prostuff1 Posted September 1, 2009 Share Posted September 1, 2009 I think some of those people that were reporting that stuff was not moving was because of split level settings. Not all were because of that but I think I remember reading 2-3 about it. Link to comment
smburns25 Posted September 1, 2009 Author Share Posted September 1, 2009 I installed 4.5 Beta6 last night and everything moved and cleaned out perfectly. Thanks for your help!! Link to comment
olympia Posted September 1, 2009 Share Posted September 1, 2009 I think some of those people that were reporting that stuff was not moving was because of split level settings. Not all were because of that but I think I remember reading 2-3 about it. Sorry, I were far from precise in my former post. The moving is OK, yes, but copying to the cache drive is at about the same speed as copying to the array directly. @smburns25 How fast you can copy to the cache drive? Link to comment
smburns25 Posted September 2, 2009 Author Share Posted September 2, 2009 @smburns25 How fast you can copy to the cache drive? Write speeds are all over the place. I have seen speeds up to 55 kb/sec, but they usually range from 13 kb/sec to 33 kb/sec. I have seen an overall improvement with the addition of the cache drive, but I have not written that much data to the array since I put in the cache drive. I plan on ripping another 20 or so DVDs later today and I'll try to do a time trial to get a better average. I'll post the results when I am done. Link to comment
cj0r Posted September 2, 2009 Share Posted September 2, 2009 I hope you mean MB/s. I've seen a lot of people saying kb/s lately and it's beginning to scare me haha. Link to comment
detz Posted September 2, 2009 Share Posted September 2, 2009 Add this to a cronjob. find -depth -type d -empty -exec rmdir {} \; Link to comment
Joe L. Posted September 2, 2009 Share Posted September 2, 2009 Add this to a cronjob. find -depth -type d -empty -exec rmdir {} \; Unfortunately, doing that at the wrong time will BREAK the movement of files from the cache drive, or even creation of new files on the cache drive. It is possible for the suggested command to delete a newly created directory before a file is opened for writing in it. The "write" would then fail. It is a split second opportunity, but as we all know, it will occur. If you do use this as a cron job, do not do it anywhere near when the mover script is scheduled, or when writing files to the server and the cache drive is in use. Link to comment
detz Posted September 2, 2009 Share Posted September 2, 2009 How are the dirs created? Could it be checking the timestamp of the file would prevent this issue? Scan through, if it's older than x hours/days and it's empty delete it? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.