LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-04-2009, 09:10 PM   #1
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Rep: Reputation: 15
Unhappy Solaris10, Disk Full, CANT DELETE to make room


Hi Guys,

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.
 
Old 02-04-2009, 09:34 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 02-04-2009, 09:55 PM   #3
amachina
LQ Newbie
 
Registered: Aug 2006
Location: VA
Distribution: Fedora, Red Hat
Posts: 9

Rep: Reputation: 1
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.
 
Old 02-04-2009, 11:59 PM   #4
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Original Poster
Rep: Reputation: 15
Question 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

Thanks anyway...
Would like to hear back re: moving files on bootup..

Thanks so far!!
 
Old 02-05-2009, 02:23 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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:
Code:
zfs get all pdc/scratch | grep quota
Removing/moving files while they are written to isn't a way to free disk space. It just hides the file names but the allocated bytes stay and keep growing. You need to find out what processes are writing there and stop the responsible ones.

Code:
fuser -c /pdc/scratch

Last edited by jlliagre; 02-05-2009 at 02:25 AM.
 
Old 02-05-2009, 06:44 PM   #6
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Original Poster
Rep: Reputation: 15
Lightbulb

Hi jlliagre,

heres the output:

Code:
zfs get all pdc/scratch | grep quota
pdc/scratch      quota          145G                       local
So that much is something! Finally, as i said, im very inexperienced, so wasnt aware of the possibility of differences for ZFS quotas... Thankuyou.. i will begin my googling now on how to release this quota! :-)

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..
 
Old 02-06-2009, 05:49 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you are using 105GB out of a 145GB quota but the file system reports it's full, it isn't a quota issue.

What say:
Code:
zpool list
zfs list
?
 
  


Reply

Tags
disk full, solaris10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scratch Disk Full Solaris 10. Cant Delete or Move Files donanap Solaris / OpenSolaris 6 10-26-2018 04:41 AM
There is not enough room on the disk to save to /tmp ????? 449 Linux - Newbie 8 05-27-2012 08:37 AM
Thunderbird portable - USB disk full- can't send, can't delete.... claydog99 Linux - Newbie 2 01-10-2009 03:55 PM
LXer: Mandriva: Linux Market Should Make Room For One More LXer Syndicated Linux News 0 12-09-2005 07:16 PM
Full /usr partition...need to free up some room tarballed Linux - Newbie 4 02-06-2003 07:09 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration