How to force stopping an array`
So I have a filesystem on an array I cannot unmount, hence I cannot stop the array.
Any way to force it?
Dex
Signature · 8 lines
-----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
Quoted 5 lines · Dexter Filmore
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
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 11 lines · Dexter Filmore
Quoted 5 lines
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>.
Signature · 8 lines
-----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
Quoted 8 lines · Dexter Filmore
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 7 lines · Dexter Filmore
Quoted 5 lines
So I have a filesystem on an array I cannot unmount, hence I cannot stop the array.
Any way to force it?Dex
Quoted 7 lines
Quoted 4 lines
What is using it?
lsof | grep /mount_point
lsof | grep/dev/mdXA 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.
Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz:
Quoted 14 lines · Dexter Filmore
Quoted 13 lines
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 11 lines · Dexter Filmore
Quoted 5 lines
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
Quoted 8 lines
Quoted 2 lines
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
Signature · 8 lines
-----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
Quoted 23 lines · Dexter Filmore
Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz:
Quoted 22 lines · Dexter Filmore
Quoted 6 lines
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 5 lines · Dexter Filmore
Quoted 4 lines
So I have a filesystem on an array I cannot unmount, hence I cannot stop the array.
Any way to force it?Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Dex
What is using it?
lsof | grep /mount_point
lsof | grep/dev/mdXA defunct java process that died from a mem heap error. I can't kill
the
Quoted 1 line
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.
Quoted 5 lines
Quoted 1 line
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.
Quoted 1 line
What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine.
I don't understand this question.
NeilBrown
Am Dienstag, 27. Mai 2008 02:05:36 schrieb NeilBrown:
Quoted 28 lines · Dexter Filmore
Quoted 27 lines
Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz:
Quoted 25 lines · Dexter Filmore
Quoted 6 lines
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 5 lines · Dexter Filmore
Quoted 4 lines
So I have a filesystem on an array I cannot unmount, hence I cannot stop the array.
Any way to force it?Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Dex
What is using it?
lsof | grep /mount_point
lsof | grep/dev/mdXA defunct java process that died from a mem heap error. I can't kill
the
Quoted 1 line
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.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 5 lines
Quoted 2 lines
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/secunused devices: <none>
Signature · 8 lines
-----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
Quoted 36 lines · Dexter Filmore
Am Dienstag, 27. Mai 2008 02:05:36 schrieb NeilBrown:
Quoted 35 lines · Dexter Filmore
Quoted 25 lines
Am Dienstag, 27. Mai 2008 00:30:26 schrieb Justin Piszcz:
Quoted 24 lines · Dexter Filmore
Quoted 6 lines
Am Dienstag, 27. Mai 2008 00:06:57 schrieb Justin Piszcz:
Quoted 5 lines · Dexter Filmore
Quoted 4 lines
So I have a filesystem on an array I cannot unmount, hence I cannot stop the array.
Any way to force it?Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Dex
What is using it?
lsof | grep /mount_point
lsof | grep/dev/mdXA defunct java process that died from a mem heap error. I can't kill
the
Quoted 1 line
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.
Quoted 5 lines
Quoted 1 line
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.
Quoted 14 lines
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...Quoted 5 lines
Quoted 2 lines
What happens there anyway? it resyncs, but mdstats say [UUUUU], all fine.
I don't understand this question.
...like this:
Quoted 9 lines
# 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/secunused devices: <none>
Justin.
Quoted 10 lines · On Tuesday May 27, [email protected] wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
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
Am Freitag, 30. Mai 2008 03:54:30 schrieb Neil Brown:
Quoted 11 lines · On Tuesday May 27, [email protected] wrote:
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
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.
^^^^^^^^^^^^^^^^^^^^^^
Quoted 8 lines
Quoted 1 line
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.
Signature · 8 lines
-----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