03-13-2019
Can you unmount the NFS mountpoint (I guess it is /arch) on the solaris box? At that point what does ubuntu think? You do have an NFS problem. I have had this issue as well. It was caused in NFS shutdown by moving directories without knowing what zone had an open NFS file, as in cwd for example. The global zone kept track of NFS mounts. Get the inode from inside the zone and in the global zone. If they do not match you have this problem. ls -di /path/to/dirname will give you inode for given directory
As an aside - a workaround: why can you not simply move the entire /arch directory tree to Solaris, set up NFS to serve the disk from Solaris to elsewhere if required.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
once I run the debug command for a program, I can't get back to the prompt afterwards. I'm sure there is some escape sequence that will get me back there, but I don't know what it is. Anyone know?--thanks--AJ (3 Replies)
Discussion started by: AJA
3 Replies
2. UNIX for Dummies Questions & Answers
I have been trying to perform the following command without success
truss -feo truss.out ftp -nvd < ftpcmds.txt
The error I am getting is
"truss: cannot trace set_id or unreadable object file /usr/bin/ftp"
I have tested the file that contains the ftp commands and it works fine with
ftp... (5 Replies)
Discussion started by: canman
5 Replies
3. Shell Programming and Scripting
Hi,
Can you please let me know if there's any debug command for perl scripts
like
set -x for shell scripts (2 Replies)
Discussion started by: dayanandra
2 Replies
4. Programming
If an executalbe file has several parameters, gdb can not pass parameters correctly. Let us see:
run:
./executablefile1 agr1 arg2 arg3
debug:
gdb executablefile1
run executalbefile1 arg1 arg2 arg3
then argv : executablefile1
argv : executablefile
argv : arg1
... (3 Replies)
Discussion started by: cdbug
3 Replies
5. Shell Programming and Scripting
pariosd -status
NodeName ID ROLE STATE PROTECTION
---------------------------------------------------------------------------
tn320_scm10 10 ACTIVE UP No Protection
tn320_scm11 11 UNKNOWN UNKNOWN
LocalApps ... (5 Replies)
Discussion started by: hariprasad123
5 Replies
6. Solaris
Is there a way to debug the startup on a VT100 running Solaris 5? I have a problem related to file attributes that are resetting to there prior settings when the machine reboots. (3 Replies)
Discussion started by: jimcz2it
3 Replies
7. UNIX for Advanced & Expert Users
Hi,
I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this?
prcbap1-r10prod: truss -d ulimit -s unlimited
Tue Dec 30... (2 Replies)
Discussion started by: NasirAbbasi
2 Replies
8. Shell Programming and Scripting
Hi,
I am using this command fuser_result=`fuser -f /web/$1/admin-*/logs/access` to get the parent pid of the process.
However, The output differs and at times it shows two pids instead of one thus failing the logic of my script. See output below:
bash-3.2$ fuser -f... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT FREEBSD
truss
TRUSS(1) BSD General Commands Manual TRUSS(1)
NAME
truss -- trace system calls
SYNOPSIS
truss [-facedDS] [-o file] [-s strsize] -p pid
truss [-facedDS] [-o file] [-s strsize] command [args]
DESCRIPTION
The truss utility traces the system calls called by the specified process or program. Output is to the specified output file, or standard
error by default. It does this by stopping and restarting the process being monitored via ptrace(2).
The options are as follows:
-f Trace descendants of the original traced process created by fork(2), vfork(2), etc.
-a Show the argument strings that are passed in each execve(2) system call.
-c Do not display individual system calls. Instead, before exiting, print a summary containing for each system call: the total system
time used, the number of times the call was invoked, and the number of times the call returned with an error.
-e Show the environment strings that are passed in each execve(2) system call.
-d Include timestamps in the output showing the time elapsed since the trace was started.
-D Include timestamps in the output showing the time elapsed since the last recorded event.
-S Do not display information about signals received by the process. (Normally, truss displays signal as well as system call events.)
-o file
Print the output to the specified file instead of standard error.
-s strsize
Display strings using at most strsize characters. If the buffer is larger, ``...'' will be displayed at the end of the string. The
default strsize is 32.
-p pid Follow the process specified by pid instead of a new command.
command [args]
Execute command and trace the system calls of it. (The -p and command options are mutually exclusive.)
EXAMPLES
# Follow the system calls used in echoing "hello"
$ truss /bin/echo hello
# Do the same, but put the output into a file
$ truss -o /tmp/truss.out /bin/echo hello
# Follow an already-running process
$ truss -p 34
SEE ALSO
kdump(1), ktrace(1), ptrace(2)
HISTORY
The truss command was written by Sean Eric Fagan for FreeBSD. It was modeled after similar commands available for System V Release 4 and
SunOS.
BSD
May 12, 2009 BSD