Search This Blog

Monday, September 16, 2013

This target or source is already in use either within this same session or by another session

Error:

# swremove -x mount_all_filesystems=false sudo

=======  09/07/13 04:41:48 METDST  BEGIN swremove SESSION
         (non-interactive) (jobid=testmachine-0125)

       * Session started for user "#".
       
       * Beginning Selection
ERROR:   "testmachine:/":  This target or source is already in use either
         within this same session or by another session.  A read or
         write lock was denied.
       * Target connection failed for "testmachine:/".
ERROR:   More information may be found in the daemon logfile on this
         target (default location is
         testmachine:/var/adm/sw/swagentd.log).
       * Selection had errors.
       
       

=======  09/07/13 04:41:49 METDST  END swremove SESSION
         (non-interactive) (jobid=testmachine-0125)


Solution:
#[/var/adm/sw/products]: ls -lrt|grep swlock
-r--r--r--   1 root       sys              0 Jun 23  2005 swlock


#[/var/adm/sw/products]: mv swlock swlock.bk
#[/var/adm/sw/products]: cd -
/sbin/init.d
#[/sbin/init.d]: /sbin/init.d/swagentd stop
The swagentd daemon is stopped.
#[/sbin/init.d]: /sbin/init.d/swagentd start

Which solved the issue

No comments:

Post a Comment