LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-25-2014, 09:58 AM   #1
Nue-b
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
ZFS does not release space even after deleting apache log files in a non-global zone


Hi Guys,

I have a non-global zone in which has apache application on it. There is a ZFS filesystem where the app saves the log. Even after deleting the logfiles I dont see the space being freed up. There are no snapshots or anything at all

Zpool info
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
adpl203 9.94G 9.75G 190M 98% ONLINE -

ZFS info
NAME USED AVAIL REFER MOUNTPOINT
adpl203 9.75G 31.4M 31K /adpl203
adpl203/data 9.75G 31.4M 31K /adpl203/data
adpl203/data/ajb_home 9.75G 31.4M 9.75G /export/home/ajb

zfs list -o space
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
adpl203 29.7M 9.75G 0 31K 0 9.75G
adpl203/data 29.7M 9.75G 0 31K 0 9.75G
adpl203/data/ajb_home 29.7M 9.75G 0 9.75G 0 0

df -h

adpl203/data 9.8G 31K 31M 1% /adpl203/data
adpl203/data/ajb_home 9.8G 9.8G 31M 100% /export/home/ajb

Can you please help me find a solution!

Last edited by Nue-b; 03-25-2014 at 10:00 AM.
 
Old 03-25-2014, 11:19 AM   #2
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
Please use code tags.

The log files are likely still open by apache, thus even unlinked, their data is still stored on the file system. This would happen with other file systems than ZFS. You should have blanked their content before removing them, as with:

Code:
> apache.log
rm apache.log
 
1 members found this post helpful.
Old 03-25-2014, 02:06 PM   #3
Nue-b
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
After bouncing Apache the issue got cleared. Thanks for the input.
 
  


Reply



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
Disk is not release after deleting log files /home manishrmusale Linux - Newbie 10 05-06-2013 07:50 PM
apache startup error after deleting up apache log files jayakumar01 Linux - Server 2 12-15-2011 11:13 AM
How to check the cpu utilization on all non global zones from Global Zone rajaniyer123 Solaris / OpenSolaris 3 10-09-2008 01:43 AM
XDMCP from global zone to Brandz zone coolster Solaris / OpenSolaris 2 03-03-2008 07:15 AM
How to share a ZFS file system between a global zone and a non global zone? crisostomo_enrico Solaris / OpenSolaris 7 11-28-2007 08:20 AM

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

All times are GMT -5. The time now is 12:28 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