Skip to content

Carleton Astronet Admin Log Posts

IDL Arecibo Phil routine “.h” file directory moved slightly to work on algol

NOTE: SEE BOTTOM OF THIS POST FOR UPDATE:

i moved the h subdirectory below rather than at the same level as the gen directory. now idl on algol finds it and starts up fine with phil’s routines:

Now on algol at:

/data/psrdata/usr4/OH/wapp03/philstuff/gen/h

rather than at

as on arcturus at

/data/psrdata/usr4/OH/wapp03/philstuff/h

——————————-
but note that in late May 2006 JMW realized it is more subtle than this:

in /data/psrdata/usr4/OH/wapp03/philstuff/gen/

in aodefdir.pro, i had to define the path to

/data/psrdata/usr4/OH/wapp03/philstuff/

at which point all path difficulties cleared up. so the above “fix” is obsolete (if it ever worked!) In future installations, it should not be necessary to move the h directory.

Converting RAID to LVM-on-RAID

OUT OF DATE as of 2008-11-01.

We decided to convert the Raid1 array to LVM instead of a monolithic partition. This will make life easier.

Commands:

  1. pvcreate /dev/md0
    makes a physical volume out of the RAID array device
  2. vgcreate VolGroup01 /dev/md0
    creates a new volume group to which we can add logical volumes
  3. Use Redhat Logical Volume Management tool to create partitions on the new device
    • /docs (5 gigs)
    • /home (50 gigs)
    • /etc/secret (10 gigs)
    • /data (399 gigs)
  4. Modified /etc/exports on Algol to export the new partitions
  5. Modified /etc/fstab on the client computers to use the new partitions
  • mkdir /docs
  • mkdir /data
  • added lines to /etc/fstab:
    algol:/data /data nfs defaults 1 1
    algol:/docs /docs nfs defaults 1 1
  1. Un-tarred the backups from /bkup, which I created with the command:
    cd /bkup & tar -czvpf home.tgz /home
  2. Untar by going to desired directory and running:
    tar -xzvpf /bkup/secret.tgz
    Both of these commands put the directory INTO the desired directory. Once unpacked, it’s necessary to move the contents to the proper location.
  3. Modified /etc/cron.weekly/quotacheck.cron to be:
    #!/bin/bash
    # Update the database that keeps track of quotas
    # Created by Mark Knight (4.13.06)
    # Modified by Mark Knight (5.06.06)
    quotaoff -a
    quotacheck -agum
    quotaon -a

    exit 0

  4. Also, had to modify /etc/fstab to add quotas back on to the new mount line for /home

All in all, not that hard. The permissions are all correct, so hopefully this was just as easy & painless as I think it was.

Changes to Algol

OUT OF DATE as of 2008-11-01.

Modified Algol:

  1. Added to /etc/hosts:
    137.22.1.23 boston-ac.its.carleton.edu boston-ac boston
    137.22.6.48 rigel.physics.carleton.edu rigel
    137.22.6.10 alcor.physics.carleton.edu alcor
    137.22.6.11 mizar.physics.carleton.edu mizar
    137.22.6.12 castor.physics.carleton.edu castor
    137.22.6.13 pollux.physics.carleton.edu pollux
    137.22.6.15 canopus.physics.carleton.edu canopus
    137.22.6.13 pollux.physics.carleton.edu pollux
    137.22.6.72 sirius.physics.carleton.edu sirius
    137.22.6.89 mirzam.physics.carleton.edu mirzam
    137.22.6.71 deneb.physics.carleton.edu deneb
  2. Add line to /etc/exports:
    /home @physics(rw,sync,no_root_squash)
  3. Using system-config-services, enable and start nfs daemon

Configure hosts.allow & hosts.deny

hosts.allow:

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the ‘/usr/sbin/tcpd’ server.
#
sshd: ALL
ALL: .physics.carleton.edu
ALL: LOCAL
ALL: 127.0.0.1

hosts.deny

#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the ‘/usr/sbin/tcpd’ server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
ALL: ALL

Set up group, passwd, shadow

OUT OF DATE as of 2008-11-01.

Put script in cron.daily on Algol:
#!/bin/bash
# Copy /etc/passwd /etc/shadow /etc/groups to /etc/secret directory
# Created by:
# Mark Knight
# 4/25/06
/bin/cp /etc/shadow /etc/secret/
/bin/cp /etc/passwd /etc/secret/
/bin/cp /etc/group /etc/secret/
/bin/chmod -R u=r,go= /etc/secret/
exit 0

Copy script to local /etc/ folder on clients:

#!/bin/bash
# Copy /etc/passwd /etc/shadow /etc/groups from /etc/secret directory
# Created by:
# Mark Knight
# 4/25/06

/bin/cp /etc/secret/shadow /etc/
/bin/cp /etc/secret/passwd /etc/
/bin/cp /etc/secret/group /etc/

/bin/chmod u=rw,go=r /etc/group
/bin/chmod u=rw,go=r /etc/passwd
/bin/chmod u=r,go= /etc/shadow

exit 0
Include client computer in Algol’s /etc/exports, and put /etc/secret in client computer’s NFS mounts in /etc/fstab.

Old system logs, old backup lists, old hints

To access the old system log, which still has useful info, go to /docs/sysinfo/sulog. New entries should NOT be placed there but rather here on this blog that you are reading.

(For much of May and until June 7, it was on algols /data/arcturus/doks/sysinfo/sulog.–jmw)

(note that even earlier sulogs are in /docs/thuban-doks/sysinfo)

(other old gems like backup lists are under /docs/thuban-doks, like ourhints and dumps)

IDL Goddard Library updated 2018

Updated 2018 June: for  idl 6.3 on canopus and deneb , goddard libe is now at

/usr/local/exelis/idl83/lib/goddard/pro

It was never installed on mirzam idl 8.6 but when it is (soon) it will be in a similar place except replace “excelis” with “harris”.  –jmw

 

Drew and Joel brought in the IDL NASA GSFC Library, as the Heiles tutorial uses a routine from it to enable reading columns from a table. There are many other excellent IDL astro routines in it.

We gunzipped and untarred the download into

algols /usr/local/rsi/idl_6.3/lib/goddard as of May 2006,

(((((((on original post said we put it into:/space/share/astro/idl/idl_6.2/lib/goddard))))))
and after adding Sirius and Mirzam licenses we had to go to algols /usr/local/rsi/idl_6.3/lib/ as root and

scp -r goddard root@mirzam:/usr/local/rsi/idl_6.3/lib/

and

scp -r goddard root@sirius:/usr/local/rsi/idl_6.3/lib/

Note that inside ~.idlstartup, one has
!path = expand_path(‘+/gig1/usr4/OH/wapp03/philstuff/gen’)+’:’+ !path

which (because of the “+”) takes all subdirectories containing files ending in .pro or .sav from the above directories. I believe that the above is operating also on the unix path as well, though the parenthesis would suggest no. Maybe !path is an already expand_path-ed version of unix path.

anyway this works. we can access the Goddard library from inside IDL. But also note that its location suggests we may need/want to move it once we upgrade to next version of IDL.

NOTE ADDED JUNE 2008: DONT CONFUSE GODDARD LIBS WITH GBTIDL!

AS FAR AS I KNOW, WE USE STD GODDARD LIBS WITHOUT MODS.

(We DID have to mod GBTIDL – see above posts.)

Create a new shared directory

To create the directory “test” in /home, execute as root:

  1. mkdir /home/test
  2. chmod -vcR u=rwx,g=rwxs,o=- /home/test
    OR
    chmod -R 2770 /home/test
    (these two commands both do the same thing)
  3. groupadd testgrp
    (create a new group.)
  4. chgrp -vcR testgrp /home/test
  5. usermod -a -G testgrp knightm
    (add user knightm to the group so he has permissions. Repeat for all users in group. To check, run “groups knightm”)