Automounts: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
Line 101: Line 101:
  cd /mnt
  cd /mnt
  ln -s /misc/logs logs
  ln -s /misc/logs logs
ln -s archives /misc/archives

Revision as of 14:16, 5 January 2009

Solaris

Solaris automounts on CLON cluster controls by following files:

/etc/auto_master

/-      /etc/auto_direct
/-      auto_direct.ep
/u      auto.u.ep
/w      auto.w.ep

/etc/auto_direct (replace SunOS_sun4u by SunOS_i86pc for Opteron/Intel-based Solaris machines)

#
# auto_direct
#
#machine-dependent system directories
/apps                 -rw,bg     clonfs1:/vol/apps/SunOS_sun4u
/usr/local            -rw,bg     clonfs1:/vol/local/SunOS_sun4u
#machine-independent system directories
/mnt/downloads        -rw,bg     clonfs1:/vol/downloads
/home                 -rw,bg     clonfs1:/vol/home
/work                 -rw,bg     clonfs1:/vol/work
/scratch              -rw,bg     clonfs1:/vol/scratch
#machine-independent clas directories
/usr/clas             -rw,bg     clonfs1:/vol/clas
/mnt/archives         -rw,bg     clonfs1:/vol/archives
/mnt/logs             -rw,bg     clonfs1:/vol/logs
#
#some machines are using following mounts from clon10
/data                 -rw,bg     clon10:/data
/raidold              -rw,bg     clon10:/raidold
#clon00/clon10 admin clonfs1/clonfs2 mounts
/mnt/admin/clonfs2	      -rw,bg  clonfs2:/
/mnt/admin/clonfs1            -rw,bg  clonfs1:/
/mnt/admin/clonfs1-apps       -rw,bg  clonfs1:/vol/apps
/mnt/admin/clonfs1-archives   -rw,bg  clonfs1:/vol/archives
/mnt/admin/clonfs1-clas       -rw,bg  clonfs1:/vol/clas
/mnt/admin/clonfs1-clonweb    -rw,bg  clonfs1:/vol/clonweb
/mnt/admin/clonfs1-clonwiki   -rw,bg  clonfs1:/vol/clonwiki
/mnt/admin/clonfs1-downloads  -rw,bg  clonfs1:/vol/downloads
/mnt/admin/clonfs1-home       -rw,bg  clonfs1:/vol/home
/mnt/admin/clonfs1-local      -rw,bg  clonfs1:/vol/local
/mnt/admin/clonfs1-logs       -rw,bg  clonfs1:/vol/logs
/mnt/admin/clonfs1-mysql      -rw,bg  clonfs1:/vol/mysql
/mnt/admin/clonfs1-scratch    -rw,bg  clonfs1:/vol/scratch
/mnt/admin/clonfs1-work       -rw,bg  clonfs1:/vol/work
#

Linux

Linux automounts on CLON cluster controls by following files:

/etc/auto.master

/u      auto.u.bb    --timeout 0 -DOSNAME=Linux-RHEL4
/w      auto.w.bb -v -d  -g
/misc	/etc/auto.misc

/etc/auto.misc (replace Linux_i686 by Linux_ppc or Linux_x86_64 for corresponding machines)

#
# auto.misc
#
cd		-fstype=iso9660,ro,nosuid,nodev	:/dev/cdrom
#machine-dependent system directories
apps            -rw,bg     clonfs1:/vol/apps/Linux_i686
local           -rw,bg     clonfs1:/vol/local/Linux_i686
#machine-independent system directories
downloads       -rw,bg     clonfs1:/vol/downloads
home            -rw,bg     clonfs1:/vol/home
work            -rw,bg     clonfs1:/vol/work
scratch         -rw,bg     clonfs1:/vol/scratch
#machine-independent clas directories
clas            -rw,bg     clonfs1:/vol/clas
archives        -rw,bg     clonfs1:/vol/archives
logs            -rw,bg     clonfs1:/vol/logs
#
#clonweb only
clonweb         -rw,bg     clonfs1:/vol/clonweb
#clondb1 only
mysql         -rw,bg     clonfs1:/vol/mysql

Linux symbolic links (because of Linux automount limitations we cannot do the same as on Solaris, must use symbolic links)358-3042,

cd /
mv home home.orig
ln -s /misc/apps apps
ln -s /misc/home home
ln -s /misc/work work
ln -s /misc/scratch scratch
ln -s /usr/clas/archives/hist hist
cd /usr
mv local local.orig
ln -s /misc/local local
ln -s /misc/clas clas
cd /mnt
ln -s /misc/logs logs
ln -s archives /misc/archives