AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Operatingsystems
#Servers
#AIX
#Power

 View Only
  • 1.  Killing tar -cvf /dev/rmt0.1 .

    Posted Sat January 23, 2010 02:38 AM

    Originally posted by: SystemAdmin


    Hi Champs

    I have started backup of my filesystem using tar.

    $ cd /
    $ tar -cvf /dev/rmt0.1 .

    However, it hanged when it reached /proc and not moving further. I have manually killed the process using kill command, but it still shows in the process list.

    1. ps -eaf | grep rmt
    root 852184 1183928 0 13:01:28 pts/0 0:00 grep rmt
    root 1200220 1 120 Jan 21 - 2477:11 tar -cvf /dev/rmt0.1 .

    Tried fuser also:

    1. fuser -ck /dev/rmt0.1
    fuser: 0506-077 Cannot find or open /dev/rmt0.1.

    How do I kill the process without rebooting the system? Thanks for your help.

    Abdul
    #AIX-Forum


  • 2.  Re: Killing tar -cvf /dev/rmt0.1 .

    Posted Sat January 23, 2010 07:05 PM

    Originally posted by: Najam Kazi


    Yaar Abdul,
    You don't use tar to backup AIX OS image, use mksysb
    1. mksysb -X -i -e /<directory-to-save>

    and to kill the tar , search for tar # ps -aef | grep tar

    and not ps -eaf | grep rmt
    Najam Kazi
    #AIX-Forum


  • 3.  Re: Killing tar -cvf /dev/rmt0.1 .

    Posted Sun January 24, 2010 12:38 AM

    Originally posted by: SystemAdmin


    Thanks Najam.

    But how do I kill the tar process? fuser and kill have not helped.

    Any clues on how I can use /dev/rmt0.1 again?

    Thanks
    Abdul
    #AIX-Forum


  • 4.  Re: Killing tar -cvf /dev/rmt0.1 .

    Posted Sun January 24, 2010 03:05 PM

    Originally posted by: Najam Kazi


    I doubt that the process is still running. You might have closed the putty session and that might havve stoped/killed the task you were running. once you have the mksysb in a directory eg : /tmp/mksysb_of_server

    issue # tar -cvf /tmp/mksysb_of_server /dev/rmt0

    double check with the man tar command.

    Najam
    #AIX-Forum


  • 5.  Re: Killing tar -cvf /dev/rmt0.1 .

    Posted Sun January 24, 2010 11:55 PM

    Originally posted by: Kosala


    Hi Abdul, I believe when you signal the tar process with "kill -9", it will simply ignore it... did you check whether the PID is changing when you issue a kill command?

    One possibility of your situation could be the tar command thread is executing in the kernal space and unable to interrupt for signals. One thing you can try is unmounting the /proc. This is quite harmless (as long as you mount it back). This might be able to get your tar command back to a interruptable state.

    Try playing with proctools, which might help to figure out your problem.

    Cheers,
    Kosala
    #AIX-Forum


  • 6.  Re: Killing tar -cvf /dev/rmt0.1 .

    Posted Mon January 25, 2010 06:21 AM

    Originally posted by: SystemAdmin


    Try switching off the tape drive->fuser -k /dev/rmt0->kill -9 PID->rmdev -dl rmt0->kill -9 PID

    You can cfgmgr the tape after that.

    Hope it helps.

    r/
    R
    #AIX-Forum