- Posted In
- Red Hat Enterprise Linux
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: <notice> Stopping service service:etvfdpd3svc
Sep 22 18:24:56 etvfdpd3 clurgmgrd: : <info> Removing IPv4 address 220.127.116.11/24 from bond0
Sep 22 18:25:06 etvfdpd3 clurgmgrd: : <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
gfs 2 lvdb2 00140001 none
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.
<debug> mount -t gfs2 /dev/mapper/vgdb2-lvdb2 /db2
<info> Adding IPv4 address 18.104.22.168/24 to bond0
<debug> Pinging addr 22.214.171.124 from dev bond0
<debug> Sending gratuitous ARP: 126.96.36.199 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
1.4T 2.1G 1.4T 1% /db2
root@etvfdpd3:/etc/cluster # rg_test test cluster.conf stop service etvfdpd3svc Running in test mode.
<info> Removing IPv4 address 188.8.131.52/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: : <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">
<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.