Results 1 to 1 of 1
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-11-2012 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 70
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:
1)Code:SU-pharaon:/root# ypwhich -m | head -1 passwd.byname sphinga SU-pharaon:/root# ypwhich pharaon
- 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 ?
- CONTENT OF auto.master NIS TABLE OBTAINED FROM MASTER/SLAVE (sphinga):Code:SU-pharaon:/root# cat /etc/auto_master +auto.master /net -hosts -nosuid,soft
2)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
- 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)
3)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
- 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:
4)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
- 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
5)Code:SU-sphinga:/var/yp/etc# cat auto.indir.users | grep whally whally lecch02:/root_vdm_2/user005/home/whally
- 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:
- DIRECT MAP FILE ON hunlandCode:SU-hunland:/root# ypwhich -m | head -1 passwd.byuid sphinga
- +auto_master NIS MAP IS READEN FROM NIS:
6)Code:SU-hunland:/root# cat /etc/auto_master +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse /lecch lecch_home
- 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 ?) :
- CONTENT OF INDIRECT MAP FROM NIS: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
- AUTO MOUNTER FUNCTION IN PRACTICE: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
8.)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
- 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 ?
- BUT THIS (FOR ANOTHER SUB DIRECTORY UNDER /lecch) RUN AS EXPECTEDCode:SU-hunland:/u/koltas# ls -l /lecch/02/user005/ ^C
- 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


Reply With Quote
