System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

vdump over ssh from Tru64 to Sol. 9

SOLVED
Go to solution
Nigel Henden
Advisor

vdump over ssh from Tru64 to Sol. 9

I need some help - I'm new to Tru64.

I am making a backup script to backup filesystems - advfs and UFS from an AlphaStation (Tru64 5.1-B) to an Ultra2 (Solaris 9) via ssh2, and I'm encountering problems.






15 REPLIES
Ralf Puchner
Honored Contributor

Re: vdump over ssh from Tru64 to Sol. 9

try it without ssh, if it works try to fix the ssh problem.

It is easier for troubleshooting to split the script and trying to fix it seperately.
This is absolut OS indepentent....

Help() { FirstReadManual(urgently); Go_to_it;; }
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Ralph,

Thank you for replying.

Without ssh the machine can not find host tokora1-1 to which the tape drive is attached.

By the way, I got the "permission denied" messages when I used the following syntax too:


/sbin/vdump -b 60 -f - -D /var | rsh tokora1-1 "dd bs60 of=/dev/rmt/0n"

Thank you.

Nigel
Johan Brusche
Honored Contributor

Re: vdump over ssh from Tru64 to Sol. 9


For the rsh permission problem, you will have to enter the Tru64 host/user in the $HOME/.rhosts at the Solaris side.

Same thing for ssh, the equivalent file is $HOME/.shosts

Rgds,
Johan.

_JB_
Michael Schulte zur Sur
Honored Contributor

Re: vdump over ssh from Tru64 to Sol. 9

Hi,

it seems, that you have access problems for those files, who do not have read access for group system like ldb.

greetings,

Michael
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

ssh2, sftp2, and rsh are all set up properly on both hosts.
.rhosts in operator's home directory (both hosts)

/home/operator/.ssh2/authorization
/home/operator/.ssh2/identification

public keys are fine.

I can rsh and ssh to each host.

Nigel
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Michael,

Right. I noticed they are set at 600.

I will have to think of the securist way to go now.
I don't want to run the final script as root.

Thanks

Nigel
Michael Schulte zur Sur
Honored Contributor

Re: vdump over ssh from Tru64 to Sol. 9

Nigel,

have you decided what you will do?
Give read rights for the group?

greetings,

Michael
ps. do you know the points system
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Michael

I will set up an ACL for user operator.

Thank you.

Nigel
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Michael,

There are a lot of file which give me permission problems - not only those in group system.
As you can see from the attachement, even my own files.

P.S.
Where is the button located to award points?
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Seems to me the ./ are duplicates.

Nigel
Michael Schulte zur Sur
Honored Contributor
Solution

Re: vdump over ssh from Tru64 to Sol. 9

Hi,

usually a complete backup has to run as root because you have to have access to all the files. Alternatives are sudo or dop, which allow you to run commands with root rights even you are not root.

greetings,

Michael

ps. next to each unrated posting there is a drop down menu with 0-10, which refers to the points you want to assign. At the bottom there is a submit points button. Click on that, when you have selected the points to assign.
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Right.

I thought about sudo - use it a lot on my Sun boxes.
If I opt for ACL, then I'll hsve to setacl recursively from / up for opererator to have rwx permissions.
Just as well settle for sudo.

Thank you.

Nigel
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

However when I backup on Linux I use operator:disk

and on Solaris operator:sys

I have never needed to backup as root before.

Nigel
Nigel Henden
Advisor

Re: vdump over ssh from Tru64 to Sol. 9

Michael,

I went for SUDO.

Thank you for your suggestions.
If you want to, please see attached.

Thank you.

Nigel
P.S.
Notice the "100.2% completed"
Michael Schulte zur Sur
Honored Contributor

Re: vdump over ssh from Tru64 to Sol. 9

Hi,

I am glad, that it worked out. Concerning the 100.2% have a look at this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=488549

greetings,

Michael