Clonfs1: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Clonfs1 is the main file server for the clon cluster. It holds /home, /local etc directories for all clon machines. It can be managed using link http://clonfs1/na_admin/. Its ''/etc'' directory and volumes are mounted on clon00 and clon10 under ''/mnt/admin''.
'''Renamed to clonfs1a-old !!!'''
 
 
'''/work disk file server'''
 
ssh root@clon00
cd /mnt/admin/clonfs1a-old/etc
add desired machine to the file ''netgroup''
you may need to touch ''exports'' file before and after running ''exportfs -a'' in following section, to enforce mounting permissions propagation
 
ssh -c 3des-cbc root@clonfs1a-old
exportfs -a
modify ''exports'' in above section
exportfs -a
modify ''exports'' back to original
 
 
 
 
'''WAS: Main file server'''
 
Clonfs1 is the main file server for the clon cluster. It holds /home, /local etc directories for all clon machines.
 
To manage, 'ssh root@clonfs1' and do following:
 
* to export partitions: 'exportfs -a'
 
* to increase volume size on 50G: vol size <volume_name> +50g
 
* to check if partition is actually exported to particular machine, go to that machine or any other machine and type:
 
DO NOT KNOW HOW ...
 
* if partition exported but machines has problem mounting it, use following example where machine '129.57.167.184' could not mount:
 
exportfs -c 129.57.167.184 /vol/logs
    exportfs: 129.57.167.184 does not have mount access to /vol/logs (Access denied)
exportfs -f /vol/logs
exportfs -c 129.57.167.184 /vol/logs
    exportfs: 129.57.167.184 has mount access to /vol/logs
 
* use 'help' to see all commands
 
 
 
OBSOLETE: It can be managed using link http://clonfs1/na_admin/. Its ''/etc'' directory and volumes are mounted on clon00 and clon10 under ''/mnt/admin''.
 
'''NOTE''': if exporting ''hostname'' is not registered officially (does not recognized by ''nslookup''), it must be described in clonfs1's ''/etc/hosts'' file !
 
'''NOTE''': after changing ''/etc/netgroup'' or ''/etc/exports'' (see below) do ''ssh root@clonfs1'' and execute command ''exportfs -a''. If not exported, try following trick: add some existing machine (clon10 for example) to the ''/etc/exports'' to all entries, and do ''exportfs -a''. Next time change clon10 to clon00, and so on.


Clonfs1 has following volumes:
Clonfs1 has following volumes:


apps - contains machine-dependent packages not installed into /usr/local area
'''apps (backup by CC)''' - contains machine-dependent packages not installed into /usr/local area
 
'''archives (backup by CC)''' - contains occupancy/recon plots and other files we want to preserve
 
'''clas (backup by CC)''' - contains clas-specific contents (''/usr/clas/parms'', ''/usr/clas/devel'' etc)
 
'''clas12 (backup by CC)''' - contains clas12-specific contents (''parms'', ''coda'' etc)
 
'''clonweb (backup by CC)''' - directory mounted on ''clonweb'' machine as ''/www''
 
'''clonwiki (backup by CC)''' - directory mounted on ''clonwiki'' machine as ''/wiki''
 
'''downloads (backup by CC)''' - contains various downloaded files


archives - contains occupancy/recon plots and other files we want to preserve
'''home (backup by CC)''' - contains home directories for all clon users


clon - contains clas-specific contents (/usr/clas/parms etc)
'''local (backup by CC)''' - contains machine-dependent /usr/local/bin, /usr/local/lib etc directories for various operating systems used on clon machines


downloads - contains various downloaded files
'''logs''' - contains log files from various clon systems


home - contains home directories for all clon users
'''mysql (backup by CC)''' - contains backups from mysql server machine(s)


local - contains machine-dependent /usr/local/bin, /usr/local/lib etc directories for various operating systems used on clon machines
'''scratch''' - scratch disk


logs - contains log files from various clon systems
'''work''' - work disk


mysql - contains backups from mysql server machine(s)
'''/etc/netgroup''' example:


scratch - scratch disk
main_servers    (clon00,,) (clon10,,) # main server machines, mounts clonfs1 volumes at /mnt/admin
SunOS_sun4u    (clon00,,) (clon01,,) (clon02,,) (clon03,,) (clon05,,) (clon06,,) (clon10,,) (clon20,,)
      (clasonl1,,) (wolfram,,)      # Sparc machines under Solaris
SunOS_i86pc    (clondaq1,,) (clondaq2,,) (clonmon1,,) (claspc7,,)      # Intel machines under Solaris
Linux_i686      (clonusr1,,) (clon04,,) (clonpc1,,) (clonpc2,,) (clonpc3,,) (clonpc6,,) (clonpc8,,)
      (clonmon-intranet,,) (clonweb,,) (clonwiki,,) (clondb2,,) (torusmonitor,,) # 32-bit Intel machines under Linux
Linux_x86_64    (clondb1,,) # 64-bit Intel machines under Linux
Linux_ppc      (clonpc4,,) # PowerPC machines under Linux
Darwin_powerpc  (clonpc7,,) # PowerPC machines under Mac OS X 
clons  SunOS_sun4u SunOS_i86pc Linux_i686 Linux_x86_64 Linux_ppc Darwin_powerpc
rocs    (bonuspc1,,) (bonuspc2,,) (clastrig2,,) (clas_sc1,,) (clastrig1,,) (camac2,,) (camac1,,) (cc1,,)
      (croctest1,,) (croctest2,,) (croctest3,,) (croctest4,,) (croctest5,,) (dc1,,) (dc10,,) (dc11,,) (dc2,,)
      (dc3,,) (dc4,,) (dc5,,) (dc6,,) (dc7,,) (dc8,,) (dc9,,) (ec1,,) (ec2,,) (dccntrl,,) (lac1,,) (pretrig1,,)
      (pretrig2,,) (sc1,,) (scaltag,,) (tage,,) (scaler1,,) (scaler2,,) (scaler3,,) (scaler4,,) (polar,,)
      (sc-laser1,,) (camac3,,) (camac4,,) 


ssa - small partition to manage silo-related links
'''/etc/exports''' example:


work - work disk
/vol/vol0      -sec=sys,rw=clon00:clon10:ccs10,root=clon00:clon10:ccs10,nosuid
/vol/home      -sec=sys,rw=clons,anon=0
/vol/local      -sec=sys,rw=clons,anon=0
/vol/downloads  -sec=sys,rw=clons,anon=0
/vol/clas      -sec=sys,rw=clons,anon=0
/vol/clas12    -sec=sys,rw=clons,anon=0
/vol/apps      -sec=sys,rw=clons,anon=0
/vol/work       -sec=sys,rw=clons,anon=0
/vol/scratch    -sec=sys,rw=clons,anon=0
/vol/logs      -sec=sys,rw=clons,anon=0
/vol/mysql      -sec=sys,rw=clons,anon=0
/vol/archives  -sec=sys,rw=clons,anon=0
/vol/clonweb    -sec=sys,rw=clons,anon=0
/vol/clonwiki  -sec=sys,rw=clons,anon=0

Latest revision as of 14:07, 15 April 2024

Renamed to clonfs1a-old !!!


/work disk file server

ssh root@clon00
cd /mnt/admin/clonfs1a-old/etc
add desired machine to the file netgroup
you may need to touch exports file before and after running exportfs -a in following section, to enforce mounting permissions propagation
 
ssh -c 3des-cbc root@clonfs1a-old
exportfs -a
modify exports in above section
exportfs -a
modify exports back to original



WAS: Main file server

Clonfs1 is the main file server for the clon cluster. It holds /home, /local etc directories for all clon machines.

To manage, 'ssh root@clonfs1' and do following:

  • to export partitions: 'exportfs -a'
  • to increase volume size on 50G: vol size <volume_name> +50g
  • to check if partition is actually exported to particular machine, go to that machine or any other machine and type:
DO NOT KNOW HOW ...
  • if partition exported but machines has problem mounting it, use following example where machine '129.57.167.184' could not mount:
exportfs -c 129.57.167.184 /vol/logs
   exportfs: 129.57.167.184 does not have mount access to /vol/logs (Access denied)
exportfs -f /vol/logs
exportfs -c 129.57.167.184 /vol/logs
   exportfs: 129.57.167.184 has mount access to /vol/logs
  • use 'help' to see all commands


OBSOLETE: It can be managed using link http://clonfs1/na_admin/. Its /etc directory and volumes are mounted on clon00 and clon10 under /mnt/admin.

NOTE: if exporting hostname is not registered officially (does not recognized by nslookup), it must be described in clonfs1's /etc/hosts file !

NOTE: after changing /etc/netgroup or /etc/exports (see below) do ssh root@clonfs1 and execute command exportfs -a. If not exported, try following trick: add some existing machine (clon10 for example) to the /etc/exports to all entries, and do exportfs -a. Next time change clon10 to clon00, and so on.

Clonfs1 has following volumes:

apps (backup by CC) - contains machine-dependent packages not installed into /usr/local area

archives (backup by CC) - contains occupancy/recon plots and other files we want to preserve

clas (backup by CC) - contains clas-specific contents (/usr/clas/parms, /usr/clas/devel etc)

clas12 (backup by CC) - contains clas12-specific contents (parms, coda etc)

clonweb (backup by CC) - directory mounted on clonweb machine as /www

clonwiki (backup by CC) - directory mounted on clonwiki machine as /wiki

downloads (backup by CC) - contains various downloaded files

home (backup by CC) - contains home directories for all clon users

local (backup by CC) - contains machine-dependent /usr/local/bin, /usr/local/lib etc directories for various operating systems used on clon machines

logs - contains log files from various clon systems

mysql (backup by CC) - contains backups from mysql server machine(s)

scratch - scratch disk

work - work disk

/etc/netgroup example:

main_servers    (clon00,,) (clon10,,) # main server machines, mounts clonfs1 volumes at /mnt/admin
SunOS_sun4u     (clon00,,) (clon01,,) (clon02,,) (clon03,,) (clon05,,) (clon06,,) (clon10,,) (clon20,,)
     (clasonl1,,) (wolfram,,)       # Sparc machines under Solaris
SunOS_i86pc     (clondaq1,,) (clondaq2,,) (clonmon1,,) (claspc7,,)      # Intel machines under Solaris
Linux_i686      (clonusr1,,) (clon04,,) (clonpc1,,) (clonpc2,,) (clonpc3,,) (clonpc6,,) (clonpc8,,)
     (clonmon-intranet,,) (clonweb,,) (clonwiki,,) (clondb2,,) (torusmonitor,,) # 32-bit Intel machines under Linux
Linux_x86_64    (clondb1,,) # 64-bit Intel machines under Linux
Linux_ppc       (clonpc4,,) # PowerPC machines under Linux
Darwin_powerpc  (clonpc7,,) # PowerPC machines under Mac OS X   
clons   SunOS_sun4u SunOS_i86pc Linux_i686 Linux_x86_64 Linux_ppc Darwin_powerpc
rocs    (bonuspc1,,) (bonuspc2,,) (clastrig2,,) (clas_sc1,,) (clastrig1,,) (camac2,,) (camac1,,) (cc1,,)
     (croctest1,,) (croctest2,,) (croctest3,,) (croctest4,,) (croctest5,,) (dc1,,) (dc10,,) (dc11,,) (dc2,,)
     (dc3,,) (dc4,,) (dc5,,) (dc6,,) (dc7,,) (dc8,,) (dc9,,) (ec1,,) (ec2,,) (dccntrl,,) (lac1,,) (pretrig1,,)
     (pretrig2,,) (sc1,,) (scaltag,,) (tage,,) (scaler1,,) (scaler2,,) (scaler3,,) (scaler4,,) (polar,,)
     (sc-laser1,,) (camac3,,) (camac4,,)  

/etc/exports example:

/vol/vol0       -sec=sys,rw=clon00:clon10:ccs10,root=clon00:clon10:ccs10,nosuid
/vol/home       -sec=sys,rw=clons,anon=0
/vol/local      -sec=sys,rw=clons,anon=0
/vol/downloads  -sec=sys,rw=clons,anon=0
/vol/clas       -sec=sys,rw=clons,anon=0
/vol/clas12     -sec=sys,rw=clons,anon=0
/vol/apps       -sec=sys,rw=clons,anon=0
/vol/work       -sec=sys,rw=clons,anon=0
/vol/scratch    -sec=sys,rw=clons,anon=0
/vol/logs       -sec=sys,rw=clons,anon=0
/vol/mysql      -sec=sys,rw=clons,anon=0
/vol/archives   -sec=sys,rw=clons,anon=0
/vol/clonweb    -sec=sys,rw=clons,anon=0
/vol/clonwiki   -sec=sys,rw=clons,anon=0