Archive for June, 2012

To run a kickstart installation for RHEL6, boot as usual. At the window “Welcome to Red Hat Enterprise Linux 6.0”, select “Install or upgrade an existing system”. Press the tab key to stop the boot process. You should be presented with a prompt that looks like this:

> vmlinuz initrd=initrd.img

Add your kickstart information to the end of this prompt. So, it should look something like this:

> vmlinuz initrd=initrd.img linux ks=http://rhel6.example.com/ks/cfg/org/24/label/kickstart_file 
ip=192.168.4.45 
netmask=255.255.255.0 
gateway=192.168.4.1 
dns=192.168.5.14

(all on one line)

[mh@sh ~/latex]$ latex intro.tex
[mh@sh ~/latex]$ dvips -o intro.ps intro.dvi
[mh@sh ~/latex]$ ps2pdf intro.ps

A student wanted the latest version of ROOT added to the ups database. The software was already installed in /cdf/code/cdfsoft/root, but didn’t show up with ups list -a root. To fix this, I became the owner of all our cdf software and ran the following command:

ups declare root v_5_22_00j -r root/v5_22_00j-GCC_3_4_6/Linux+2.6 -f Linux+2 -z /cdf/code/cdfsoft/products/upsdb -m root.table -q GCC_3_4_6

It took a few times to get this correct. If you make a mistake you can run the undeclare command, or even easier, just delete the file in /cdf/code/cdfsoft/products/upsdb/root/v_5_22_00j and then run the declare command again.

All the software is installed in /cdf/code/cdfsoft/products. Then look in root/v5_22_00j-GCC_3_4_6 to find that version. The important bit for ups is the table file, which in this case is in /cdf/code/cdfsoft/products/root/v5_22_00j-GCC_3_4_6/Linux+2.6/ups/root.table.

[/ups]$ more root.table 
File    = table
Product = root

Group:

  Flavor     = ANY
  Qualifiers = "GCC_3_4_6"

  Flavor     = ANY
  Qualifiers = "GCC_3_4_6:debug"

  Flavor     = ANY
  Qualifiers = "64bit:GCC_3_4_6"

  Flavor     = ANY
  Qualifiers = "64bit:GCC_3_4_6:debug"

Common:
  Action = setup
    setupEnv()
    prodDir()
    envSet(ROOTSYS,${UPS_PROD_DIR});
    envPrepend(LD_LIBRARY_PATH,${ROOTSYS}/lib)
    envPrepend(PYTHONPATH,${ROOTSYS}/lib)
    pathPrepend(PATH,${ROOTSYS}/bin)
End:

This is the file that lists the flavor and qualifiers that must be used when declaring the version.

C:\Documents and Settings\Administrator\Desktop\tw_cli-windows-x86-9.4.1.3>tw_cli.exe
//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    OK             -       -       64K     1629.74   ON     OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     DEVICE-ERROR     u0     233.76 GB   490234752     WD-WCANY1796905
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> maint remove c0 p2
Removing port /c0/p2 ... Done.


//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     NOT-PRESENT      -      -           -             -
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     NOT-PRESENT      -      -           -             -
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     NOT-PRESENT      -      -           -             -
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> rescan
Rescanning controller /c0 for units and drives ...Done.
Found the following unit(s): [none].
Found the following drive(s): [none].

//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     OK               -      233.81 GB   490350672     WD-WMAYP3479443
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     OK               -      233.81 GB   490350672     WD-WMAYP3479443
p3     DEVICE-ERROR     u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670

//EDGWIN> /c0/u0 start rebuild disk=2
Sending rebuild start request to /c0/u0 on 1 disk(s) [2] ... Done.


//EDGWIN> info c0

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    REBUILDING     0       -       64K     1629.74   OFF    OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     233.76 GB   490234752     WD-WCANY2312070
p1     OK               u0     233.76 GB   490234752     WD-WCANY2311250
p2     DEGRADED         u0     233.81 GB   490350672     WD-WMAYP3479443
p3     OK               u0     233.76 GB   490234752     WD-WCANY2265331
p4     OK               u0     233.81 GB   490350672     WD-WCAT1A636279
p5     OK               u0     233.81 GB   490350672     WD-WMAYP3458409
p6     OK               u0     233.76 GB   490234752     WD-WCANY2312032
p7     OK               u0     233.81 GB   490350672     WD-WCAT1H074670