[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19990222: ldm on new Solaris x86 PC at St. Cloud (cont.)



>From: address@hidden
>Organization: St. Cloud State
>Keywords: 199902121723.KAA10662 Solaris installation

Alan-

>Thanks for the Sunday service and for making the changes to .cshrc.
>I was aware that something like this should be done, but my unix skills 
>are fairly minimal.  Your change allows execution of files in the directories
>added to .cshrc without typing the full path name, is that right?

Exactly.  When you install the packages from the Sun Freeware site,
they are usually installed in /usr/local/bin.  Adding /usr/local/bin to the
path definition in .cshrc allows you to find any programs in this directory.

>Concerning things like this, do you have any suggestions for reference books?
>I have "unix system administration handbook" by nemeth et.al and also "the
>unix c shell field guide"  by anderson.  Maybe there are others.

You might try "Unix for Dummies" (no disrespect meant).  I know these
are a pretty popular series, but I don't know about how useful this is.
I think Tony Rockwood at Metro State got this.  You might want to
drop him a line to see if he has recommendations (address@hidden).
I think he is finding that he's learning a lot by having to do
the day to day maintenance of the system.

>As to the size of perl, as far as I know, the process of getting perl and 
>unpacking it went without any problems.  My student worker did some of the
>process, but he did not note any problems.  We will try that step again and
>put
>the new version of perl in the location you noted.  I think /usr/local was the
>place noted in a readme or some example line that was part of the process.  
>Will also have the new version owned by root.

After our phone conversation, it looks like not using pkgadd was the
problem.  Looks like Perl is installed correctly now.  Now that it is
installed, you can delete the file /usr/local/perl-5.  Also, as we
discussed on the phone, it is better to download and install from 
/tmp than from under the user ldm's directory.  As soon as you get
these packages installed (gcc, netscape, perl, etc) you should delete
the downloaded files and directories from /usr/local/ldm.

New topic - Disk setup:

As we discussed on the phone, most of your disk was allocated to /export/home.
Unlike AIX, you cannot just add more space to a filesystem under Solaris.
I talked to Mike about how to do this.  The easiest way for me to figure
this out was to actually do it.  I changed /export/home to be 1Gb and
made a /data partition which is 6 Gb.  The procedure is as follows.  As
root:

1) Unmount /export/home:
    umount /export/home

2) run the format program.
3) select the disk you want to repartition (0 in your case):
4) choose the partition option
5) print out the current table (print).  Yours looked like this:

partition> pr
Current partition table (original):
Total disk cylinders available: 1018 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       3 -   12       78.44MB    (10/0/0)     160650
  1        var    wm      13 -   16       31.38MB    (4/0/0)       64260
  2     backup    wm       0 - 1017        7.80GB    (1018/0/0) 16354170
  3       swap    wu      17 -   36      156.88MB    (20/0/0)     321300
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm      37 -  125      698.14MB    (89/0/0)    1429785
  7       home    wm     126 - 1017        6.83GB    (892/0/0)  14329980
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130

Partition 7 is what was set to home, the partition to change.  

6) Choose 7 to reallocate this partition:

partition> 7
Part      Tag    Flag     Cylinders        Size            Blocks
  7       home    wm     126 - 1017        6.83GB    (892/0/0)  14329980

Enter partition id tag[home]: home
Enter partition permission flags[wm]:   
Enter new starting cyl[126]: 
Enter partition size[14329980b, 892c, 6997.06mb, 6.83gb]: 1.0gb

and set it to be 1.0gb.

7) List the partition table again:

partition> pr
Current partition table (unnamed):
Total disk cylinders available: 1018 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       3 -   12       78.44MB    (10/0/0)     160650
  1        var    wm      13 -   16       31.38MB    (4/0/0)       64260
  2     backup    wm       0 - 1017        7.80GB    (1018/0/0) 16354170
  3       swap    wu      17 -   36      156.88MB    (20/0/0)     321300
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm      37 -  125      698.14MB    (89/0/0)    1429785
  7       home    wm     126 -  256        1.00GB    (131/0/0)   2104515
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130


8) Now I created a new filesystem in partition 4 whihc is unassigned.  Since 
part 7 now ends ends at cylinder 256, and used to end at 1017, I'll allocate
4 to go from 257 to 1017 (761 cylinders):

partition> 4
Part      Tag    Flag     Cylinders        Size            Blocks
  4 unassigned    wm     257 - 1016        5.82GB    (760/0/0)  12209400

Enter partition id tag[unassigned]: 
Enter partition permission flags[wm]: 
Enter new starting cyl[257]: 
Enter partition size[12209400b, 760c, 5961.62mb, 5.82gb]: 761c

9) printing out the new table it looks like:

partition> pr
Current partition table (unnamed):
Total disk cylinders available: 1018 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       3 -   12       78.44MB    (10/0/0)     160650
  1        var    wm      13 -   16       31.38MB    (4/0/0)       64260
  2     backup    wm       0 - 1017        7.80GB    (1018/0/0) 16354170
  3       swap    wu      17 -   36      156.88MB    (20/0/0)     321300
  4 unassigned    wm     257 - 1017        5.83GB    (761/0/0)  12225465
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm      37 -  125      698.14MB    (89/0/0)    1429785
  7       home    wm     126 -  256        1.00GB    (131/0/0)   2104515
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130


10) save the table:

partition> label
Ready to label disk, continue? y

then exit the program.

11) Run the newfs command to create the new file systems:

# newfs /dev/rdsk/c0d0s4
# newfs /dev/rdsk/c0d0s7

12) Since c0d0s7 was the partition for /export/home, then I just have to
remount it:

mount /export/home

13)  Next, edit /etc/vfstab and set up an entry for the new partition.
I just copied the one for /export/home and modified it so /dev/dsk/c0d0s4
(new big partition) was mounted as /data:

/dev/dsk/c0d0s4 /dev/rdsk/c0d0s4        /data   ufs     2       yes     -

14)  Since the ldm expects that ~ldm/data is the same as /var/data and
since you had already run through the steps to create a /var/data/ldm
directory under /var, I had to recreate the /var/data/ldm and /var/data/ldm/logs
directories and redo the step of touching ldmd.log in the latter.

# cd /var/data
# mkdir ldm
# cd ldm
# mkdir logs
# cd logs
# touch ldmd.log
# cd /var/data
# chown -R ldm ldm
# chgrp -R data ldm

A couple of other notes:

1) When you install the ldm-mcidas decoders, follow the instructions
and install them in /usr/local/ldm-mcidas.  This directory should be
owned by the user ldm. Download the tar file to this directory and
unpack it from there. You will create runtime directories like you did
for the ldm.  You will need to add /usr/local/ldm-mcidas/bin to the
path of the user ldm so it can find the decoders.

2) If this is going to be your primary ingest machine that will
be fed from an external site, you will need to have it set up so
a reverse name lookup can be done.  I cannot resolve the name from
the IP or vice-versa.  This needs to be enabled for the upstream
LDM to feed you.  Talk to your network people about having this
machine known to the domain name server (like hobbes is).

If you have any questions, let us know.

Don