1753854 Members
7814 Online
108808 Solutions
New Discussion юеВ

Re: autmount problem.

 
avik
Valued Contributor

autmount problem.

Hi all, can someone explain whats wrong please?

[root@li0db01s NAS]# more /etc/auto.master
#
# $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc /etc/auto.misc --timeout=60
#/misc /etc/auto.misc
#/net /etc/auto.net
#/ora/ /etc/auto.misc
/ora/NAS /etc/auto.ora
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]# more /etc/auto.ora
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

#cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
NAS -fstype=nfs,rw,hard,rsize=32768,wsize=32768 10.20.11.204:/tst
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]# pwd
/ora/NAS
[root@li0db01s NAS]# ls -lrt
total 0
[root@li0db01s NAS]# mkdir NAS
mkdir: cannot create directory `NAS': Permission denied
[root@li0db01s NAS]# pwd
/ora/NAS
[root@li0db01s NAS]#

[root@li0db01s NAS]# mount 10.20.11.204:/tst /mnt
[root@li0db01s NAS]#
[root@li0db01s NAS]#
[root@li0db01s NAS]# cd /mnt
[root@li0db01s mnt]# ll
total 0
-rw-r--r-- 1 root root 0 Dec 25 18:09 test
[root@li0db01s mnt]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol01
10095152 6798256 2784080 71% /
/dev/cciss/c0d0p1 101086 12296 83571 13% /boot
/dev/mapper/VolGroup00-LogVol02
7063480 2664796 4039876 40% /db
none 2043272 0 2043272 0% /dev/shm
/dev/mapper/VolGroup00-LogVol03
13643272 4694788 8255444 37% /ora
/dev/hda 641798 641798 0 100% /media/cdrom
10.20.11.204:/tst 286737408 8361184 278376224 3% /mnt
[root@li0db01s mnt]#



4 REPLIES 4
Alexander Chuzhoy
Honored Contributor

Re: autmount problem.

Try to change directory to:
/ora/NAS/NAS


if won't work post the output of
showmount -e 10.20.11.204
avik
Valued Contributor

Re: autmount problem.

[root@li0db01s NAS]# pwd
/ora/NAS
[root@li0db01s NAS]# cd NAS
-bash: cd: NAS: No such file or directory
[root@li0db01s NAS]#
[root@li0db01s NAS]# showmount -e 10.20.11.204
Export list for 10.20.11.204:
/oracle 10.20.11.206,10.20.11.205
/test 10.20.11.205
/oracledr 10.20.11.206
/down (everyone)
/tst (everyone)
[root@li0db01s NAS]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:21:B0:6E:8E
inet addr:10.20.11.205 Bcast:10.20.11.255 Mask:255.255.255.0
inet6 addr: fe80::213:21ff:feb0:6e8e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:409852 errors:0 dropped:0 overruns:0 frame:0
TX packets:298051 errors:2 dropped:0 overruns:0 carrier:0
collisions:22952 txqueuelen:1000
RX bytes:343336778 (327.4 MiB) TX bytes:27331292 (26.0 MiB)
Interrupt:217

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5458 errors:0 dropped:0 overruns:0 frame:0
TX packets:5458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2240760 (2.1 MiB) TX bytes:2240760 (2.1 MiB)

[root@li0db01s NAS]#
avik
Valued Contributor

Re: autmount problem.

https://rhn.redhat.com/errata/RHBA-2006-0464.html

autofs-4.1.3-187.i386.rpm

it was a bug...
avik
Valued Contributor

Re: autmount problem.

thnx