All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with NFS
@ 2005-09-26 18:36 GOKUL HUGGAHALLI
  0 siblings, 0 replies; 4+ messages in thread
From: GOKUL HUGGAHALLI @ 2005-09-26 18:36 UTC (permalink / raw)
  To: nfs

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

Hello,
 I have two machines ADB and AWEB
Linux adb 2.4.21-27.0.4.ELsmp #1 SMP Sat Apr 16 18:43:06 EDT 2005 i686 i686
i386 GNU/Linux
Linux aweb 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686
i386 GNU/Linux
 ADB runs Oracle and AWEB runs Apache and Coldfusion. I have set up a drive
on machine AWEB which is mountable from machine ADB. I am mounting it so
that I can transfer around 130GB of RMAN backup from ADB to AWEB. I am using
nfs so that RMAN is can push the backup from ADB to AWEB.
 The problem I am facing right now is that in the middle of that transfer
the AWEB machine becomes unresponsive. I cant even ping it from anywhere
else. After some hours it recovers on its own. The only other option is to
bounce AWEB. I checked the /var/log/messages in AWEB after it recovers to
see if there are any problems but it does not indicate that there is a
problem.
 Are there any bugs which relate to this problem? How do I go about solving
this problem.
 Thank you,
Gokul

[-- Attachment #2: Type: text/html, Size: 1254 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* problem with NFS
@ 2006-09-15 15:42 Luca Ferrari
  2006-09-15 16:09 ` Aslan Carlos
  2006-09-16 11:54 ` Glynn Clements
  0 siblings, 2 replies; 4+ messages in thread
From: Luca Ferrari @ 2006-09-15 15:42 UTC (permalink / raw)
  To: linux-admin

Hi all,
I've got a suse linux server where I exported a root-created directory as 
follows:

server:~ # ls -ald /vol2/backup_opensco/
drwxr-xr-x  2 root root 48 Sep 15 17:23 /vol2/backup_opensco/
server:~ # cat /etc/exports
/vol2/backup_opensco 192.168.201.63(rw,sync)


and an old opensco server (192.168.201.63) that should be able to mount the 
exported directory. Now I execute the following command on the sco server:
# mount -f NFS 192.168.201.1:/vol2/backup_opensco /mnt
# mount
/ on /dev/root read/write on Fri Sep 15 15:04:32 2006
/stand on /dev/boot read only on Fri Sep 15 15:04:33 2006
/mnt on 192.168.201.1:/vol2/backup_opensco read/write on Fri Sep 15 17:36:17

Now the filesystem is mounted in read-write mode, and it belongs to root: 
# ls -ald /mnt
drwxr-xr-x   2 root     root          48 Sep 15 16:23 /mnt

but I cannot write to it!

# cd /mnt
# echo "ciao" > ciao.txt
ciao.txt: cannot create

Anyone can explain me why? I guess the NFS exporting is right, and also the 
mounting, but it looks like there's a problem with owner and group. Any idea?

Thanks,
Luca


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with NFS
  2006-09-15 15:42 problem " Luca Ferrari
@ 2006-09-15 16:09 ` Aslan Carlos
  2006-09-16 11:54 ` Glynn Clements
  1 sibling, 0 replies; 4+ messages in thread
From: Aslan Carlos @ 2006-09-15 16:09 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: linux-admin

Hi Luca, 
Maybe you need use the 'no_root_squash' into (rw,sync)...

cause the problem, I guess was permission to nfs.

best regards,
Aslan Carlos.

Em Sex, 2006-09-15 às 17:42 +0200, Luca Ferrari escreveu:
> Hi all,
> I've got a suse linux server where I exported a root-created directory as 
> follows:
> 
> server:~ # ls -ald /vol2/backup_opensco/
> drwxr-xr-x  2 root root 48 Sep 15 17:23 /vol2/backup_opensco/
> server:~ # cat /etc/exports
> /vol2/backup_opensco 192.168.201.63(rw,sync)
> 
> 
> and an old opensco server (192.168.201.63) that should be able to mount the 
> exported directory. Now I execute the following command on the sco server:
> # mount -f NFS 192.168.201.1:/vol2/backup_opensco /mnt
> # mount
> / on /dev/root read/write on Fri Sep 15 15:04:32 2006
> /stand on /dev/boot read only on Fri Sep 15 15:04:33 2006
> /mnt on 192.168.201.1:/vol2/backup_opensco read/write on Fri Sep 15 17:36:17
> 
> Now the filesystem is mounted in read-write mode, and it belongs to root: 
> # ls -ald /mnt
> drwxr-xr-x   2 root     root          48 Sep 15 16:23 /mnt
> 
> but I cannot write to it!
> 
> # cd /mnt
> # echo "ciao" > ciao.txt
> ciao.txt: cannot create
> 
> Anyone can explain me why? I guess the NFS exporting is right, and also the 
> mounting, but it looks like there's a problem with owner and group. Any idea?
> 
> Thanks,
> Luca
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with NFS
  2006-09-15 15:42 problem " Luca Ferrari
  2006-09-15 16:09 ` Aslan Carlos
@ 2006-09-16 11:54 ` Glynn Clements
  1 sibling, 0 replies; 4+ messages in thread
From: Glynn Clements @ 2006-09-16 11:54 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: linux-admin


Luca Ferrari wrote:

> I've got a suse linux server where I exported a root-created directory as 
> follows:
> 
> server:~ # ls -ald /vol2/backup_opensco/
> drwxr-xr-x  2 root root 48 Sep 15 17:23 /vol2/backup_opensco/
> server:~ # cat /etc/exports
> /vol2/backup_opensco 192.168.201.63(rw,sync)
> 
> 
> and an old opensco server (192.168.201.63) that should be able to mount the 
> exported directory. Now I execute the following command on the sco server:
> # mount -f NFS 192.168.201.1:/vol2/backup_opensco /mnt
> # mount
> / on /dev/root read/write on Fri Sep 15 15:04:32 2006
> /stand on /dev/boot read only on Fri Sep 15 15:04:33 2006
> /mnt on 192.168.201.1:/vol2/backup_opensco read/write on Fri Sep 15 17:36:17
> 
> Now the filesystem is mounted in read-write mode, and it belongs to root: 
> # ls -ald /mnt
> drwxr-xr-x   2 root     root          48 Sep 15 16:23 /mnt
> 
> but I cannot write to it!
> 
> # cd /mnt
> # echo "ciao" > ciao.txt
> ciao.txt: cannot create
> 
> Anyone can explain me why? I guess the NFS exporting is right, and also the 
> mounting, but it looks like there's a problem with owner and group. Any idea?

By default, NFS treats root accounts as disjoint, i.e. root on the
client isn't the same as root on the server; any remote accesses as
root are mapped to the "nobody" account. As the directory is only
writable by root, you can't write to it from the client.

You can disable this behaviour by adding the no_root_squash option to
the export. However, bear in mind that this represents a security
risk; if possible, it's better to change the ownership of the exported
files so that they can be modified by a non-root account.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-16 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 18:36 Problem with NFS GOKUL HUGGAHALLI
  -- strict thread matches above, loose matches on Subject: below --
2006-09-15 15:42 problem " Luca Ferrari
2006-09-15 16:09 ` Aslan Carlos
2006-09-16 11:54 ` Glynn Clements

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.