Hi Guys,
After a reboot done on the server, I am able to access the VG again, in fact while I am trying to shutdown the server it self, it hang and take long time till I need to force shutdown from HMC.
Thanks a lot guys.
First off, i am glad you could resolve your issue. But: a reboot is (most times) not the way to resolve things. After all, we are not on Windows - we use a real OS with real error-correcting capabilities.
Most probably your issue came from a "VG lock". The SCSI-protocol (which is also used with FC-connected disks as "iSCSI") can lock a disks so that any other attempt to use it will fail. You need such locks for disks which are accessed from more than one system, like in clusters. Sometimes such a lock is placed wrongly and not removed so that it prevents further management of the disk. You need to break such a lock before continuing.
You do that by
Hi
I need to access files from a specific folder of a Linux system from an another Linux System Remotely.
I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility.
Also, I know to use mount -t ... (2 Replies)
Hi,
I have to apply service pack from cd. so i have to copy some file from cd to linux directory. Can any body help me what command to use access from cd and copy file.
Thanks
sam71 (2 Replies)
Guys
i have 2 SUSE Linux Enterprise Server 10 SP1 (i586) boxes.if i take a look into /etc/security/access.conf ,i see following lines at the eof
# All other users should be denied to get access from all sources.
#- : ALL : ALL
- : myID : ALL
now earlier i had written scripts where files... (1 Reply)
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Hi
Good Day, i would like to ask for further info about my problems experiencing this evening. Im a PPP0 connection in the internet using 3G located in asia pacific region.i had this problem this evening in my INTERNET connections that there are some sites i can't open example ( Gizmodo.com,... (2 Replies)
Hi all,
I'm using AIX v 5.3
I want to create system users to access through ftp or sftp and restrict those users into specific directory and don't traverse the whole file system just to be restricted within a directory and don't get shell access . i don't want to use any other third party... (7 Replies)
Hi all,
I have this statement:
cp `ls -lrt |awk '{if($6=="Feb") print $9}'|wc -l` /smartapp/reports/archive_jan_feb_march/
However it fails with:
cp: cannot access 948
The owner for this script is not a concern, May I know which part went wrong? (8 Replies)
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Dear Friends,
This is not a problem , it's a course work (UNIX scenario)....
As part of it I am searching Remote Attacks and find points as
1. Exploiting a listening service
2. Routing through Unix system that is providing security between 2 or more networks
3. User initiated Remote execution... (1 Reply)
Dear all experts here,
:)
I would like to install a proxy server on Linux server to perform solely to control the access of Web server.
In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server.
I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies
LEARN ABOUT NETBSD
pthread_spin_destroy
PTHREAD_SPIN(3) BSD Library Functions Manual PTHREAD_SPIN(3)NAME
pthread_spin -- spin lock interface
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h>
int
pthread_spin_init(pthread_spinlock_t *lock, int pshared);
int
pthread_spin_destroy(pthread_spinlock_t *lock);
int
pthread_spin_lock(pthread_spinlock_t *lock);
int
pthread_spin_trylock(pthread_spinlock_t *lock);
int
pthread_spin_unlock(pthread_spinlock_t *lock);
DESCRIPTION
The pthread_spin_init() function is used to initialize a spin lock. In the NetBSD implementation the pshared parameter is currently unused
and all spin locks exhibit the PTHREAD_PROCESS_SHARED property, implying that all spin locks may be accessed by threads of multiple pro-
cesses. The results of calling pthread_spin_init() with an already initialized lock are undefined.
The pthread_spin_destroy() function is used to destroy a spin lock previously created with pthread_spin_init(). It is undefined what happens
if the function is called when a thread holds the lock, or if the function is called with an uninitialized spin lock.
The pthread_spin_lock() function acquires a spin lock on lock, provided that lock is not presently held. If the lock cannot be immediately
acquired, the calling thread repeatedly retries until it can acquire the lock. Undefined behavior may follow if the calling thread holds the
lock at the time the call is made.
The pthread_spin_trylock() function performs the same locking action, but does not block if the lock cannot be immediately obtained; if the
lock is held, the call fails.
The pthread_spin_unlock() function is used to release the read/write lock previously obtained by pthread_spin_lock() or
pthread_spin_trylock(). The results are undefined if the lock is not held by the calling thread.
RETURN VALUES
If successful, all described functions return zero. Otherwise an error number will be returned to indicate the error.
ERRORS
The pthread_spin_init() function shall fail if:
[ENOMEM] Insufficient memory exists to initialize the lock.
The pthread_spin_init() function may fail if:
[EINVAL] The lock parameter was NULL or the pshared parameter was neither PTHREAD_PROCESS_SHARED nor PTHREAD_PROCESS_PRIVATE.
The pthread_spin_destroy() function may fail if:
[EBUSY] The system has detected an attempt to destroy the object referenced by lock while it is locked.
[EINVAL] The value specified by lock is invalid.
The pthread_spin_trylock() function shall fail if:
[EBUSY] The lock could not be acquired because a writer holds the lock or was blocked on it.
The pthread_spin_lock() function may fail if:
[EDEADLK] The current thread already owns lock for writing.
The pthread_spin_lock() and pthread_spin_trylock() functions may fail if:
[EINVAL] The value specified by lock is invalid.
The pthread_spin_unlock() function may fail if:
[EINVAL] The value specified by lock is invalid.
SEE ALSO pthread(3), pthread_barrier(3), pthread_cond(3), pthread_mutex(3), pthread_rwlock(3)STANDARDS
These functions conform to IEEE Std 1003.1-2001 (``POSIX.1'').
CAVEATS
Applications using spin locks are vulnerable to the effects of priority inversion. Applications using real-time threads (SCHED_FIFO),
(SCHED_RR) should not use these interfaces. Outside carefully controlled environments, priority inversion with spin locks can lead to system
deadlock. Mutexes are preferable in nearly every possible use case.
BSD July 8, 2010 BSD