clusterfs does not dismount when service is stopped
OK, I have another cluster problem maybe someone can help me with. I want my clustered filesystems to unmount when the service is stopped and then get mounted on the other node when the service gets started on it. This is not occuring and I get the following error:
Sep 22 18:24:56 etvfdpd3 clurgmgrd[5837]: <notice> Stopping service service:etvfdpd3svc
Sep 22 18:24:56 etvfdpd3 clurgmgrd: [5837]: <info> Removing IPv4 address 166.68.70.157/24 from bond0
Sep 22 18:25:06 etvfdpd3 clurgmgrd: [5837]: <debug> Not unmounting clusterfs:db2 - still in use by 1 other service(s)
It also appears that a service is still using the clustered filesystems:
root@etvfdpd3:/etc/cluster # cman_tool services
type level name id state
dlm 1 lvdb2 00150001 none
[1]
gfs 2 lvdb2 00140001 none
[1]
Whats intersting is using rg_test seems to work just fine:
root@etvfdpd3:/etc/cluster # rg_test test cluster.conf start service etvfdpd3svc
Running in test mode.
Starting etvfdpd3svc...
<debug> mount -t gfs2 /dev/mapper/vgdb2-lvdb2 /db2
<info> Adding IPv4 address 166.68.70.157/24 to bond0
<debug> Pinging addr 166.68.70.157 from dev bond0
<debug> Sending gratuitous ARP: 166.68.70.157 f0:4d:a2:3d:cb:c8 brd ff:ff:ff:ff:ff:ff
Start of etvfdpd3svc complete
root@etvfdpd3:/etc/cluster # df -h /db2
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgdb2-lvdb2
1.4T 2.1G 1.4T 1% /db2
root@etvfdpd3:/etc/cluster # rg_test test cluster.conf stop service etvfdpd3svc Running in test mode.
Stopping etvfdpd3svc...
<info> Removing IPv4 address 166.68.70.157/24 from bond0
<info> unmounting /dev/mapper/vgdb2-lvdb2 (/db2)
Stop of etvfdpd3svc complete
And I see this in the message log:
Sep 22 18:29:06 etvfdpd3 rg_test: [13420]: <info> unmounting /dev/mapper/vgdb2-lvdb2 (/db2)
I have my clusterfs setup in the service section like this:
<service autostart="1" domain="etvfdpd3dom" exclusive="0" max_restarts="0" name="etvfdpd3svc" recovery="restart" restart_expire_time="0">
<ip ref="166.68.70.157"/>
<clusterfs name="db2" device="/dev/mapper/vgdb2-lvdb2" mountpoint="/db2" fstype="gfs2" force_unmount="1"/>
NOTE the force_unmount="1"
Once again I am stumped and would appreciate any help.
Mark