Portál AbcLinuxu, 31. října 2025 10:43
Ahoj. Z neznameho dovodu ked spustim prtdiag, tak proces vytuhne, akoby cakal na vstup a musim ho ukoncit:
bash-3.00$ prtdiag 
^C
bash-3.00$
Server nemozem rebootovat, tak som skusal pomocou truss-u zistit, kde moze byt problem. Server mal nedavno problemy s pravami na roznych systemovych suboroch, ale nebezi to ani ako root:
bash-3.00$ truss -a -e -f -rall -wall prtdiag
...
12460:  close(3)                                        = 0
12460:  waitid(P_PID, 12463, 0xFFBFF6F0, WEXITED|WTRAPPED) = 0
12460:  read(19, 0x00039628, 128)                       = 128
12460:     / $ c m d\n\n\t i f   [   - x   $ t r u e p a t h   ] ;   t h e
12460:     n\n\t\t e x e c   $ t r u e p a t h   " $ @ "\n\t e l s e\n\t\t
12460:     e c h o   " $ c m d :   n o t   i m p l e m e n t e d   o n   $
12460:     p l a t f o r m "   > &   2\n\t f i\n f i\n\n e x i t   2 5 5\n
12460:  brk(0x0003A870)                                 = 0
12460:  stat64("/usr/platform/SUNW,SPARC-Enterprise-T5220/sbin/prtdiag", 0xFFBFF690) = 0
12460:  access("/usr/platform/SUNW,SPARC-Enterprise-T5220/sbin/prtdiag", X_OK|E_OK) = 0
12460:  brk(0x0003AC70)                                 = 0
12460:  execve("/usr/platform/SUNW,SPARC-Enterprise-T5220/sbin/prtdiag", 0x0003A54C, 0x0003A554)
12460:          *** cannot trace across exec() of /usr/platform/SUNW,SPARC-Enterprise-T5220/sbin/prtdiag ***
^Cbash-3.00$
Priznam sa, ze toto mi vobec nepomohlo, kde moze byt problem. Mam nespravne nastaveny truss, alebo na to idem uplne zle?
Řešení dotazu:
Diky za odpoved.
df alebo mount funguje ok, ale nasiel som, ze by to mohol byt problem s PICL, ktory je potrebne restartovat:
http://freeunixtips.com/2009/02/prtdiag-hanging-solaris-10/
http://turnning-point.blogspot.com/2011/07/solaris-10-prtdiag-hanging.html
 
 
12460: *** cannot trace across exec() of /usr/platform/SUNW,SPARC-Enterprise-T5220/sbin/prtdiag ***
showrev -p
        Tiskni
            
                Sdílej:
                 
                 
                 
                 
                 
                 
            
    
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.