dikkiedirk Posted June 17, 2013 Share Posted June 17, 2013 This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command. The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go? Quote Link to comment
lainie Posted June 17, 2013 Share Posted June 17, 2013 This is probably not your issue, but... did you setup Samba Recycle Bin? I think you would remember doing so as it involves editing a file & setting a location for the recycle bin. I set it up on my unRAID server. If I delete something stored on unRAID through my Windows system, the file is not deleted, but moved to the location where I set the recycle bin. Every so often, I telnet or ssh into unRAID to manually run a command to delete files from the recycle bin to free up space. Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 This is probably not your issue, but... did you setup Samba Recycle Bin? I think you would remember doing so as it involves editing a file & setting a location for the recycle bin. I set it up on my unRAID server. If I delete something stored on unRAID through my Windows system, the file is not deleted, but moved to the location where I set the recycle bin. Every so often, I telnet or ssh into unRAID to manually run a command to delete files from the recycle bin to free up space. I don't think so. Don't even know how to do that. Can you explain further? Quote Link to comment
garycase Posted June 17, 2013 Share Posted June 17, 2013 If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system. I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues. Quote Link to comment
lainie Posted June 17, 2013 Share Posted June 17, 2013 This is the post I came across on Samba Recycle Bin. It involved manually editing the smb-extra.conf file. If you do not remember doing it, that will not be the issue. The thread should cover pros & cons of using it pretty well. Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system. I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues. Thanks, I will try that. Is it possible to run multiple instances of reiserfsck in screen? Quote Link to comment
G Speed Posted June 17, 2013 Share Posted June 17, 2013 This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command. The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go? I know this is very very simple, have you tried restarting the server? This has happened to me to randomly.. and after restart file sometimes comes back/or your free space will be re-calculated I think this has happened with 2-3 files over the past 4 years, not a big deal... same thing with after having my server on for a two months.. and deleting/adding over and over again.. when I restart .. all of a sudden my share will get a bit bigger...just to check no corruption parity check seems fine after too Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 This morning I deleted a 40 GB file from one of my shares. I did this from my Windows 7 laptop. It seemed to go ok, but then the progress bar went red and I cancelled the command. The file seems to be gone though, but none of my disks shows any extra space. So why don't I see any space increase? How to get this space back? Where did the file go? I know this is very very simple, have you tried restarting the server? This has happened to me to randomly.. and after restart file sometimes comes back/or your free space will be re-calculated I think this has happened with 2-3 files over the past 4 years, not a big deal... same thing with after having my server on for a two months.. and deleting/adding over and over again.. when I restart .. all of a sudden my share will get a bit bigger...just to check no corruption parity check seems fine after too I tried that, but didn't work. Thanks for the input nevertheless. Quote Link to comment
Joe L. Posted June 17, 2013 Share Posted June 17, 2013 If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system. I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues. Thanks, I will try that. Is it possible to run multiple instances of reiserfsck in screen? yes. Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 If the file's gone, but the space hasn't been recovered, I'd suspect some corruption of the Reiser file system. I suspect you need to run reiserfsck on each of your disks (at least those involved in the share the file was on) to see if it finds any issues. Thanks, I will try that. Is it possible to run multiple instances of reiserfsck in screen? yes. Thanks Joe, After I started a reiserfsck session, how do I start a new one? When I press ctrl-A c it just show A c on screen and nothig happens. I did it before with upto 6 preclears, but now it won't work. Can you please explain? Quote Link to comment
JonathanM Posted June 17, 2013 Share Posted June 17, 2013 Did you type "screen" first before you tried the CTRL-A? Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 Did you type "screen" first before you tried the CTRL-A? Good point. I did type screen, but got "command not found". I used it when preclearing in RC12a, but updated to RC15 early this morning. seems I have to reinstall screen. Quote Link to comment
HAVOC Posted June 17, 2013 Share Posted June 17, 2013 I have the same board you can run multiple screens with the IPMI. I've done it with preclears. Quote Link to comment
dikkiedirk Posted June 17, 2013 Author Share Posted June 17, 2013 I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted. Quote Link to comment
garycase Posted June 17, 2013 Share Posted June 17, 2013 I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted. Interesting. I suspect (but don't know for sure, as I'm not sure how Linux handles this) that there is a file with a strange name out on your system that's actually the file you deleted. Set your Windows Explorer parameters so it shows hidden files and system files; then browse your UnRAID disks and see if there's a file that looks "weird" (like, for example, the temp files that Windows creates when running various check utilites, like the Malicious Software Removal tool that runs each month). Are you SURE the space wasn't restored? Quote Link to comment
JonathanM Posted June 17, 2013 Share Posted June 17, 2013 I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted. Interesting. I suspect (but don't know for sure, as I'm not sure how Linux handles this) that there is a file with a strange name out on your system that's actually the file you deleted. Set your Windows Explorer parameters so it shows hidden files and system files; then browse your UnRAID disks and see if there's a file that looks "weird" (like, for example, the temp files that Windows creates when running various check utilites, like the Malicious Software Removal tool that runs each month). Are you SURE the space wasn't restored? In that same vein, I'd do a search on all files around the 40GB size, and make sure they all are good files, and your mystery file isn't hiding out somewhere. Possibly sort by modification date. Quote Link to comment
garycase Posted June 17, 2013 Share Posted June 17, 2013 Sorting by size and/or modification date is a very good idea Quote Link to comment
Joe L. Posted June 17, 2013 Share Posted June 17, 2013 I ran reiserfsck on all disks, but still wasn't able to get the 40 GB space back while the file seems to bedeleted. All it takes to keep a set of blocks in use (not free them for reuse) is a single open file descriptor. This was a trick used by many programs. Open up a temp file, keep it open, and delete it. It could then be read and written and would automatically delete itself when the process ended and the file-descriptor was closed. (or when the server was rebooted) Your SAMBA process might still have the file open. Or, as others have said, perhaps the file was moved to a temporary name. Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it find /mnt/user -size +30G -exec ls -ld {} \; It will print the locations of all the files over 30Gig in size. Quote Link to comment
garycase Posted June 17, 2013 Share Posted June 17, 2013 Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it find /mnt/user -size +30G -print Nice to have a Linux guru around here If you Telnet to your server (or just run it on the console if you have one) and run that, it will run notably faster than a Windows command would that has to do all the back-and-forth file activities on the network Quote Link to comment
Joe L. Posted June 17, 2013 Share Posted June 17, 2013 Since you are not likely to have many 40Gig files, perhaps you can use the find command to locate it find /mnt/user -size +30G -print Nice to have a Linux guru around here If you Telnet to your server (or just run it on the console if you have one) and run that, it will run notably faster than a Windows command would that has to do all the back-and-forth file activities on the network I updated the command in the prior post to have it print the long listing including the size. Quote Link to comment
leeknight1981 Posted March 6, 2017 Share Posted March 6, 2017 Hi I have started another thread on what I think is possibly the same issue any help much appreciated Quote Link to comment
Recommended Posts
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.