[Tfug] root on lvm on raid shutdown problem
John Gruenenfelder
johng at as.arizona.edu
Sat Jun 5 02:48:02 MST 2004
On Fri, Jun 04, 2004 at 07:15:29AM -0700, Glenn Shannon wrote:
>What I would suggest doing (for debug purposes) is putting in a line in the
>halt script, right before root is mounted read-only, that reads:
>
>lsof >/lsof.txt
>
>Then doing a halt.
>
>This will let you know exactly what is open on the partitions when you are
>trying to remount them read-only/unmount them.
>
>I am not sure in whatever flavor of linux you're using where to put this
>line (I converted over to gentoo a while back) but I can get it installed on
>one of my test machines and figure it out if you like.
>
>Just let me know which version of what distribution. I like solving puzzles
>:)
Okay, I've done just that. I've attached the lsof.log file to this email. I
can't see anything out of the ordinary. Aside from init, the shutdown script,
and lsof, everything else appears to be kernel threads. All the other
processes appear stopped.
This machine is running Debian Sid, and it's using LVM 2.0 with kernel 2.6.6.
--
--John Gruenenfelder Research Assistant, Steward Observatory, U of Arizona
johng at as.arizona.edu
Try Weasel Reader for PalmOS -- http://gutenpalm.sf.net
"This is the most fun I've had without being drenched in the blood
of my enemies!"
--Sam of Sam & Max
-------------- next part --------------
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
init 1 root cwd DIR 253,0 4096 128 /
init 1 root rtd DIR 253,0 4096 128 /
init 1 root txt REG 253,0 31420 20682 /sbin/init
init 1 root mem REG 253,0 90152 918004 /lib/ld-2.3.2.so
init 1 root mem REG 253,0 1279044 262674 /lib/tls/libc-2.3.2.so
init 1 root 10u FIFO 0,11 1920 /dev/initctl
ksoftirqd 2 root cwd DIR 253,0 4096 128 /
ksoftirqd 2 root rtd DIR 253,0 4096 128 /
events/0 3 root cwd DIR 253,0 4096 128 /
events/0 3 root rtd DIR 253,0 4096 128 /
kblockd/0 4 root cwd DIR 253,0 4096 128 /
kblockd/0 4 root rtd DIR 253,0 4096 128 /
khelper 5 root cwd DIR 253,0 4096 128 /
khelper 5 root rtd DIR 253,0 4096 128 /
pdflush 6 root cwd DIR 253,0 4096 128 /
pdflush 6 root rtd DIR 253,0 4096 128 /
pdflush 7 root cwd DIR 253,0 4096 128 /
pdflush 7 root rtd DIR 253,0 4096 128 /
kswapd0 8 root cwd DIR 253,0 4096 128 /
kswapd0 8 root rtd DIR 253,0 4096 128 /
aio/0 9 root cwd DIR 253,0 4096 128 /
aio/0 9 root rtd DIR 253,0 4096 128 /
xfslogd/0 10 root cwd DIR 253,0 4096 128 /
xfslogd/0 10 root rtd DIR 253,0 4096 128 /
xfsdatad/ 11 root cwd DIR 253,0 4096 128 /
xfsdatad/ 11 root rtd DIR 253,0 4096 128 /
xfsbufd 12 root cwd DIR 253,0 4096 128 /
xfsbufd 12 root rtd DIR 253,0 4096 128 /
kseriod 115 root cwd DIR 253,0 4096 128 /
kseriod 115 root rtd DIR 253,0 4096 128 /
kcryptd/0 118 root cwd DIR 253,0 4096 128 /
kcryptd/0 118 root rtd DIR 253,0 4096 128 /
md2_raid1 121 root cwd DIR 253,0 4096 128 /
md2_raid1 121 root rtd DIR 253,0 4096 128 /
md1_raid1 123 root cwd DIR 253,0 4096 128 /
md1_raid1 123 root rtd DIR 253,0 4096 128 /
xfssyncd 144 root cwd DIR 253,0 4096 128 /
xfssyncd 144 root rtd DIR 253,0 4096 128 /
xfssyncd 891 root cwd DIR 253,0 4096 128 /
xfssyncd 891 root rtd DIR 253,0 4096 128 /
xfssyncd 892 root cwd DIR 253,0 4096 128 /
xfssyncd 892 root rtd DIR 253,0 4096 128 /
xfssyncd 893 root cwd DIR 253,0 4096 128 /
xfssyncd 893 root rtd DIR 253,0 4096 128 /
xfssyncd 894 root cwd DIR 253,0 4096 128 /
xfssyncd 894 root rtd DIR 253,0 4096 128 /
khpsbpkt 1204 root cwd DIR 253,0 4096 128 /
khpsbpkt 1204 root rtd DIR 253,0 4096 128 /
knodemgrd 1218 root cwd DIR 253,0 4096 128 /
knodemgrd 1218 root rtd DIR 253,0 4096 128 /
khubd 1254 root cwd DIR 253,0 4096 128 /
khubd 1254 root rtd DIR 253,0 4096 128 /
rc 5439 root cwd DIR 253,0 4096 128 /
rc 5439 root rtd DIR 253,0 4096 128 /
rc 5439 root txt REG 253,0 80472 557704 /bin/dash
rc 5439 root mem REG 253,0 90152 918004 /lib/ld-2.3.2.so
rc 5439 root mem REG 253,0 1279044 262674 /lib/tls/libc-2.3.2.so
rc 5439 root 0u CHR 5,1 1893 /dev/console
rc 5439 root 1u CHR 5,1 1893 /dev/console
rc 5439 root 2u CHR 5,1 1893 /dev/console
rc 5439 root 10r REG 253,0 2235 262280 /etc/init.d/rc
S40umount 5668 root cwd DIR 253,0 4096 128 /
S40umount 5668 root rtd DIR 253,0 4096 128 /
S40umount 5668 root txt REG 253,0 80472 557704 /bin/dash
S40umount 5668 root mem REG 253,0 90152 918004 /lib/ld-2.3.2.so
S40umount 5668 root mem REG 253,0 1279044 262674 /lib/tls/libc-2.3.2.so
S40umount 5668 root 0u CHR 5,1 1893 /dev/console
S40umount 5668 root 1w REG 253,0 0 2592 /lsof.log
S40umount 5668 root 2u CHR 5,1 1893 /dev/console
S40umount 5668 root 10r REG 253,0 517 262295 /etc/init.d/umountfs
S40umount 5668 root 11u CHR 5,1 1893 /dev/console
lsof 5671 root cwd DIR 253,0 4096 128 /
lsof 5671 root rtd DIR 253,0 4096 128 /
lsof 5671 root txt REG 253,2 115192 536 /usr/bin/lsof
lsof 5671 root mem REG 253,0 90152 918004 /lib/ld-2.3.2.so
lsof 5671 root mem REG 253,0 1279044 262674 /lib/tls/libc-2.3.2.so
lsof 5671 root 0u CHR 5,1 1893 /dev/console
lsof 5671 root 1w REG 253,0 0 2592 /lsof.log
lsof 5671 root 2u CHR 5,1 1893 /dev/console
lsof 5671 root 3r DIR 0,3 0 1 /proc
lsof 5671 root 4r DIR 0,3 0 371654665 /proc/5671/fd
lsof 5671 root 5w FIFO 0,7 10688 pipe
lsof 5671 root 6r FIFO 0,7 10689 pipe
lsof 5672 root cwd DIR 253,0 4096 128 /
lsof 5672 root rtd DIR 253,0 4096 128 /
lsof 5672 root txt REG 253,2 115192 536 /usr/bin/lsof
lsof 5672 root mem REG 253,0 90152 918004 /lib/ld-2.3.2.so
lsof 5672 root mem REG 253,0 1279044 262674 /lib/tls/libc-2.3.2.so
lsof 5672 root 4r FIFO 0,7 10688 pipe
lsof 5672 root 7w FIFO 0,7 10689 pipe
More information about the tfug
mailing list