Skip to content

Month: May 2006

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