Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Please suggest me how I can create a process in D (uninterruptable sleep) stat on mirror disk. Actually there is some bug in other code, that process some times create a process with D stat on MD and our unmount script fails and whole system goes in halt condition. Any how we have to avoid shutdown/reboot condition. For testing purpose we want to reproduce such scenario "Process with D stat". The MD has ext2/ext3 filesystem.

Will fuser command can terminate with SIGCHLD signal. I think it may kill init daemon. Kill with SIGCHLD may also have same effect. There are several process which access MD.

Please suggest which will be the best approach to over come from such situation.

share|improve this question
    
sed 's/D stat/D state/'. –  quanta Aug 14 '12 at 7:19
    
Is it really helpfull to reproduce the process state? IMHO there is nothing you can learn for your real situation, since you control the parameters for going into D-state. You do know which processes are going into D-state? Perhaps strace them? –  Michuelnik Aug 14 '12 at 8:46
    
Thanks @ Michuelnik for your quick response. Yes, I know which process is in D stat, this is not the first time that any process has gone in D stat while accessing MD. There are several process which access MD and we have encountered that very few of them stuck in D stat. Actually its a failover cluster and time of failover we make sure that each process accessing MD should be release before failover for that we unmount the MD. We can't afford improper shutdown, which we are encountering. Can you suggest any workaround for same. –  Nish Aug 14 '12 at 9:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.