Operating System - HP-UX
1753602 Members
6900 Online
108796 Solutions
New Discussion юеВ

Re: Recursive cmsync not working as expected

 
Pauliac
Occasional Contributor

Recursive cmsync not working as expected

Hi,

Is there a way to use "cmsync -r" to synchronize whole directories ?

SGLX version used :
node1# rpm -qa |grep serviceguard
serviceguard-A.11.18.06-0.rhel5

Here is an example. The directory was created on node1 and doesn't exist yet on node2.

node1# cd /usr/local/cmcluster/conf/pkg1

node1# ls -l test_dir
total 4
-rw-r--r-- 1 root root 0 Mar 30 13:50 dummy
drwxr-xr-x 3 root root 4096 Mar 30 13:54 test_dir

node1# cmsync -r test_dir
## Copying to node node1...
## Copying to node node2...
cmcp: /usr/local/cmcluster/conf/pkg1/test_dir on node node2: not a directory.

Is it a bug ?

Thanks
M. Pauliac
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Recursive cmsync not working as expected

Shalom,

file /usr/local/cmcluster/conf/pkg1/test_dir

Maybe its not a directory, it could be a file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pauliac
Occasional Contributor

Re: Recursive cmsync not working as expected

Hi again,

"test_dir" is a directory containing one empty file that I created on node1 in order to illustrate our problem.

It doesn't exist on node2, so obviously it's not a directory on node2.

I just want to know how we are supposed to use "cmsync -r". It doesn't seem to work at all.

thanks anyway
Brem Belguebli
Regular Advisor

Re: Recursive cmsync not working as expected

Hi,

We have tried to use cmsync in place of one of our custom script to do so too, and get the same behavior.

Looks to me like a bug.

Maybe SG guys will be able to give their opinion, the behavior being the same on both SGUX and SGLX.
smatador
Honored Contributor

Re: Recursive cmsync not working as expected

Hi,
For me, cmsync is just introduce in the new release A.11.18 to copy files and directory to multiple nodes.
I really prefer some custom script with old [rcp/scp] or newer with DSAU command such as ccp in /opt/dsau/bin
For HPUX, some patch exist to correct some bugs cmsync but for linux, i really don't know.
Hope it helps

smatador
Honored Contributor

Re: Recursive cmsync not working as expected

DSAU consists of three primary components:
* Configuration synchronization tools - provide policy-based configuration management for groups of systems and Serviceguard clusters.
* Consolidated logging tools - provide centralized logging and advanced log filtering features. Specific support is provided for creating a highly available log consolidation server using Serviceguard.
* Command fanout tools - provide high performance tools for executing shell commands and distributing files across groups of systems and Serviceguard clusters.

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPDSAU
Pauliac
Occasional Contributor

Re: Recursive cmsync not working as expected

Thank you for your feedback.

We're also using custom scripts to address this problem for the time being.

I guess we'll have to wait for a bug fix.