Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Hardware and Server Configuration > Centos 6x 7 hd loss after deleting files
forgot password?



Reply


Old
  Post #1 (permalink)   10-27-2015, 02:59 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
Hello once you delete a file or folder its giga value is not available as a free space on centos 6x or 7 ,the hd that should be released as free space is lost,do you know why?
 
 
 


Old
  Post #2 (permalink)   10-27-2015, 09:11 PM
HD Newbie
 
Join Date: Nov 2010
Posts: 26

Status: Lincxu is offline
if you have used "rm -rf" to delete, the free space should be released.
__________________
www.WebHostPark.com
Best web host reviews & guidance
 
 
 


Old
  Post #3 (permalink)   10-29-2015, 12:49 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
No it wasnt via ssh it was deleted as a desktop computer,if you have any clues really appreciate ur help
 
 
 


Old
  Post #4 (permalink)   10-29-2015, 09:05 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
Someone with exprience on Centos can be of good assistance in telling me why my disc shrinks while deleting files
 
 
 


Old
  Post #5 (permalink)   11-01-2015, 01:36 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
I also tried the trash expunged thing but nothing
 
 
 


Old
  Post #6 (permalink)   11-01-2015, 11:50 PM
HD Guru
 
Join Date: Jan 2013
Posts: 756
Send a message via AIM to cheapdedicated Send a message via Yahoo to cheapdedicated Send a message via Skype™ to cheapdedicated

Status: cheapdedicated is offline
Try using "rm -rf" to delete.
__________________
Techsys Ltd | Dedicated Servers | V.P.S | Free Plesk Panel
G8 Servers cPanel Reseller VPS Reseller Dedicated Server Resellers

G8 Host Cheap Domains | Shared Hosting | SSL
 
 
 


Old
  Post #7 (permalink)   11-05-2015, 06:53 AM
HD Addict
 
Join Date: Sep 2014
Location: India
Posts: 144
Send a message via Skype™ to 24x7server

Status: 24x7server is offline
Hi,

There may be possibility that some port of it has remained in the memory and because of this the disk space scenario is not updating. Try command like the below one:

# lsof | grep deleted

Check if you see any files in it and what service it was utilized by, probably restarting the service will do the job.

Give it a try.
__________________
www.24x7servermanagement.com
Server Management, Server Security, Server Monitoring.
Network Monitoring Team !! Skype: techs24x7
 
 


Old
  Post #8 (permalink)   11-06-2015, 04:02 AM
HD Guru
 
Join Date: Jan 2013
Posts: 756
Send a message via AIM to cheapdedicated Send a message via Yahoo to cheapdedicated Send a message via Skype™ to cheapdedicated

Status: cheapdedicated is offline
You need to try the last two and update this post for us to try to help further. If it was resolved you still could say so and share what you did.
__________________
Techsys Ltd | Dedicated Servers | V.P.S | Free Plesk Panel
G8 Servers cPanel Reseller VPS Reseller Dedicated Server Resellers

G8 Host Cheap Domains | Shared Hosting | SSL
 
 
 
The Following User Says Thank You to cheapdedicated For This Useful Post:
SenseiSteve (11-06-2015)


Old
  Post #9 (permalink)   01-14-2016, 01:23 AM
HD Newbie
 
Join Date: Feb 2013
Posts: 12

Status: InfinityHosts is offline
System reboot should do the work. If it's not working, then you should open your terminal & use the following command to check if any service is using your disk instead.

# lsof | grep deleted
 
 
 


Old
  Post #10 (permalink)   01-25-2016, 11:05 AM
HD Newbie
 
Join Date: May 2014
Posts: 26

Status: coloAZ is offline
Can you tell us more about the type of file you deleted?

If it's related to a running service, it's probably not been replaced as others have mentioned. Make sure nothing is accessing that file and that it's not in the .Trash for your desktop user profile.

Update us with your results.
__________________
coloAZ - Colocation and Dedicated Servers
Proudly in PhoenixNAP - Quad Core, Hex Core and More!
Need Remote Hands in PhoenixNAP? Let us know!
www.coloaz.com - 1-855-9-COLOAZ
 
 
 


Old
  Post #11 (permalink)   02-17-2016, 02:50 AM
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 585

Status: ughosting is offline
In Unix if you have to delete a large file because you need the space, but it might be owned by a running service, then you should proceed your delete command with a "cat /dev/null"

i.e.

/bin/cat /dev/null > filename.txt

This will ensure that the file, is truncated to 0 bytes and the space is returned to the filesystem.

You can then delete it with the usual tools (with or without success) afterwards.

I appreciate that this is a little late, and most admins know to do this, but it's something we often overlook and then regret.
__________________
DDoS Protected, LiteSpeed + LiteMage on CloudLinux with SSD Disks, R1Soft, Softaculous, SIteBuilder, BitNinja, LetsEncypt & Patchman
UnixGuru: Accounts with 1-16 CPU Cores, 2-32GB RAM. Why use a VPS?
█ Choose from Shared, Reseller and Elastic-Sites Hosting
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: