i wrote a shell script that was running perfectly fine until we had some issue with our NFS server and the script was hung.
This script runs every 20 mins and obviously as we had the NFS issue, the script start to hang. as i do a check to make sure
NFS directory is avaiable or not. Original check i had in place was below, now i am trying to modify so i can run this even
when NFS is done or atleast the script does not hang
with new modification....
But that does not seem to work. i was thinking to use the timeout command but i have to make this script work on linux and hp-ux and
i believe hp-ux dose not have the timeout command.
Any thoughts on how i can do a check without haning my script?
Moderator's Comments:
Please use code tags next time for your code and data. Thanks
Last edited by vbe; 04-10-2014 at 12:39 PM..
Reason: code tags + typos
Hi all,
I have two problems, My system is SunOS 5.9:
1- I have installed sudo but I have a problem logging user activities on other hosts, the way I installed it is that I installed sudo and the sudoers file in a shared directory on a NFS server which is mounted by all computers on the... (1 Reply)
I want to create an automated script which is called by another maually executed script.
The condition is that the no one should be able to manually execute the automated script.
The automated script can be on the same machine or it can be on a remote machine.
Can any one suggest a check in the... (1 Reply)
Hi, I have a Unix box running HP-UX 10.20 and it suddenly won't boot. Every time it goes down the boot checklist, it hangs on "NFS client subsystem" and just continues to say busy/wait. I have read something about the /etc/auto_master but don't quite understand what has to happen to fix it. ... (4 Replies)
I have this short and simple shell script that processes a log file with the following format:
and attempts to generate output in the following format:
I've come up with the following, but for some reason, it only prints output correctly for the first line of the input file,... (8 Replies)
Hi all
I had a server, when run the df -h command, it hang, and need to press "crtl+c" to terminate it.
i cant other NFS filesystem anymore.
but i try at other server, the NFS filesystem is work properly
any idea on this?
# mount -p
/dev/md/dsk/d0 - / ufs - no... (1 Reply)
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Hi.
I'm having problems with my HP C8000 and 11.11 (ifs client needs to be restarted every week), trying to get it worked out.
When I searched the web it seems, I require the following patches:
PHKL_41041, PHKL_43823, PHKL_43577
Is there anyway to get hold of these packages?
Many thanks... (2 Replies)
Hi,
I making a script to check nfs mount and unmount options.
After various findings, i didn't get any solution for that.
Can you please help me in making the script.
1) I have used,
if grep -qs '/var/JETSHARE' /proc/mounts; then
echo "It's mounted."
else
echo "It's not mounted.
... (2 Replies)
I need a help of good people with effective bash script to mount nfs shared,
By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people.
The scenario as follow:
An NFS Client with Daily CRON , running bash script... (4 Replies)
Been trying to get a directory NFS-mounted with no success. I've tried both NFS v3 and v4, but currently trying v4. I can't figure out what's going on here.
server: sbkovwadmd01
sbkovwadmd01# chnfsdom
Current local domain: edw.dev
sbkovwadmd01# lssrc -a | grep nfs | grep active
nfsd ... (3 Replies)
Discussion started by: eckertd
3 Replies
LEARN ABOUT NETBSD
nfsd
NFSD(8) BSD System Manager's Manual NFSD(8)NAME
nfsd -- remote NFS server
SYNOPSIS
nfsd [-6rut] [-n num_threads]
DESCRIPTION
nfsd runs on a server machine to service NFS requests from client machines. At least one nfsd must be running for a machine to operate as a
server.
Unless otherwise specified, four servers for UDP transport are started.
The following options are available:
-r Register the NFS service with rpcbind(8) without creating any servers. This option can be used along with the -u or -t options to
re-register NFS if the portmap server is restarted.
-n Specifies how many server threads to create. The default is 4. A server should run enough threads to handle the maximum level of
concurrency from its clients.
-6 Listen to IPv6 requests as well as IPv4 requests. If IPv6 support is not available, nfsd will silently continue and just use IPv4.
-t Serve TCP NFS clients.
-u Serve UDP NFS clients.
For example, ``nfsd -t -u -n 6'' serves UDP and TCP transports using six threads.
nfsd listens for service requests at the port indicated in the NFS server specification; see Network File System Protocol Specification, RFC
1094 and NFS: Network File System Version 3 Protocol Specification.
The nfsd utility exits 0 on success, and >0 if an error occurs.
SEE ALSO nfsstat(1), nfssvc(2), mountd(8), rpcbind(8)HISTORY
The nfsd utility first appeared in 4.4BSD.
BSD March 17, 2008 BSD