Sponsored Content
Full Discussion: Automount issue
Operating Systems AIX Automount issue Post 302950141 by ce9888 on Tuesday 21st of July 2015 10:21:08 AM
Old 07-21-2015
Ok here's the details

Server A configuration
Code:
p02s:root# cat /etc/exports
/home                -access=sdt-net
/home/s/JourEceArch  -access=sdt-net
/home/s/web          -access=sdt-net
/home/s/rapports_cme -access=sdt-net
/home/cores          -access=sdt-net

p02s:root# cat /etc/netgroup
sdt-net (a01s,,) (a01s1,,) (a02s,,) (a02s1,,) (a03s,,) (c01s,,) (c01s1,,) (c02s,,) (c02s1,,) (m01s,,) (m01s1,,) (m02s,,) (m05s,,) (m
06s,,) (m07s,,) (m08s,,) (m09s,,) (m10s,,) (m14s,,) (m17s,,) (p01s,,) (p01s1,,) (p02s,,) (p02s1,,) (r01s,,) (r01s1,,) (u01s,,) (u01s
1,,) (u02s,,) (u02s1,,) (va02s1,,) (x01s,,) (x01s1,,) (x02s,,) (x02s1,,) (x03s,,) (x03s1,,) (x04s,,) (x04s1,,)
sdt-root
sdt-user

p02s:root# showmount -e
export list for p02s:
/home                sdt-net
/home/s/JourEceArch  sdt-net
/home/s/web          sdt-net
/home/s/rapports_cme sdt-net
/home/cores          sdt-net

p02s:root# ls -altr /home/s/rapports_cme
total 24
drwxrwx---    2 spsy     spec            256 Sep 24 2013  lost+found/
drwxrwsr-x    2 spsy     spec            256 Sep 24 2013  RAPPORTS_ECHANGES/
drwxrwsrwx    2 spsy     spec            256 May 12 14:17 PROG_INT/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 PLAN_RET/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 BilanCME/
drwxrwsr-x    2 spsy     spec            256 May 28 13:55 PLAN_ANNUEL/
drwxrwsrwx    2 spsy     spec            256 Jun 01 08:02 data_bilancme/
drwxrwxr-x   12 spsy     spec           4096 Jun 01 08:03 ./
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 PROGRAMME_INTÉGRÉ@ -> PROG_INT/
lrwxrwxrwx    1 root     spec              5 Jun 05 11:23 BILAN_PRÉVISIONNEL@ -> GEODE/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 BILAN_CMÉ@ -> BilanCME/
drwxrwsr-x   31 spsy     spec           4096 Jun 25 08:20 ../
drwxrwsr-x    2 spsy     spec            256 Jul 09 00:10 GEODE/

p02s:root# df /home/s/rapports_cme
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/fslv08      3932160   3905928    1%       36     1% /home/s/rapports_cme

p02s:root# mount
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/hd4         /                jfs2   May 01 15:24 rw,log=/dev/hd8
         /dev/hd2         /usr             jfs2   May 01 15:24 rw,log=/dev/hd8
         /dev/hd9var      /var             jfs2   May 01 15:24 rw,log=/dev/hd8
         /dev/hd3         /tmp             jfs2   May 01 15:24 rw,log=/dev/hd8
         /dev/fwdump      /var/adm/ras/platform jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/hd1         /users           jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/hd11admin   /admin           jfs2   May 01 15:26 rw,log=/dev/hd8
         /proc            /proc            procfs May 01 15:26 rw
         /dev/hd10opt     /opt             jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/livedump    /var/adm/ras/livedump jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/fslv03      /home            jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/fslv04      /u01/app         jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/fslv05      /home/cores      jfs2   May 01 15:26 rw,log=/dev/hd8
         /dev/fslv00      /var/adm/messback jfs2   May 01 15:26 rw,log=/dev/hd8
         -hosts           /vhe             autofs May 01 15:26 rw,soft,nobrowse,ignore
         -hosts           /net             autofs May 01 15:26 ro,soft,nobrowse,ignore
         /dev/fslv06      /home/s/web      jfs2   Jun 05 12:01 rw,log=INLINE
         /dev/fslv09      /home/s/JourEceArch jfs2   Jun 05 12:01 rw,log=INLINE
         /dev/fslv08      /home/s/rapports_cme jfs2   Jul 20 15:01 rw,log=INLINE

Server B

Let's check what is mounted
Code:
a01s:root# mount
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/hd4         /                jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd2         /usr             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd9var      /var             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd3         /tmp             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd1         /users           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd11admin   /admin           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /proc            /proc            procfs Jul 21 08:25 rw
         /dev/hd10opt     /opt             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/livedump    /var/adm/ras/livedump jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/fslv00      /home            jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv01      /u01/app         jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_backuprootvg /backuprootvg    jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv02      /var/adm/messback jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv03      /home/cores      jfs2   Jul 21 08:25 rw,log=/dev/loglv00
         /dev/fslv04      /home/s/FEATURES jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv05      /home/s/release  jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv06      /www             jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv07      /home/saves      jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv08      /home/sdbr       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv09      /home/sdbc       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_cme      /www/docs/Rapports-CME jfs2   Jul 21 08:25 rw,log=INLINE
         -hosts           /vhe             autofs Jul 21 08:25 rw,soft,nobrowse,ignore
         -hosts           /net             autofs Jul 21 08:25 ro,soft,nobrowse,ignore

Switch to my user to check the automount content
Code:
a01s:root# su - spsy
a01s:spsy$ cd /vhe/p02s/home/s/rapports_cme
a01s:spsy$ ls -altr
total 8
drwxrwsr-x   31 spsy     spec           4096 Jun 25 08:20 ../
drwxrwsr-x    2 spsy     spec            256 Jul 20 14:01 ./
a01s:spsy$ exit

The automount is responding but is showing no files or directories. Let's try it manually
Code:
a01s:root# mount p02s:/home/s/rapports_cme /mnt
a01s:root# su - spsy
a01s:spsy$ cd /mnt
a01s:spsy$ ls -altr
total 24
drwxrwx---    2 spsy     spec            256 Sep 24 2013  lost+found/
drwxrwsr-x    2 spsy     spec            256 Sep 24 2013  RAPPORTS_ECHANGES/
drwxrwsrwx    2 spsy     spec            256 May 12 14:17 PROG_INT/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 PLAN_RET/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 BilanCME/
drwxrwsr-x    2 spsy     spec            256 May 28 13:55 PLAN_ANNUEL/
drwxrwsrwx    2 spsy     spec            256 Jun 01 08:02 data_bilancme/
drwxrwxr-x   12 spsy     spec           4096 Jun 01 08:03 ./
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 PROGRAMME_INTÉGRÉ@ -> PROG_INT/
lrwxrwxrwx    1 root     spec              5 Jun 05 11:23 BILAN_PRÉVISIONNEL@ -> GEODE/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 BILAN_CMÉ@ -> BilanCME/
drwxrwsr-x    2 spsy     spec            256 Jul 09 00:10 GEODE/
dr-xr-xr-x   30 root     sys            4096 Jul 21 08:25 ../

It's working this way.

Let's check what is mounted
Code:
a01s:spsy$ mount
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/hd4         /                jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd2         /usr             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd9var      /var             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd3         /tmp             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd1         /users           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd11admin   /admin           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /proc            /proc            procfs Jul 21 08:25 rw
         /dev/hd10opt     /opt             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/livedump    /var/adm/ras/livedump jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/fslv00      /home            jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv01      /u01/app         jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_backuprootvg /backuprootvg    jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv02      /var/adm/messback jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv03      /home/cores      jfs2   Jul 21 08:25 rw,log=/dev/loglv00
         /dev/fslv04      /home/s/FEATURES jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv05      /home/s/release  jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv06      /www             jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv07      /home/saves      jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv08      /home/sdbr       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv09      /home/sdbc       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_cme      /www/docs/Rapports-CME jfs2   Jul 21 08:25 rw,log=INLINE
         -hosts           /vhe             autofs Jul 21 08:25 rw,soft,nobrowse,ignore
         -hosts           /net             autofs Jul 21 08:25 ro,soft,nobrowse,ignore
         -hosts           /vhe/p02s/home   autofs Jul 21 09:34 rw,soft,nobrowse,nest,ignore
p02s     /home            /vhe/p02s/home   nfs3   Jul 21 09:34 rw,soft,nest
         -hosts           /vhe/p02s/home/cores autofs Jul 21 09:34 rw,soft,nobrowse,nest,ignore
p02s     /home/s/rapports_cme /mnt             nfs3   Jul 21 09:35

I would expect entries for my /vhe/p02s/home/s/rapports_cme in the mount output but they are obviously not there.

Let's try to create a file
Code:
a01s:spsy$ cd /vhe/p02s/home/s/rapports_cme
a01s:spsy$ echo "test automount path" > test_file.txt
a01s:spsy$ ls -altr
total 16
drwxrwsr-x   31 spsy     spec           4096 Jun 25 08:20 ../
-rw-rw-r--    1 spsy     spec             20 Jul 21 09:48 test_file.txt
drwxrwsr-x    2 spsy     spec            256 Jul 21 09:48 ./

Let's check on /mnt if it's there
Code:
a01s:spsy$ cd /mnt
a01s:spsy$ ls -altr
total 24
drwxrwx---    2 spsy     spec            256 Sep 24 2013  lost+found/
drwxrwsr-x    2 spsy     spec            256 Sep 24 2013  RAPPORTS_ECHANGES/
drwxrwsrwx    2 spsy     spec            256 May 12 14:17 PROG_INT/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 PLAN_RET/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 BilanCME/
drwxrwsr-x    2 spsy     spec            256 May 28 13:55 PLAN_ANNUEL/
drwxrwsrwx    2 spsy     spec            256 Jun 01 08:02 data_bilancme/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 PROGRAMME_INTÉGRÉ@ -> PROG_INT/
lrwxrwxrwx    1 root     spec              5 Jun 05 11:23 BILAN_PRÉVISIONNEL@ -> GEODE/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 BILAN_CMÉ@ -> BilanCME/
drwxrwsr-x    2 spsy     spec            256 Jul 09 00:10 GEODE/
dr-xr-xr-x   30 root     sys            4096 Jul 21 08:25 ../
drwxrwxr-x   12 spsy     spec           4096 Jul 21 09:47 ./

Thought luck...

Umounting everything
Code:
a01s:root# cd /
a01s:root# umount /mnt
a01s:root# umount /vhe/p02s/home/cores
a01s:root# umount  /vhe/p02s/home
a01s:root# umount  /vhe/p02s/home
a01s:root# mount
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/hd4         /                jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd2         /usr             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd9var      /var             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd3         /tmp             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd1         /users           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/hd11admin   /admin           jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /proc            /proc            procfs Jul 21 08:25 rw
         /dev/hd10opt     /opt             jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/livedump    /var/adm/ras/livedump jfs2   Jul 21 08:25 rw,log=/dev/hd8
         /dev/fslv00      /home            jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv01      /u01/app         jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_backuprootvg /backuprootvg    jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv02      /var/adm/messback jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv03      /home/cores      jfs2   Jul 21 08:25 rw,log=/dev/loglv00
         /dev/fslv04      /home/s/FEATURES jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv05      /home/s/release  jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv06      /www             jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv07      /home/saves      jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv08      /home/sdbr       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/fslv09      /home/sdbc       jfs2   Jul 21 08:25 rw,log=INLINE
         /dev/lv_cme      /www/docs/Rapports-CME jfs2   Jul 21 08:25 rw,log=INLINE
         -hosts           /vhe             autofs Jul 21 08:25 rw,soft,nobrowse,ignore
         -hosts           /net             autofs Jul 21 08:25 ro,soft,nobrowse,ignore

Let's go back on Server A to check what's happening
Code:
p02s:root# cd /home/s/rapports_cme
p02s:root# ls -altr
total 24
drwxrwx---    2 spsy     spec            256 Sep 24 2013  lost+found/
drwxrwsr-x    2 spsy     spec            256 Sep 24 2013  RAPPORTS_ECHANGES/
drwxrwsrwx    2 spsy     spec            256 May 12 14:17 PROG_INT/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 PLAN_RET/
drwxrwsr-x    2 spsy     spec            256 May 12 14:17 BilanCME/
drwxrwsr-x    2 spsy     spec            256 May 28 13:55 PLAN_ANNUEL/
drwxrwsrwx    2 spsy     spec            256 Jun 01 08:02 data_bilancme/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 PROGRAMME_INTÉGRÉ@ -> PROG_INT/
lrwxrwxrwx    1 root     spec              5 Jun 05 11:23 BILAN_PRÉVISIONNEL@ -> GEODE/
lrwxrwxrwx    1 root     spec              8 Jun 05 11:23 BILAN_CMÉ@ -> BilanCME/
drwxrwsr-x   31 spsy     spec           4096 Jun 25 08:20 ../
drwxrwsr-x    2 spsy     spec            256 Jul 09 00:10 GEODE/
drwxrwxr-x   12 spsy     spec           4096 Jul 21 09:47 ./

File is not there either...

Let's try to umount the filesystem and see what lies underneath
Code:
p02s:root# cd /
p02s:root# umount /home/s/rapports_cme
p02s:root# cd /home/s/rapports_cme
p02s:root# ls -altr
total 16
drwxrwsr-x   31 spsy     spec           4096 Jun 25 08:20 ../
-rw-rw-r--    1 spsy     spec             20 Jul 21 09:48 test_file.txt
drwxrwsr-x    2 spsy     spec            256 Jul 21 09:48 ./
p02s:root# cat test_file.txt
test automount path

Here's the file

What I can understand, is the /home/s/rapports_cme filesystem is not mounted correctly by the automount on server B. Is it because server A is already exporting it's parent directory ? I guess. Is it a bug with automount or is it suppose to act like that ?

Last edited by ce9888; 07-21-2015 at 11:31 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

automount

I install an external disk on my sun solaris 8 this went fine and I was able to access all filesystem on the disk. the new disk is mounted on /local then 6 hours later files under /local/files was 1 byte in size at the same time I received the following error message in... (4 Replies)
Discussion started by: hassan2
4 Replies

2. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies

3. UNIX for Advanced & Expert Users

AutoMount

Hi All How do I do a auto mount to a directory in a different unix server. I am using Solaris. Please advise!! TIA Jana (7 Replies)
Discussion started by: janavenki
7 Replies

4. UNIX for Dummies Questions & Answers

Automount issue

Folks; I'm mounting a directory on a different SUSE 10 server from my SUSE server fine. using this mount command: # mount 192.168.132.11:/var/local/new /var/local/new this command above works fine but when i added a new line to my "/etc/fstab" to be mounted automatically every time i... (2 Replies)
Discussion started by: Katkota
2 Replies

5. Shell Programming and Scripting

automount script

I'm attempting to take an fstab that looks something like this: /proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0... (6 Replies)
Discussion started by: unclecameron
6 Replies

6. Solaris

Automount in Solaris 10

Hi friends I'm a newbie trying to automount a nfs shared directory. Below is the configuration I'm using FreeBSD machine as NFS server. IP Address - 192.168.1.60 # cat /etc/exports /shared 192.168.1.50 Solaris 10 as NFS client. IP Address - 192.168.1.50 # cat... (1 Reply)
Discussion started by: pankajj
1 Replies

7. Red Hat

NFS4 Ldap Automount issue

OK, I'm running low on patience with how this is working out. I have a RHEL 5.4 64bit server running 389 directory services and NFS4. I set up the schema for automount, and I am having some issues. I'm relatively new to both LDAP and Automount, and NFS4 has thrown me some curves vs NFS2/3.... (6 Replies)
Discussion started by: mark54g
6 Replies

8. Linux

Urgent :Automount issue

Hi Team, I am trying to delete the clearcase view in linux box. But i cant get, because my hostname is not configure under the at net directory in root dir. Please advice on this. Thanks, Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies

9. AIX

AutoMount in AIX

Hi Admins, I am new to AIX, pls help me on my below doubts 1) I have received below alerts Orange : PORTAL detected Filesystem (/nfs/sources) is 92.07% Utilized Here Orange is server name. When i did df -k in orange i do not see /nfs/sources filesystem in output. Doubts 1) how to... (2 Replies)
Discussion started by: saurabh84g
2 Replies

10. UNIX for Advanced & Expert Users

Automount permission issue

Hi all, I am running CentOS6.3 and NFS is giving me a real hard time here: on my server a folder called /networkh has created with 777 permissions. I have setup NFS server on this server and it is supposed to serve a network. On my client machine I configed my auto.master: /nethome... (1 Reply)
Discussion started by: bashily
1 Replies
All times are GMT -4. The time now is 09:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy