Solved

backup

Posted on 2000-05-10
9
332 Views
Last Modified: 2013-12-06
what is the "could not statfile" message from fbackup ?
0
Comment
Question by:nakanoas
  • 5
  • 4
9 Comments
 

Author Comment

by:nakanoas
ID: 2795912
Workstation HP-UX
HP-UX 10.20
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2797157
fbackup failed to get status information about the file - possibly because it was being written to or NFS mounted from another system.

What filename is it complaining about? If it's a temporary file or a log you could exclude it from the backup.
0
 

Author Comment

by:nakanoas
ID: 2797345
it´s all project files created by Mentor Graphics.

What can i do to solve this problem???

All Workstations are in LAN, and all disks are NFS mounted.

0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 20

Expert Comment

by:tfewster
ID: 2797646
First the bad news:
> The use of fbackup for backing up NFS mounted file systems is not guaranteed to work as expected if the backup is done as a privileged user. This is due to the manner in which NFS handles privileged-user access by mapping user root and uid 0 to user nobody, usually uid -2, thus disallowing root privileges on the remote system to a root user on the local system.

So assuming the files have permissions
rwxr-x--- (Owner can do anything, other users in the group can read & execute, others [Including root from another system in this case] can't do anything.

You can test this as root by trying to copy a file from the NFS mounted filesystem.

Either change the permissions to e.g. rwxr-xr-x, or if this creates a security issue, run fbackup as a member of that group. You may have to split the backup, doing one backup without the -n option (so it doesn't read the NFS drives), then another, as a member of that group, just for the NFS drives.
0
 

Author Comment

by:nakanoas
ID: 2799752
tfewster,

  Files that get this message are created by Mentor Graphics, they are circuit diagram files.
  All Workstations are connected in LAN and are NFS mounted (all of them are HP-UX 10.20).
  what to do?
0
 

Author Comment

by:nakanoas
ID: 2800037
tfewster,

  Forget the last comment, it was the same !

  Permissions for all files created by Mentor Graphics are -rw-rw-r-- located in workstation 3.

  To run fbackup i´m using the sintax :

/etc/fbackup -n -f /dev/rmt/1m -2 -u -g /var/adm/fbackupfiles/graphs/TAPE1

  This is an script to run daily backup and TAPE1 indicates what to backup.
   
  I run fbackup from workstation 2 as root where the DAT drive is mounted

  Until this week I was not receiving the message "could not stat file" it begins on this week, since monday.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2800122
Check the permissions on those files to confirm that they do not have global read permission, and (as root) test if you can copy a file from the NFS filesystem.

Test running fbackup while logged in as a member of the group that owns the files.

If you don't mind making the files globally readable, use chmod to do that and set the users umask to 022 so any new files created are globally readable.

Otherwise, create a user "mgbackup", in the same group as the users, and have "mgbackup" run the fbackup job for the graphics files.

Hope this helps, Tim




0
 
LVL 20

Expert Comment

by:tfewster
ID: 2811182
Sorry, I missed your last post as I was typing mine & I've been tied up
since then. I've reproduced the error myself now; If a directory within the
tree being backed up has read but NOT execute permissions, it will cause
fbackup to error in this way, as it tries to check whether a file has changed.

You can check this by working your way down the directory tree on the NFS
mount & using "ls -ld" to look at the directories & their permissions. You
can either
- Change the permissions to e.g. drwxr-xr-x ;

OR Override the permissions & prevent this from happening again by changing
/etc/exports to add "-root=workstation_2_host_name" to the line that
exports the data directory. This grants root on workstation 2 superuser
rights on the NFS filesystem.
0
 
LVL 20

Accepted Solution

by:
tfewster earned 200 total points
ID: 2836598
Hi nakanoas - As you haven't responded to my last comment, I assume it fixed the problem :)

If not, please reject this answer and let me know what the results were

Cheers, Tim
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now