LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-10-2009, 08:31 AM   #1
pawwa
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
How to discover what inode a process is trying to access?


Hi, I have a problem on a shared hosting server.

The rsync process (for backup purposes) is running for a long time (couple of days), and it doesn`t seems that it will finish it`s work.

It seems like a filesystem problem, where kernel tries to access a very big file, and it logs this to syslog. /var/log/messages says:

Sep 10 06:12:44 www1 kernel: attempt to access beyond end of device
Sep 10 06:12:44 www1 kernel: sda9: rw=0, want=7007211920, limit=97658848

This could be repaired with fsck, but that demands a reboot.

My question is: how could I find out what inode structure rsync process tries to access? (I tried to attach the strace to the rsync process, but I`m not getting anywhere)
 
Old 09-11-2009, 12:48 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
When rsync is running, use the lsof & fuser cmds to see what 'files' are being read.
Also, double check you are not trying to backup such things as /proc etc.
 
Old 09-11-2009, 03:49 AM   #3
pawwa
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Lightbulb

Ah, unfortunately, we had to reboot and fix the problem with fsck. Next time, I`ll try to use lsof and fuser (I don`t know how did I forgot about those commands ).

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
given a file, how to find last access time using the inode structrure linuxdoniv Programming 1 07-16-2008 07:33 AM
How to access inode of a deleted file? ashwyn222 Linux - Newbie 3 02-13-2008 05:36 AM
access file using inode number? allasso Linux - General 1 09-26-2006 10:14 PM
process and memory access phoenix7 Linux - Software 4 08-30-2005 11:25 AM
Directory access denied to root user: inode hack? netmar Linux - Security 2 07-31-2004 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration