Solaris10, Disk Full, CANT DELETE to make room
I keep running into the same stupid problem, this time Im unable to fix it!
I look after a user area where the actual disks are layed out as below.
Filesystem Size Used Avail. Capacity Mounted On
pdc 1.0T 29K 909G 1% /pdc
pdc/archive 1.0T 24K 909G 1% /pdc/archive
pdc/scratch 145G 105G 0K 100% /pdc/scratch
pdc/staging 1.0T 8.4G 909G 1% /pdc/staging
I did not set up this server originally, I have just takne over administration and there was no hand over or explanation. SO...At first I thought that the pdc/scratch area was set up with diskquotas. But when I run requota i get..
quotactl: no quotas file on any mounted file system
So, Its not quotas.. How has he done this!? Also, as u can see the disk is currently full. usually I have been able to manipulate this in a way that I could move files in order to make enough space to delete.. but thats not working this time. I have no way of freeing up disk space unless somebody else can help me with ideas??
Help would be greatly appreciated and excuse me if I sound a little unaware.. I have been thrown in the deep end, training whilst administrating!!
Hope to hear from someone.
I'm not familiar with Solaris... But that looks like what can happen on a Linux file-system when it runs out of inodes. Are you able to boot from a rescue CD/DVD and clean out the /pdc/scratch partition?
Why don't you just "cd /pdc/scratch" and take a look around?
# du -sh * (to see which directories/files are using the most space)
# ls -S * (to see the files sorted by file size)
# rm <file_you_don't_need> (to free up some space)
BTW -- in general, lack of inodes should not show a full filesystem.
cannot clean out/delete data from scratch area..
Hi, thanks for your suggestion Gilead. Unfortunately i will not be able to clean out scratch by removing data. I have never had to do that before during boot up, so, just to answer your question with a question..
If I boot from CD, will I be able to move data at this point to another location on the server? (as this pdc disk is not the only disk) I have tried moving stuff now but cannot, so if its a possibility that I can do this when booting, i may try that...
Amachina, as explained in my original comments, I cannot delete or move items, the disk is too full and it will not process the command, they just keep reappearing. I have tried both in the GUI and by command line.. I have even tried to force them to delete but they wont...
rm -f file.txt
Would like to hear back re: moving files on bootup..
Thanks so far!!
Your disk is using ZFS so the quotas aren't handled the same way and the size reporting looks confusing. If the reported available space is 0, you can't write more data to the disk regardless of the size shown.
You can check if there is one with:
heres the output:
However, there are no current process writing to this disk, which is what I expected. So I suppose if I can increase or release the qouta I can manage to play and sort this mess out.
Thanks for that - its the lightbulb I was looking for..
If you are using 105GB out of a 145GB quota but the file system reports it's full, it isn't a quota issue.
|All times are GMT -5. The time now is 11:49 PM.|