We help IT Professionals succeed at work.

backup

nakanoas
nakanoas asked
on
353 Views
Last Modified: 2013-12-06
what is the "could not statfile" message from fbackup ?
Comment
Watch Question

Author

Commented:
Workstation HP-UX
HP-UX 10.20

Commented:
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.

Author

Commented:
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.

Commented:
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.

Author

Commented:
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?

Author

Commented:
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.

Commented:
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




Commented:
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.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.