Operating System - HP-UX
1823144 Members
3581 Online
109647 Solutions
New Discussion юеВ

Re: rdist deletes links and directories from root!

 
SOLVED
Go to solution
Mike Duffy_1
Honored Contributor

rdist deletes links and directories from root!

Good morning,

I am running rdist (version 7.0.0). It has been running fine for a few years until today!

The destination server keeps on getting /bin (link to /usr/bin) removed. I have checked the source server and have nailed it down to one of three files containing the word bin in their paths. When I run the update manualy /bin is removed. When I create a test ditribution and create "fred" in the / file system (/fred) and then create a source direcoroty containing fred (/export/home/user1/fred) rdist creates the /export/home/user1/fred but also removes /fred.

Anyone have any ideas?
16 REPLIES 16
Arunvijai_4
Honored Contributor

Re: rdist deletes links and directories from root!

Muthukumar_5
Honored Contributor

Re: rdist deletes links and directories from root!

which platform you are using rdist? (uname -a)

Are you using configuration file with rdist or without that using command line options? Plz post the details and verbose output (-v)

hth.
Easy to suggest when don't know about the problem!
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Thanks for the info.

I know this is a HP forum but this problem is on one of the few solaris 2.8 boxes I manage.

I am running the following from the command line
rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o remove,younger -t 20 -l syslog=all -L syslog=all test99

the infile containing test99 declares;

test99: /export/home/mduffy/basics -> ${HOSTS}

I know that the issue is with the bin in the source file structure as I have numerous other dists running in cron and not of those sources contain dist. As I said ealier if I create fred in root and then in /export/home/mduffy/basics it duplicates but also removed /fred be it either a link or directory.

Arunvijai_4
Honored Contributor

Re: rdist deletes links and directories from root!

Since its belong to Solaris, Can you try checking these links,
http://www.adminschoice.com/docs/Solaris_Error_Messages_T_Z.htm
http://www.sun.com/bigadmin/home/index.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Thanks, Already tried the sun path but no joy.
Muthukumar_5
Honored Contributor
Solution

Re: rdist deletes links and directories from root!

solaris. good ;)

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o remove,younger -t 20 -l syslog=all -L syslog=all test99

Is there any error or warning message you got logged in local syslog or remote syslog.

I just referred,

http://www.magnicomp.com/rdist/7.0/doc/rdist.html

why you are using remove option. can you try as,

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o younger -t 20 -l syslog=all -L syslog=all test99

update with your try and error messages.

hth.
Easy to suggest when don't know about the problem!
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Muthukumar,

Thanks for the info.

I have tried this and it does stop deleting the /fred from root but continues to update as required. The only problem is that if I delete a file on the source the delete is not reflected on the destination.

Muthukumar_5
Honored Contributor

Re: rdist deletes links and directories from root!

Try like simply as,

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -t 20 -l syslog=all -L syslog=all test99

May be bcas of younger setting too.

hth.
Easy to suggest when don't know about the problem!
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Nope this command line;

rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -t 20 -l syslog=all -L syslog=all test99

still removed the /bin link to /usr/bin/

Arunvijai_4
Honored Contributor

Re: rdist deletes links and directories from root!

Are you getting any errors/warnings in syslog ?This looks starange.. Anything related with links (hard/soft) ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Nothing.

It seems to me that when it goes to do a remove it somehow does not use the fully qualified path to the file and so uses / as the start and so removes the wrong file.

It then does have the full path to put the file
Muthukumar_5
Honored Contributor

Re: rdist deletes links and directories from root!

use whole setting with -o as,

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -t 20 -o whole -l syslog=all -L syslog=all test99

hth.
Easy to suggest when don't know about the problem!
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Nope.

Still deletes the /bin link!
Muthukumar_5
Honored Contributor

Re: rdist deletes links and directories from root!

Use as,

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -t 20 -o whole,younger -l syslog=all -L syslog=all test99

Full path name problem will be solved with whole and deletion will be solved with younger.

hth.
Easy to suggest when don't know about the problem!
Mike Duffy_1
Honored Contributor

Re: rdist deletes links and directories from root!

Nope.

This command;

rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o whole,younger -t 20 -l syslog=all -L syslog=all test99

Still removes the /bin link and also does not pass file deletes from the source to the dest.

Muthukumar_5
Honored Contributor

Re: rdist deletes links and directories from root!

was rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o younger -t 20 -l syslog=all -L syslog=all test99 working correctly?

what is that file permission of /bin and /usr/bin.

You can use ignlnks (ignore links) setting may be.

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o ignlnks,whole,younger -t 20 -l syslog=all -L syslog=all test99

or

# rdist -f /opt/StEx/etc/Distfile.cm -p /opt/StEx/bin/rdistd -o ignlnks,younger -t 20 -l syslog=all -L syslog=all test99

Please do one thing before trying /bin as,

# source machine
# mkdir /fred/test
# ln -s /fred/test /fred/link

Now try with this remote machine.

hth.



Easy to suggest when don't know about the problem!