Handling inode on solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Handling inode on solaris 9
# 8  
Old 06-30-2012
Quote:
Originally Posted by Corona688
Does find on Solaris support + ? I thought that was a GNU-only feature.
It was actually first implemented by David Korn in 1987 and was included in SVR4.0 / Solaris 2.0 which was jointly developed by AT&T and Sun Microsystems.

Gnu implemented it later and before that, was only supporting Dan Berstein's -print0 | xargs -0 alternative.
This User Gave Thanks to jlliagre For This Post:
# 9  
Old 06-30-2012
Quote:
Originally Posted by jlliagre
This would have been faster:
Code:
find /var/spool/clientmqueue -type f -exec rm -f {} +

Thanks, I got finally the total ammount on files into the clientmqueue directory. There are 1.800.000 files Smilie ... And deleting them taking a lot of time (my command runs till now for 9 hours and deleted "only" 1.000.000 files!!!!)

I'm trying your command and I hope it's faster then mine! Smilie

---------- Post updated at 11:55 AM ---------- Previous update was at 02:32 AM ----------

Well, finally I succesfully deleted 1.800.000 files!!!!
But how can I stop the creation of the new one? probably stopping sendmail service (also at boottime)

I tried without success:
Code:
# svcs sendmail 
bash: svcs: command not found
# service sendmail status
bash: service: command not found
# svcadm disable sendmail
bash: svcadm: command not found


Last edited by Lord Spectre; 06-30-2012 at 02:03 PM..
# 10  
Old 06-30-2012
Quote:
Originally Posted by Lord Spectre
But how can I stop the creation of the new one? probably stopping sendmail service (also at boottime)

I tried without success:
Code:
# svcs sendmail 
bash: svcs: command not found
# service sendmail status
bash: service: command not found
# svcadm disable sendmail
bash: svcadm: command not found

scvs and svcadm are only implemented in Solaris 10 and newer. Anyway, that's not the proper approach. These mails are not created by the sendmail service but by applications wishing to send mail. The fact they stay there is either caused by an improperly configured or disabled sendmail or, more likely, because their recipient is local and just doesn't read them. Have a look at the mail contents to see what is creating them. A common root cause is cron jobs producing output. A simple workaround is redirecting their stdout and stderr to /dev/null.
This User Gave Thanks to jlliagre For This Post:
# 11  
Old 06-30-2012
You're right, the mail was created by some scripts in crontab. How can I redirect to dev/null all the scripts output?

This is what I see on the mails:

Code:
root@ciy01 clientmqueue# cat dfq5UM7EWH024848
Your "cron" job on ciy01
/var/opt/getstat.sh

produced the following output:

Local directory now /var/getstat

And also:

Code:
root@ciy01 clientmqueue# cat qfq5UM6Dtm024456
V6
T1341093973
K1341093974
N1
P30237
MDeferred: Connection refused by [127.0.0.1]
Fbs
$_root@localhost
${daemon_flags}c u
Sroot
Aroot@ciy01.
MDeferred: Connection refused by [127.0.0.1]
C:root
rRFC822; root@ciy01.
RPFD:root
H?P?Return-Path: <g>
H??Received: (from root@localhost)
        by ciy01. (8.12.10+Sun/8.12.9/Submit) id q5UM6Dtm024456
        for root; Sun, 1 Jul 2012 00:06:13 +0200 (CEST)
H?D?Date: Sun, 1 Jul 2012 00:06:13 +0200 (CEST)
H?F?From: Super-User <root>
H?x?Full-Name: Super-User
H?M?Message-Id: <201206302206.q5UM6Dtm024456@ciy01.>
H??To: root
H??Subject: Output from "cron" command
H??Content-Type: text
H??Content-Length: 115
.

# 12  
Old 07-01-2012
Either add >/dev/null 2>&1 at the end of the lines calling /var/opt/getstat.sh in root's crontab:
Code:
EDITOR=vi crontab -e

or add the line exec >/dev/null 2>&1once in /var/opt/getstat.sh script before it spits its output.
This User Gave Thanks to jlliagre For This Post:
# 13  
Old 07-01-2012
Thank you, finally there's no more mail on spool directory. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Is orphan process handling by Solaris os and Linux os same?

In solaris, orphan process is put to sleep mode and does not consume any CPU resources. In Linux, orphan process is kept in running state consuming all CPU and Ram resources. Is it the case? Is there a difference on how these operating systems will handle orphan processes? The route cause of... (10 Replies)
Discussion started by: Belure Pooja B
10 Replies

2. Solaris

Specify the inode of a file?

Is there any way to create a file on Solaris 10 (ZFS preferably, but UFS would be helpful as well) with a specific inode number? I need to create a file with a large inode, greater than a 32bit integer. I am trying to test a piece of software which may be incorrectly truncating large inodes down... (16 Replies)
Discussion started by: unblockable
16 Replies

3. UNIX for Dummies Questions & Answers

Inode usage

Environment: O.S Version HP-UX B.11.31 U ia64 What is the recommended Inode free nodes? On our server Unix Sys Admin, have setup warning email alert when % of I-node usage is above or equal at 5%. Sample Email: --------------------------------------------------- Subject: WARNING:... (6 Replies)
Discussion started by: Siva SQL
6 Replies

4. Solaris

inode in solaris

Dear, How can i check inode information in my Solaris box? With Regards, Mjoshi (4 Replies)
Discussion started by: mjoshi87
4 Replies

5. Solaris

inode table in sun solaris

Hi, I would like to is it possible to repair inode table in solaris without running fsck? I am facing this issue in root file system, because to run fsck I have to bring system in single user mode with booting cdrom media. I facing strange issue in /var/adm/messages it is showing inode table... (12 Replies)
Discussion started by: manoj.solaris
12 Replies

6. Solaris

Size of an inode in Solaris 10

Can anyone know what is the size of an inode in Solaris 10 :D? (5 Replies)
Discussion started by: naag20
5 Replies

7. Solaris

How to increase Inode numbers in Solaris 10

Hi guys, need your help on this since i dont know much about solaris. the problem is i need to increase inodes space on /export/home/ root@BRF-DANCCM1 # /usr/ucb/df -i Filesystem iused ifree %iused Mounted on /dev/vx/dsk/bootdg/rootvol 53026 1162206 ... (7 Replies)
Discussion started by: ichiko
7 Replies

8. AIX

FS inode 58%

Hi Guys, I have this filesystem got big with inode: /dev/hd4 3670016 183664 95% 63705 58% /var I don't know why the system doesn't give alerts on this FS although it's 95% and why the inode is 58%. Any comments will be highly appreciated. Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

9. Solaris

about inode

how can i see inode table information of a perticler inode.anybody knows pls tell me. Than.Q (3 Replies)
Discussion started by: nag.mi2000
3 Replies

10. Shell Programming and Scripting

INode

hi i am nitin... jus a new kid on the block... my query is... does the concept of region invovle sharin of inodes wen the sticky it is set... eg... if two process share two text regions... wat actually happens thank u (1 Reply)
Discussion started by: nitinsharma_ssn
1 Replies
Login or Register to Ask a Question