Operating System - HP-UX
1833756 Members
3159 Online
110063 Solutions
New Discussion

Can't open the logfile on target /dev/rmt/0m

 
Aravind_3
Frequent Advisor

Can't open the logfile on target /dev/rmt/0m


I was trying to install some scripts from the tape with the following command:
_______________________________________________
# swinstall -x mount_all_filesystems=false -s /dev/rmt/0m \*

======= 07/29/02 03:36:01 METDST BEGIN swinstall SESSION (non-interactive)

* Session started for user root@ntomc4 .
* Beginning Selection
* Target connection succeeded for ntomc4:/ .
* nclass:/dev/rmt/0m : This source is a tape device.
* nclass:/dev/rmt/0m : Cannot open the logfile on this target or source. Possibly the media is read-only or there is a permission problem. Check the daemon logfile and /var/tmp/swagent.log on this host for more information.
* Source: /dev/rmt/0m
* Targets: nclass:/
* Software selections:
52UPG.52UPG,r=638,a=S800_HPUX,v=xxxx
* Selection succeeded.
* Beginning Analysis
* Session selections have been saved in the file /.sw/sessions/swinstall.last .
WARNING: nclass:/: There will be no attempt to mount filesystems that appear in the filesystem table.
* Analysis succeeded.
* Beginning Execution
* The execution phase succeeded for ntomc4:/ .
* Execution succeeded.

NOTE: More information may be found in the agent logfile (location is nclass:/var/adm/sw/swagent.log).

======= 07/29/02 03:37:03 METDST END swinstall SESSION non-interactive)

_______________________________________________

What could be the possbile reason for the Warning messages ?
Please help.
5 REPLIES 5
Frederic Sevestre
Honored Contributor

Re: Can't open the logfile on target /dev/rmt/0m

Hi,

The depot log.file can't be use when tis depot is located on a tape or CDROM. Indeed the process is not able to write on the depot. That is why there is a warning. It does not affect the installation.

The warning about the filesystem is produced by the -x mount_all_filesystems=false. The fstab is not checked.

Hope this help,
Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Fragon
Trusted Contributor

Re: Can't open the logfile on target /dev/rmt/0m

I think the install is trying to generate logfile to your tape, and it can't!
If you put your depot to a directory with write access permission,maybe the warning will clear away!

Aravind_3
Frequent Advisor

Re: Can't open the logfile on target /dev/rmt/0m

The interest in the above question is with respect to this error:
______________________________________________
* nclass:/dev/rmt/0m : Cannot open the logfile on this target or source. Possibly the media is read-only or there is a permission problem. Check the daemon logfile and /var/tmp/swagent.log on this
_______________________________________________

I saw in the swinstall.last file that the option
swinstall.run_as_superuser = true
is missing

Has it got anything to do with the error ?
Frederic Sevestre
Honored Contributor

Re: Can't open the logfile on target /dev/rmt/0m

Hi,

Don't care about this error. As Gerald and I told you, swinstall try to write in a log file locatedon the depot, which is not possible when this depot is on a tape or a CDROM.

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Aravind_3
Frequent Advisor

Re: Can't open the logfile on target /dev/rmt/0m

I will ignore the error,
But the point is how do we prevent this error:
______________________________________________
* nclass:/dev/rmt/0m : Cannot open the logfile on this target or source. Possibly the media is read-only or there is a permission problem. Check the daemon logfile and /var/tmp/swagent.log on this host for more information.
______________________________________________