Naming services + Automounter


 
Thread Tools Search this Thread
Special Forums IP Networking Naming services + Automounter
# 1  
Old 08-12-2012
Naming services + Automounter

Hi gurus, I am trying to understand the enviroment which we are using. The fact that I am asking is that this is production enviroment and I cannot change anything to experiment. Following servers are somehow related to each other, please help me figure out if my conclusions are correct.


- sphinga IS NIS MASTER FOR pharaon
- pharaon IS NIS SLAVE AND ALSO NIS CLIENT TO ITSELF:
Code:
SU-pharaon:/root# ypwhich -m | head -1
passwd.byname sphinga
SU-pharaon:/root# ypwhich
pharaon

1)
- pharaon AUTOMOUNTER ALSO READS NIS MAP CALLED auto.master PROVIDED BY NIS MASTER/SLAVE (sphinga)
- WHERE ARE ENTRIES CONTAINED IN auto.master NIS MAP MOUNTED?
- IT IS MATTER OF CONTENT OF NIS MAP ITSELF OR SOME LOCAL AUTOMOUNTER CONFIGURATION ?
Code:
SU-pharaon:/root# cat /etc/auto_master
+auto.master
/net -hosts -nosuid,soft

- CONTENT OF auto.master NIS TABLE OBTAINED FROM MASTER/SLAVE (sphinga):
Code:
SU-pharaon:/root# ypcat auto.master
/etc/auto.direct        -rw,soft
-hosts                  -ro,soft,nosuid
auto.indir.users        -rw,soft,nosuid
auto.indir.mo2o         -rw,soft

2)
- HOME DIRECTORY OF whally /u/whally IS MOUNTED FROM lecch02 WHICH IS SOME EXTERNAL STOREGE TYPE (PLEASE SEE BELLOW)
- MOUNT POINT IS DETERMINED BY MAP PROVIDED FROM NIS MASTER ? (PLEASE SEE BELLOW)
Code:
SU-pharaon:/# cd ~whally
SU-pharaon:/u/whally# pwd
/u/whally
SU-pharaon:/u/whally# mount | grep `pwd`
/u/whally on lecch02:/root_vdm_2/user005/home/whally nosuid,soft,nodevs,rsize=32768,wsize=32768,NFSv3 on Thu Aug  9 13:48:10 2012

3)
- DIRECT MAP ON MASTER (sphinga) WILL BE PROPAGATED THROUGHT NIS TO pharaon
- OR MORE CLEARLY, THE DIRECT MAP IS PROPAGATED AFTER THE INDIRECT MAP RECORDS ARE "EXPANDED"
- IF THERE WAS NO +auto.master ENTRY IN CLIENTS /etc/auto_master THE EXPORTING THIS FILE ON NIS MASTER WOULD HAVE ANY SENSE ?
- FOLLOWING LINES ARE NEARLY SIMMILAR TO ypcat auto.master ON NIS CLIENT:
Code:
SU-sphinga:/var/yp/etc# cat auto.master
/-      /etc/auto.direct        -rw,soft
/net    -hosts                  -ro,soft,nosuid
/u      auto.indir.users        -rw,soft,nosuid
/mo2o   auto.indir.mo2o         -rw,soft

4)
- INDIRECT MAP (THOSE THAT WILL BE "EXPANDED") ON NIS MASTER
- SO WHATEVER IS EXPORTED ON "lecch02:/root_vdm_2/user005/home/whally" IT WILL BE MOUNTED UNDER /u/whally
- BECAUSE OF "/u auto.indir.users -rw,soft,nosuid" ENTRY IN DIRECT MAP
Code:
SU-sphinga:/var/yp/etc# cat auto.indir.users | grep whally
whally        lecch02:/root_vdm_2/user005/home/whally

5)
- WHERE DOES SOLARIS HAVE NIS CONFIG FILE (LINUX HAS /etc/yp.conf), WHERE IS DECLARED WHICH FILES WILL BE NIS MAPS ETC. ?
- HOW TO DETERMINE WHICH NIS VERSION IS ACTUALLY RUNNING ?
- HOW TO FIND MASTERs/SLAVEs CLIENTS ?
- WHAT IF NIS MASTER MAP CONTAINS "/u" AS A MOUNT POINT DIRECTORY BUT CLIENT AUTOMOUNTER WHICH READS THIS MAP DO NOT HAVE "/u" DIRECTORY CREATED, WILL IT BE CREATED ON CLIENT AUTOMATICALLY ?

################################
#HERE IS ANOTHER EXAMPLE OF ENVIROMENT: #
################################


sphinga IS NIS MASTER FOR hunland:
Code:
SU-hunland:/root# ypwhich -m | head -1
passwd.byuid sphinga

- DIRECT MAP FILE ON hunland
- +auto_master NIS MAP IS READEN FROM NIS:
Code:
SU-hunland:/root# cat /etc/auto_master
+auto_master
/net            -hosts          -nosuid,nobrowse
/home           auto_home       -nobrowse
/lecch          lecch_home

6)
- lecch IS PROBABLY SOME TYPE OF STORAGE (I DONT HAVE ACCESS ON IT)
- THIS IS WEIRD SYNTAX WHICH I DID NOT FIND IN MAN PAGES, HOW ARE THOSE DIRECTORIES MOUNTING ?
- WHAT I HAVE FIGURED IS THAT THET ARE ALL MOUNTED UNDER /lecch (BECAUSE OF "/lecch lecch_home" ENTRY IN DIRECT MAP) BUT WHAT A WIERD SYNTAX ?
- IS THE BACKSLASH IN CONFIG FILE ONLY THE ESCAPING OF NEW LINE CHARACTER ?
Code:
SU-hunland:/root# cat /etc/lecch_home
01 \
        /user001        lecch01:/root_vdm_1/user001 \
        /user002        lecch01:/root_vdm_1/user002 \
        /user003        lecch01:/root_vdm_1/user003
02 \
        /user004        lecch02:/root_vdm_2/user004 \
        /user005        lecch02:/root_vdm_2/user005 \
        /user006        lecch02:/root_vdm_2/user006 \
        /tml3cel        tml3cel01:/home
03 \
        /user007        lecch03:/root_vdm_3/user007 \
        /user008        lecch03:/root_vdm_3/user008 \
        /user009        lecch03:/fs_unix009/user009 \
        /FS_ISG_Users   lecch03:/FS_ISG_Users


7)
- CONTENT OF DIRECT MAP FROM NIS (WHY auto.master NOT auto_master ?) :
Code:
SU-hunland:/root# ypcat auto_master
no such map in servers domain
SU-hunland:/root# ypcat auto.master
auto.indir.mo2o         -rw,soft
-hosts                  -ro,soft,nosuid
auto.indir.users        -rw,soft,nosuid
/etc/auto.direct        -rw,soft

- CONTENT OF INDIRECT MAP FROM NIS:
Code:
SU-hunland:/root# ypcat auto.indir.users | egrep 'koltas|sozdar'
lecch02:/root_vdm_2/user005/home:koltas
lecch03:/root_vdm_3/user007/home:sozdar

- AUTO MOUNTER FUNCTION IN PRACTICE:
Code:
SU-hunland:/root# mount | grep koltas
SU-hunland:/root# cd ~koltas
SU-hunland:/u/koltas# mount | grep koltas
/u/koltas on lecch02:/root_vdm_2/user005/home/koltas remote/read/write/nosetuid/nodevices/rstchown/soft/xattr/dev=53ae5b9 on Thu Aug  9 16:23:14 2012

8)
- IS SAFE TO UMOUNT /u/koltas MANUALY THROUGHT umount COMMAND EVEN IF IT WAS PREVIOUS MOUNTED VIA AUTOMOUTER ?
- /u/* ENTRIES ARE ALSO MOUNTED IN /lecch DIRECTORY OR POSSIBLY BETTER THE /lecch ENTRIES ARE ALSO MOUNTED UNDER /u ?
- HOW TO FIND CORRESPONDING /lecch/* DIRECTORY TO /u/koltas DIRECTORY ? (PLEASE SEE BELLOW)


9)
- NOW WE ARE EXPERIENCING PROBLEMS WITH SOME /lecch SUBDIRECTORIES BUT IT USED TO WORK, THIS COMMAND SIMPLY HANGS - WHAT COULD BE POSSIBLE PROBLEM ?
Code:
SU-hunland:/u/koltas# ls -l /lecch/02/user005/
^C

- BUT THIS (FOR ANOTHER SUB DIRECTORY UNDER /lecch) RUN AS EXPECTED
- SAME QUESTION AS ABOVE: WHY ARE ALL USERS DURING SWITCHING TO THEIR HOME DIRECTORIES MOUNTED UNDER "/u" WHERE IS THIS SPECIFIED ?
Code:
SU-hunland:/root# cd /lecch/03/user007/home/sozdar
SU-hunland:/lecch/03/user007/home/sozdar# mount | grep sozdar
SU-hunland:/lecch/03/user007/home/sozdar# cd ~sozdar
SU-hunland:/u/sozdar# mount | grep sozdar
/u/sozdar on lecch03:/root_vdm_3/user007/home/sozdar remote/read/write/nosetuid/nodevices/rstchown/soft/xattr/dev=53ae5c7 on Thu Aug  9 16:33:49 2012



Many thanks for all your corrections

---------- Post updated 08-13-12 at 12:34 AM ---------- Previous update was 08-12-12 at 01:09 AM ----------

Nobody Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

2. Red Hat

How to mount NFS using automounter(autofs)?

I have an nfs at 192.168.1.10:/home/vm1/Desktop/nfs and will like to mount locally to /home/vm1/Desktop/nfs-mount using automounter...need help doing do What i did $cat /etc/auto.master /home/vm1/Desktop /etc/auto.nfs $cat /etc/auto.nfs nfs-bind -fstype=nfs ... (3 Replies)
Discussion started by: nokia3310
3 Replies

3. Red Hat

Restart of services if port no is changed in /etc/services in RHEL

I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed. I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed. Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies

4. Red Hat

Automounter floods ioctl and futex error messages

Hi! I have a wondering regarding the syscalls automounter floods out when running strace on the process, are the below ioctl & futex messages bad? and is there any way to investigate em deeper? ioctl(3, 0xffffffffc018937c, 0x417a8020) = -1 EAGAIN (Resource temporarily unavailable) ioctl(3,... (5 Replies)
Discussion started by: Esaia
5 Replies

5. Programming

Naming a socket

Im not very experienced with C so this is probably a basic question. I have a script that opens up 5 sockets, it then runs through a loop and on a given event reconnects to the relevant socket and sends some data. The socket to be reconnected to is kept track of with a 'count' variable. The sockets... (5 Replies)
Discussion started by: geester
5 Replies

6. AIX

NIS and automounter...

Have an AIX 5.2 box. I had automounter already setup to control /home using /etc/auto_home as an indirect automount map. Then we added NIS. We have it working, but for some reason, the NIS table auto.home seems to override /etc/auto_home entries. Of course, there are some duplicates... (2 Replies)
Discussion started by: Garry_Garrett
2 Replies

7. UNIX for Dummies Questions & Answers

automounter

Hi ALL, Does anyone know how automounting can be disabled in solaris? (I need to mount the home directory on to a sun machine from another machine. So I run something like mount another_machine:/home /home (on my sun) however i get an error saying device busy) I was told automouting... (1 Reply)
Discussion started by: rkap
1 Replies

8. Linux

How to discover what naming services are available

Hello All, A number of UNIX platforms currently bundle clients for the NIS, NIS+, and LDAP services. I'd like to know how to discover what naming services are available. E.g., results : ============================= URL: service:naming-directory:nis://192.168.1.100/eng.wiz.com ... (0 Replies)
Discussion started by: test111111
0 Replies

9. UNIX for Advanced & Expert Users

Controller Naming

Hello all, How does the Solaris identifies the controller subscript ? ( like c0txdxs0 or c1txdxsx ?? ) I have a unix box ( Ultra 30) running with 2.5.1. When I connected an external hard disk to the on-board scsi port, it got identified as c0t1dxsx... (... (1 Reply)
Discussion started by: shibz
1 Replies

10. UNIX for Dummies Questions & Answers

automounter

I have this question in my study guide could anyone please help me with the answer and (explicit) explanation. hostname: HOSTONE automounter file: /etc/auto.home entry: scps HOSTTWO:/export/home/scps commands executed on HOSTONE, mark all commands where the automounter will be invoked. ... (3 Replies)
Discussion started by: almendrita
3 Replies
Login or Register to Ask a Question