fuser brought down the box


 
Thread Tools Search this Thread
Operating Systems AIX fuser brought down the box
# 1  
Old 06-24-2005
fuser brought down the box

I issued
fuser -k -x -u ./amqcc_r

It brought down the whole box
The unix admin says if I had issued
fuser -k -x -u amqcc_r then it would have not brouht down the box.

Does it make sense to you guys
# 2  
Old 06-26-2005
Sounds silly to me.

Did you check errpt?
Did you get a sysdump?
Did you get a core file?
Did you call IBM?
# 3  
Old 06-27-2005
...
Did you get some errorcode on the LED-display or its respective successors (HMC, ...)?

Quote:
Sounds silly to me.
Me too. I don't think your issuing "fuser" really brought down the box. Maybe it was just coincidence and they are looking for someone to lay the blame on.

bakunin
# 4  
Old 07-02-2005
I tried it on a test box and that brought down the box too. I did open a PMR.
I don't have access to check the LED or go to the actual physical box.
# 5  
Old 07-08-2005
Could you please give some additional data? I'll give the commands you could issue to determine what I'm interested in along with some sample output:

*) Maintenance level and OS
Code:
root@foobar:/ # instfix -i | grep "AIX_ML"
    All filesets for 5.1.0.0_AIX_ML were found.
    All filesets for 5100-01_AIX_ML were found.
    All filesets for 5100-02_AIX_ML were found.
    All filesets for 5100-03_AIX_ML were found.
    All filesets for 5100-04_AIX_ML were found.
    All filesets for 5100-05_AIX_ML were found.
    All filesets for 5100-06_AIX_ML were found.

*) Level of bos.rte.filesystem (the fileset containing fuser)
Code:
root@foobar:/ # lslpp -w /usr/sbin/fuser
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/sbin/fuser                             bos.rte.filesystem    File
root@foobar:/ # lslpp -l bos.rte.filesystem
  Fileset                      Level  State      Description         
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  bos.rte.filesystem        5.1.0.57  COMMITTED  Filesystem Administration

Path: /etc/objrepos
  bos.rte.filesystem        5.1.0.57  COMMITTED  Filesystem Administration

What you could also do is to analyse the dump the machine has written:

First, find out your dump device and make sure it is big enough to hold the dump: "sysdumpdev -e" gives an estimate how big the dump will be. Multiply that by at least 2 (out of pure paranoia and just to be on the save side). The dump will be written to the paging space so make sure it is big enough to hold that amount. During the following system startup the dump will be copied from the paging space to the designated dump-device, the manual only says it has to be a filesystem, but it hast to be in the rootvg too. Issue a "sysdumpdev -s <fs>" then to designate this location as the target device to copy the dump to at the reboot following the dump.

You could then use kdb (kernel debugger) to analyse the dump written.

bakunin
# 6  
Old 08-03-2005
The command you issued:

fuser -k -u -x ./file

Should not matter whether you run it with ./ or not, the command kills all processes running on that filesystem. So assuming the file was on a file system with OS commands running then you would of brought the box down.

Hope this helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Copying , renaming the file from windox box and ftp to Linux box

Hello my dear friends, Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory. is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies

2. Shell Programming and Scripting

Notify when the script run(hourly)on my jump-box only when there is a failure on my remote-box

Team, Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is... (6 Replies)
Discussion started by: whizkidash
6 Replies

3. UNIX for Advanced & Expert Users

Fuser alternative OR running fuser on a script

Hi, Not sure whether there is a fuser alternative or any better way to check for file in use or not. I am wanting to check whether files are in use or not before removing them. Using fuser, the awk seems to be giving me 'weird' output not to mention that it is giving me 2 lines instead of... (0 Replies)
Discussion started by: newbie_01
0 Replies

4. Web Development

How to copy a selected value of list box into a text box in html form?

hi, i have a list box , a text box and a button in a html form. list box displays some values, when a user selects a value from the list box and press the button. the selected value should be copied to the text box value. can any1 give me a html and javascript code to do this facility. ... (1 Reply)
Discussion started by: Little
1 Replies

5. UNIX for Dummies Questions & Answers

fuser

if filename.txt is in used, exit, else continue. i tried to use fuser -c filename.txt, but returned bunch out PIDs eventhough filename.txt is not in used. any idea ? (10 Replies)
Discussion started by: tjmannonline
10 Replies

6. Solaris

FUSER problems

Greetings, I need help understanding why FUSER will not bring back PSID's on mounted filesystems. Is this a common error? Thanks in advance for your feedback. (11 Replies)
Discussion started by: Harleyrci
11 Replies

7. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

8. UNIX for Dummies Questions & Answers

fuser

Anyone ever use fuser, i tried this command fuser /database.bk but it only returns datbase.bk: I read some of the forums online, one of them said when he used fuser, it broke down the box, i really don't want that happen. I thought fuser is to see who is accessing that file, right? any... (8 Replies)
Discussion started by: adrianlearnpro
8 Replies

9. UNIX for Advanced & Expert Users

fuser ?? Look at the script !!

#SCRIPT TO CHECK WHO HAS ACCESSED THE LOG/FILE IN PAST 'N' MINUTES, AND MAIL ACCORDINGLY. MYPATH="/clocal/mqbrkrs/user/mqsiadm/sanjay/" MAIL_RECIPIENTS="abc@xyz.com" Subject="File accessed in last few minutes" >tempmail.txt >tempfind.txt find "$MYPATH" -type f -amin -1 > tempfind.txt cat... (0 Replies)
Discussion started by: varungupta
0 Replies

10. UNIX for Dummies Questions & Answers

Help with fuser

fuser is used to check whether a file is in use by a process or not. I was putting some information in a file via a background process and was doing a cat to see the contents. It gave me the pid of background process followed by stop. Understood only half, stopped because it was writing on it... (11 Replies)
Discussion started by: vibhor_agarwali
11 Replies
Login or Register to Ask a Question