LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2009, 07:24 AM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Question Drive stuck, how to I un-stuck it.


I've had this happen twice now in the last 6 months. I know a reboot will fix it. Just trying to figure out how to fix it without the reboot.

I was doing a very large rsync when all of a second it froze.

Code:
fuser -m /dev/Surplus/VirtualStorage 
/dev/Surplus/VirtualStorage: 16312c

ps aux | grep 16312
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     16312  1.0  0.0  90160   720 pts/8    D    Aug04   9:02 rsync -a --progress firefly-crash.img firefly-php.img firefly-solaris.img firefly-ubuntu.img /mnt/temp/

ps -eflH | grep 16312
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
1 D root     16312     1  1  80   0 - 22540 sync_p Aug04 pts/8    00:09:02   rsync -a --progress firefly-crash.img firefly-php.img firefly-solaris.img firefly-ubuntu.img /mnt/temp/

grep sync_p /proc/*/wchan
/proc/16312/wchan:sync_page


 lsof /dev/Surplus/VirtualStorage 
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rsync    16312 root  cwd    DIR  253,7     4096    2 /mnt/temp

Currently any command executed on this directory /mnt/temp is being held. (sync, updatedb, ls, anything) I've tried killing the rsync but no go.

Any ideas how to unlock it? This file system is ext4, and the previous lock was on a xfs file system, if it helps.
 
Old 08-05-2009, 11:40 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you haven't tried killing the processes accessing the device with fuser, I'd give that a shot:

# fuser -km /dev/Surplus/VirtualStorage

That should kill all processes accessing the device.
 
Old 08-05-2009, 11:51 AM   #3
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Original Poster
Rep: Reputation: 31
fuser -km /dev/Surplus/VirtualStorage doesn't work. Process is still there. Found the main process which I think is holding the lock:

F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
1 D root 15222 2 0 75 -5 - 0 jbd2_j Aug04 ? 00:00:19 [kjournald2]


Can't kill it either. (not that I should kill kjournald2, but being a new partition I knew I could always re-format if I corrupted it)
 
Old 08-05-2009, 11:57 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I don't know much about fuse/fuser so this might be totally worthless:

If the problem is arising from hardware, i.e. a real physical drive is 'frozen' or confused, the 'hdparm' and 'sdparm' tools can be used to force a reset of the drive. I have never had it fail, though depending on how confused was the drive, it sometimes took several seconds up to as long as 20-30 seconds to un-freeze the drive.

I believe the hdparm option is -W as in `hdparm -W /dev/hda` but verify this on the man page.

Sorry if I'm barking up the wrong tree here,

Sasha
 
  


Reply



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
trying to clone a drive with RAID1. getting stuck at grub ncsuapex Linux - Software 13 02-12-2009 01:54 PM
trying to clone a drive with RAID1. getting stuck at grub ncsuapex Linux - Software 0 02-03-2009 12:12 PM
disk drive stuck in read-only Sparkfist Ubuntu 6 11-18-2006 06:27 PM
installing without boot cdrom, no floppy drive, and no network - stuck need some help TimeFade Linux - Laptop and Netbook 4 05-14-2004 02:39 PM
stuck - trying 2 add 2nd hard drive darazman Linux - Hardware 4 09-13-2003 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 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
Open Source Consulting | Domain Registration