[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Cman tool leave remove, device or resource busy



Title: Re: [Linux-cluster] Cman tool leave remove, device or resource busy
Thanks for the reply..     Is this 4.x version you are running?   I see you are doing `service cman stop leave`   instead of cman_tool,      I’m still getting the same results putting a pause in there.

Femced isn’t a standalone process in 5.0 as far as I can tell.  If it is, then is that the one process stopping me from leaving the cluster?
 


On 10/23/07 6:33 AM, "rhurst bidmc harvard edu" <rhurst bidmc harvard edu> wrote:

Unfortunately, we have run into the same issue... but we have found that a small pause before shutting cman down works every time (script snippet below -- sleep 1 was dicey, sleep 2 always worked, sleep3 just because):

service rgmanager stop
[ $? -eq 0 ] || exit

service gfs stop
[ $? -eq 0 ] || exit

service clvmd stop
[ $? -eq 0 ] || exit

service fenced stop
[ $? -eq 0 ] || exit

# invoking cman too early sometimes fails ... -t option too small?
sync
sleep 3

[ "$ACTION" = "leave" ] && service cman stop leave || service cman stop
[ $? -eq 0 ] || exit

service ccsd stop
[ $? -eq 0 ] || exit


On Mon, 2007-10-22 at 14:05 -0600, Josh Gray wrote:

I see in the FAQ the proper way to leave a cluster is with 'cman_tool leave
remove'  I am getting a  'device or resource busy' error when I do that even
with GFS mounts removed and stopped.   What am I missing?  The only service
I see up is a "fence" type called "default"  do I have to stop one more
thing?

Basically doing this:

service nfs stop
umount /export
service gfs stop
service rgmanager stop
service clvmd stop
cman_tool leave remove

Tells me this:
cman_tool: Error leaving cluster: Device or resource busy


Full snip from the server:

[root nfs-6 ~]# cman_tool services
type             level name         id       state
fence            0     default      00010003 none
[1 2 3]
dlm              1     clvmd        00020003 none
[1 2 3]
dlm              1     rgmanager    00050003 none
[1 2 3]
dlm              1     nfs_data_vg  00040003 none
[1 2 3]
gfs              2     nfs_data_vg  00030003 none
[1 2 3]
[root nfs-6 ~]# service nfs stop
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
[root nfs-6 ~]# umount /export
[root nfs-6 ~]# service gfs stop
[root nfs-6 ~]# service rgmanager stop
Shutting down Cluster Service Manager...
Waiting for services to stop:                              [  OK  ]
Cluster Service Manager is stopped.
[root nfs-6 ~]# service clvmd stop
Deactivating VG nfs_data_vg:   0 logical volume(s) in volume group
"nfs_data_vg" now active
                                                           [  OK  ]
Stopping clvm:                                             [  OK  ]
[root nfs-6 ~]# cman_tool leave remove
cman_tool: Error leaving cluster: Device or resource busy
[root nfs-6 ~]# cman_tool services
type             level name     id       state
fence            0     default  00010003 none
[1 2 3]
[root nfs-6 ~]#





Robert Hurst, Sr. Caché Administrator
Beth Israel Deaconess Medical Center
1135 Tremont Street, REN-7
Boston, Massachusetts   02120-2140
617-754-8754 ∙ Fax: 617-754-8730 ∙ Cell: 401-787-3154
Any technology distinguishable from magic is insufficiently advanced.

--
Linux-cluster mailing list
Linux-cluster redhat com
https://www.redhat.com/mailman/listinfo/linux-cluster


--
Josh Gray
Systems Administrator
NIC Inc

Email: jgray nicusa com
Desk/Mobile: 913-221-1520

"It is not the mountain we conquer, but ourselves."
- Sir Edmund Hillary


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]