Trouble with .tar creation over NFS mount

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Trouble with .tar creation over NFS mount
# 1  
Old 03-27-2013
Trouble with .tar creation over NFS mount

Hello,

I am trying to backup a directory to an NFS mount. But after mounting the "tar" command is failing.

1. Created folder for mount point: test1
2. Mounted desired mount:
[root@server_name1 ~]# mount -t nfs server_name2:/backup/WMSAPP_backup -w /test1/
[root@server_name1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVolRoot
19G 14G 4.1G 78% /
/dev/mapper/VolGroup00-LogVolTmp
9.5G 3.9G 5.1G 44% /tmp
/dev/mapper/VolGroup00-LogVolVar
4.8G 574M 4.0G 13% /var
/dev/mapper/VolGroup00-LogVolApps
99G 14G 81G 15% /apps/scope
/dev/sda1 996M 41M 904M 5% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
server_name2:/backup/WMSAPP_backup
1008G 80G 878G 9% /test1


[root@servera-name1 ~]# tar cvf /test1/app_scope.tar /apps/scope/
tar: /test1/app_scope.tar: Cannot open: Permission denied

tar: Error is not recoverable: exiting now

A. Is there a different way of mounting where we can pass credentials. I read somewhere that we do not need credentials to mount as NFS.

B. Is there a different tar option that we can use...

THanks in advance for help.
# 2  
Old 03-27-2013
Well, do you have permissions to access the folder? What's the owner and the group?
# 3  
Old 03-27-2013
Quote:
Originally Posted by Corona688
Well, do you have permissions to access the folder? What's the owner and the group?
Assuming if it is as root I should have permission

I believe you are asking about permission to /test1/
drwxr-xr-x 2 root root 4096 Mar 27 11:59 test1

For the Mount
drwxr-xr-x 16 oracle oinstall 4096 Mar 27 07:00 backup
# 4  
Old 03-27-2013
Try using something other than root, NFS servers may just deny root outright. (being it's a network filesystem, hard to trust things are 'really' root)
# 5  
Old 03-29-2013
You may want to look at the exporting options on the directory from "server-name-2".

You may want to try rw,no_root_squash in /etc/exports which should allow root to act as normal across the share.
# 6  
Old 03-31-2013
Use No Root squash

I agree with previous poster about RW + no_root_squash. If you dont specify no_root_squash, then by default other system's root will NOT be equal to l
nFS server's root.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

2. Shell Programming and Scripting

Tar file creation

Hi, I need to transfer some files from one server to another server. I need confirmation whether tar file will be created or not in HP UX with the following space details. du -s /home/webadmin/xxx/bin/ 469186 /home/webadmin/xxx/bin/ df -k /home/webadmin/xxx/bin/ 556110 total... (5 Replies)
Discussion started by: nag_sathi
5 Replies

3. UNIX for Dummies Questions & Answers

Mount NFS

Hi I have 2 servers, one is running on SunOS SPARC and the other is running on GNU Linux. Since my Linux is very poor I am not sure on how to mount a NFS from SunOS to Gnu Linux. Please help! FS at Host Server: root@rocux4 # ls -ld /data/PCFILES/GTPROD/DWHFILES.NEW drwxrwxrwx 4 nobody ... (6 Replies)
Discussion started by: hedkandi
6 Replies

4. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

5. OS X (Apple)

NFS Mount

Hello! Im trying to mount an nfs share. But got a bit of a problem. The problem im having is that i try to mount The problem is that the my.server.com/pub/home is owned by root. I know i can make a mount point my.server.com://pub/home/username - > /pub/home But that means i have to do... (1 Reply)
Discussion started by: dozy
1 Replies

6. UNIX for Dummies Questions & Answers

NFS mount

I have a NAS server that needs to have the share mounted on a unix server. I am not that familiar with NFS mounts....any help on what I have to do on the UNIX box...thanks! (7 Replies)
Discussion started by: andrewd
7 Replies

7. UNIX for Dummies Questions & Answers

mount -o llock -F nfs vs mount -F nfs

Hi, We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time. Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem.. Can... (1 Reply)
Discussion started by: KhawHL
1 Replies

8. Filesystems, Disks and Memory

NFS mount

Hi All, Can any one help in Mounting remote filesystems with NFS? Thanks in advance. Regards, Suresh. (4 Replies)
Discussion started by: srvaka1
4 Replies

9. Forum Support Area for Unregistered Users & Account Problems

Account creation trouble

I created an account a while back, but never received any confirmation, so I could never get the full access... :( I logged back in today, but I'd forgotten what I'd used for username... anyway, I entered my email address and it said that I would receive my login information, which I... (2 Replies)
Discussion started by: seaghan
2 Replies

10. UNIX for Dummies Questions & Answers

tar expanding trouble

Hello, I have just download a .tar.gz when I run: $tar x *.tar.gz or even $tar z *.tar.gz this is the error I get tar: can't open /dev/sa0 : Device not configured How do I reconfigure the device so that it expands the file in it's current location? Thanks so much for your help! (4 Replies)
Discussion started by: TAT2ME74
4 Replies
Login or Register to Ask a Question