Hi there,
just to make you all aware of it.
sometimes "Filesystem stop" cannot umount the file system,
and fuser does not kill anybody.
and this time it it not NFS, for a change.
fuser misses unix domain sockets!
this is a long known issue, but it just recently hit me again
during a failover, so I thought we should work around this.
as one quasi ubiquitious program that uses unix domain sockets is
ssh-agent, let me ge you an example using it ...
# lvcreate -n scratch -L 1M vgX
# mke2fs /dev/vgX/scratch
# mkdir /scratch
# mount /dev/vgX/scratch /scratch
# ssh-agent -a /scratch/some-name
# fuser -v -m /scratch
# [ no output ]
# fuser -v /scratch/some-name
# [ the ssh-agent is listed, now! ]
# lsof /scratch
# [ no output ]
# lsof -U | grep /scratch
# ssh-agent 26782 root 3u unix 0xffff880055f45440 242170
/scratch/some-name
so we may want to complement the "$FUSER -a -k -v -m" with
something like
lsof -U | awk '/ \/'"$mountpoint"'\// { print $2 }' | xargs -- kill
comments?
--
: Lars Ellenberg Tel +43-1-8178292-0 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/