* How to force stopping an array` @ 2008-05-26 21:43 Dexter Filmore 2008-05-26 22:06 ` Justin Piszcz 0 siblings, 1 reply; 10+ messages in thread From: Dexter Filmore @ 2008-05-26 21:43 UTC (permalink / raw) To: linux-raid So I have a filesystem on an array I cannot unmount, hence I cannot stop the array. Any way to force it? Dex -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.vorratsdatenspeicherung.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-26 21:43 How to force stopping an array` Dexter Filmore @ 2008-05-26 22:06 ` Justin Piszcz 2008-05-26 22:26 ` Dexter Filmore 0 siblings, 1 reply; 10+ messages in thread From: Justin Piszcz @ 2008-05-26 22:06 UTC (permalink / raw) To: Dexter Filmore; +Cc: linux-raid On Mon, 26 May 2008, Dexter Filmore wrote: > So I have a filesystem on an array I cannot unmount, hence I cannot stop the > array. > Any way to force it? > > Dex What is using it? lsof | grep /mount_point lsof | grep /dev/mdX ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-26 22:06 ` Justin Piszcz @ 2008-05-26 22:26 ` Dexter Filmore 2008-05-26 22:30 ` Justin Piszcz 0 siblings, 1 reply; 10+ messages in thread From: Dexter Filmore @ 2008-05-26 22:26 UTC (permalink / raw) To: Justin Piszcz; +Cc: linux-raid Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: > On Mon, 26 May 2008, Dexter Filmore wrote: > > So I have a filesystem on an array I cannot unmount, hence I cannot stop > > the array. > > Any way to force it? > > > > Dex > > What is using it? > > lsof | grep /mount_point > lsof | grep /dev/mdX A defunct java process that died from a mem heap error. I can't kill the process, not even -9, leaves a <defunct>. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.vorratsdatenspeicherung.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-26 22:26 ` Dexter Filmore @ 2008-05-26 22:30 ` Justin Piszcz 2008-05-26 23:02 ` Dexter Filmore 0 siblings, 1 reply; 10+ messages in thread From: Justin Piszcz @ 2008-05-26 22:30 UTC (permalink / raw) To: Dexter Filmore; +Cc: linux-raid On Tue, 27 May 2008, Dexter Filmore wrote: > Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: >> On Mon, 26 May 2008, Dexter Filmore wrote: >>> So I have a filesystem on an array I cannot unmount, hence I cannot stop >>> the array. >>> Any way to force it? >>> >>> Dex >> >> What is using it? >> >> lsof | grep /mount_point >> lsof | grep /dev/mdX > > A defunct java process that died from a mem heap error. I can't kill the > process, not even -9, leaves a <defunct>. Other than rebooting I am not sure.. You could try making / re-mounting it as read-only but if the java process is still reading from the FS it probably will not be of any help. Justin. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-26 22:30 ` Justin Piszcz @ 2008-05-26 23:02 ` Dexter Filmore 2008-05-27 0:05 ` NeilBrown 0 siblings, 1 reply; 10+ messages in thread From: Dexter Filmore @ 2008-05-26 23:02 UTC (permalink / raw) To: Justin Piszcz; +Cc: linux-raid Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz: > On Tue, 27 May 2008, Dexter Filmore wrote: > > Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: > >> On Mon, 26 May 2008, Dexter Filmore wrote: > >>> So I have a filesystem on an array I cannot unmount, hence I cannot > >>> stop the array. > >>> Any way to force it? > >>> > >>> Dex > >> > >> What is using it? > >> > >> lsof | grep /mount_point > >> lsof | grep /dev/mdX > > > > A defunct java process that died from a mem heap error. I can't kill the > > process, not even -9, leaves a <defunct>. > > Other than rebooting I am not sure.. You could try making / re-mounting > it as read-only but if the java process is still reading from the FS it > probably will not be of any help. > > Justin. Exactly. reboot pretty much deosn't do any good, afterwars the raid resyncs, which takes full 7h here. What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine. Dex -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.vorratsdatenspeicherung.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-26 23:02 ` Dexter Filmore @ 2008-05-27 0:05 ` NeilBrown 2008-05-27 10:49 ` Dexter Filmore 0 siblings, 1 reply; 10+ messages in thread From: NeilBrown @ 2008-05-27 0:05 UTC (permalink / raw) To: Dexter Filmore; +Cc: Justin Piszcz, linux-raid On Tue, May 27, 2008 9:02 am, Dexter Filmore wrote: > Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz: >> On Tue, 27 May 2008, Dexter Filmore wrote: >> > Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: >> >> On Mon, 26 May 2008, Dexter Filmore wrote: >> >>> So I have a filesystem on an array I cannot unmount, hence I cannot >> >>> stop the array. >> >>> Any way to force it? >> >>> >> >>> Dex >> >> >> >> What is using it? >> >> >> >> lsof | grep /mount_point >> >> lsof | grep /dev/mdX >> > >> > A defunct java process that died from a mem heap error. I can't kill >> the >> > process, not even -9, leaves a <defunct>. >> >> Other than rebooting I am not sure.. You could try making / re-mounting >> it as read-only but if the java process is still reading from the FS it >> probably will not be of any help. >> >> Justin. > > Exactly. reboot pretty much deosn't do any good, afterwars the raid > resyncs, > which takes full 7h here. There shouldn't be a resync. Presumably nothing is writing to the array, and moments after the last write, the array will have been flagged as 'clean' and will not require a resync after a reboot. > What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine. I don't understand this question. NeilBrown ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-27 0:05 ` NeilBrown @ 2008-05-27 10:49 ` Dexter Filmore 2008-05-27 19:42 ` Justin Piszcz 0 siblings, 1 reply; 10+ messages in thread From: Dexter Filmore @ 2008-05-27 10:49 UTC (permalink / raw) To: NeilBrown; +Cc: Justin Piszcz, linux-raid Am Dienstag, 27. Mai 2008 02:05:36 schrieb NeilBrown: > On Tue, May 27, 2008 9:02 am, Dexter Filmore wrote: > > Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz: > >> On Tue, 27 May 2008, Dexter Filmore wrote: > >> > Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: > >> >> On Mon, 26 May 2008, Dexter Filmore wrote: > >> >>> So I have a filesystem on an array I cannot unmount, hence I cannot > >> >>> stop the array. > >> >>> Any way to force it? > >> >>> > >> >>> Dex > >> >> > >> >> What is using it? > >> >> > >> >> lsof | grep /mount_point > >> >> lsof | grep /dev/mdX > >> > > >> > A defunct java process that died from a mem heap error. I can't kill > >> > >> the > >> > >> > process, not even -9, leaves a <defunct>. > >> > >> Other than rebooting I am not sure.. You could try making / re-mounting > >> it as read-only but if the java process is still reading from the FS it > >> probably will not be of any help. > >> > >> Justin. > > > > Exactly. reboot pretty much deosn't do any good, afterwars the raid > > resyncs, > > which takes full 7h here. > > There shouldn't be a resync. Presumably nothing is writing to the > array, and moments after the last write, the array will have been > flagged as 'clean' and will not require a resync after a reboot. Well, that's what I thought. Actually the "shutdown" didn't work at all, it got stuck and wouldn't finish so I had to resort to Alt-SysRq-S/U/B to reboot. S/U should have ensured the file systems are in sync, but I don't know how the array takes to such measures. After the reboot the mdstat looks... > > > What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine. > > I don't understand this question. > ...like this: # cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sde1[0] sdb1[4] sdd1[3] sda1[2] sdc1[1] 1953503488 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU] [>....................] resync = 2.9% (14600832/488375872) finish=360.6min speed=21896K/sec unused devices: <none> -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.vorratsdatenspeicherung.de ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-27 10:49 ` Dexter Filmore @ 2008-05-27 19:42 ` Justin Piszcz 2008-05-30 1:54 ` Neil Brown 0 siblings, 1 reply; 10+ messages in thread From: Justin Piszcz @ 2008-05-27 19:42 UTC (permalink / raw) To: Dexter Filmore; +Cc: NeilBrown, linux-raid On Tue, 27 May 2008, Dexter Filmore wrote: > Am Dienstag, 27. Mai 2008 02:05:36 schrieb NeilBrown: >> On Tue, May 27, 2008 9:02 am, Dexter Filmore wrote: >>> Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz: >>>> On Tue, 27 May 2008, Dexter Filmore wrote: >>>>> Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz: >>>>>> On Mon, 26 May 2008, Dexter Filmore wrote: >>>>>>> So I have a filesystem on an array I cannot unmount, hence I cannot >>>>>>> stop the array. >>>>>>> Any way to force it? >>>>>>> >>>>>>> Dex >>>>>> >>>>>> What is using it? >>>>>> >>>>>> lsof | grep /mount_point >>>>>> lsof | grep /dev/mdX >>>>> >>>>> A defunct java process that died from a mem heap error. I can't kill >>>> >>>> the >>>> >>>>> process, not even -9, leaves a <defunct>. >>>> >>>> Other than rebooting I am not sure.. You could try making / re-mounting >>>> it as read-only but if the java process is still reading from the FS it >>>> probably will not be of any help. >>>> >>>> Justin. >>> >>> Exactly. reboot pretty much deosn't do any good, afterwars the raid >>> resyncs, >>> which takes full 7h here. >> >> There shouldn't be a resync. Presumably nothing is writing to the >> array, and moments after the last write, the array will have been >> flagged as 'clean' and will not require a resync after a reboot. ^^^^^^^^^^^^^^^^^^^^^^ His host crashed != reboot so that is the reason for the resync. > > Well, that's what I thought. Actually the "shutdown" didn't work at all, it > got stuck and wouldn't finish so I had to resort to Alt-SysRq-S/U/B to > reboot. > S/U should have ensured the file systems are in sync, but I don't know how the > array takes to such measures. After the reboot the mdstat looks... >> >>> What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine. >> >> I don't understand this question. >> > > ...like this: > > # cat /proc/mdstat > Personalities : [raid6] [raid5] [raid4] > md0 : active raid5 sde1[0] sdb1[4] sdd1[3] sda1[2] sdc1[1] > 1953503488 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU] > [>....................] resync = 2.9% (14600832/488375872) > finish=360.6min speed=21896K/sec > > unused devices: <none> > Justin. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-27 19:42 ` Justin Piszcz @ 2008-05-30 1:54 ` Neil Brown 2008-05-30 11:18 ` Dexter Filmore 0 siblings, 1 reply; 10+ messages in thread From: Neil Brown @ 2008-05-30 1:54 UTC (permalink / raw) To: Justin Piszcz; +Cc: Dexter Filmore, linux-raid On Tuesday May 27, jpiszcz@lucidpixels.com wrote: > >>> Exactly. reboot pretty much deosn't do any good, afterwars the raid > >>> resyncs, > >>> which takes full 7h here. > >> > >> There shouldn't be a resync. Presumably nothing is writing to the > >> array, and moments after the last write, the array will have been > >> flagged as 'clean' and will not require a resync after a reboot. > ^^^^^^^^^^^^^^^^^^^^^^ > > His host crashed != reboot so that is the reason for the resync. If the host crashes will nothing is being written to the array, the array would be marked clean, so a resync will still not be required. You should only get a resync if the host crashing within 200msecs of the last write completing. NeilBrown ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to force stopping an array` 2008-05-30 1:54 ` Neil Brown @ 2008-05-30 11:18 ` Dexter Filmore 0 siblings, 0 replies; 10+ messages in thread From: Dexter Filmore @ 2008-05-30 11:18 UTC (permalink / raw) To: Neil Brown; +Cc: Justin Piszcz, linux-raid Am Freitag, 30. Mai 2008 03:54:30 schrieb Neil Brown: > On Tuesday May 27, jpiszcz@lucidpixels.com wrote: > > >>> Exactly. reboot pretty much deosn't do any good, afterwars the raid > > >>> resyncs, > > >>> which takes full 7h here. > > >> > > >> There shouldn't be a resync. Presumably nothing is writing to the > > >> array, and moments after the last write, the array will have been > > >> flagged as 'clean' and will not require a resync after a reboot. > > > > ^^^^^^^^^^^^^^^^^^^^^^ > > > > His host crashed != reboot so that is the reason for the resync. > > If the host crashes will nothing is being written to the array, the > array would be marked clean, so a resync will still not be required. > You should only get a resync if the host crashing within 200msecs of > the last write completing. > > NeilBrown Well, I hoped to ensure this wouldn't happen by the way I reset the box: first force sync by alt-sysrq-s, wait a moment, remount in ro by alt-sysrq-u, wait again then reboot with alt-sysrq-b. Maybe the ro-remount failed due to the zombie hogging the fs, wild guess. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.vorratsdatenspeicherung.de ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-05-30 11:18 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-05-26 21:43 How to force stopping an array` Dexter Filmore 2008-05-26 22:06 ` Justin Piszcz 2008-05-26 22:26 ` Dexter Filmore 2008-05-26 22:30 ` Justin Piszcz 2008-05-26 23:02 ` Dexter Filmore 2008-05-27 0:05 ` NeilBrown 2008-05-27 10:49 ` Dexter Filmore 2008-05-27 19:42 ` Justin Piszcz 2008-05-30 1:54 ` Neil Brown 2008-05-30 11:18 ` Dexter Filmore
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.