Instiki
qiang (changes)

Showing changes from revision #8 to #9: Added | Removed | Changed

Computing and Communication Services
Unixteam Solaris 2.7 Installation Notes

  • Note that this is only a guideline to the installation. Following this checklist blindly will result in disaster.
  • If rebuilding an old machine it is usefull to take an inventory of the machine before the installation.
    Solaris OS Install
    • Boot from Solaris 7 CDROM
    • Nameservice : Other
    • System Type : Standalone
    • Customize Disk Layout (setup according to service needs, memory and disk(s) available)
      • Sample 2gb disk layout
        Slice   Mount           Size (MB)
        0         /                 64 
        1        swap              512 
        2        overlap          2028 
        3        /usr              512
        4        /var              256 
        5        /tmp               32 
        6        /spare            522
      • Sample 8GB disk layout
        0       /                  128
        1       swap               512
        2       overlap           8830
        3       /usr              1024
        4       /var               256
        5       /tmp               128
        6       /spare            6642 (whatever remains)
  • Install the core system only using following as a guidline:
    • choose 0 for English
    • choose 0 for USA
    • choose VT100 if working on a dumb terminal or Xtermimal if working on a graphical display
    • Specify host name – eg. miko.ccs.yorku.ca
    • Specify that the host is networked
    • Specify the network adapter
    • Specify ip address 130.63.XXX.YYY
    • Specify the Name Service Information – DNS/OTHER
    • Specify domain name – yorku.ca
    • Specify DNS Server Addresses:
      • 130.63.168.21
      • 130.63.237.99
      • 132.251.1.2
    • Specify the search domain – none
    • Specify if the system is part of a subnet – Yes/No
    • Specify the netmask – 255.255.255.0
    • Specify the time zone and time – Canada, Eastern
    • Specify the type of installation – Upgrade or Initial
    • Allocate client services? – Continue (skip over)
    • Select language – None English is already selected by default
    • Select 64-bit support and – No
    • Select software to install – Core System
    • Select the disk to install the selected software to and a root partition
    • Preserve files and file systems? – Yes/No
    • Select manual layout and create file systems
    • Specify if there are any systems to be mounted – Yes/No
    • select automatic reboot
  • Since volume management is no longer installed, you need to add the following line to vfstab: (example device is the internal cdrom on an ultra 5, ultra 1 internals are usually t6)
    /dev/dsk/c0t2d0s0    /dev/rdsk/c0t2d0s0    /cdrom    hsfs    -    no    ro
  • Then, mkdir /cdrom and mount /cdrom
  • Extra packages to add and delete (done after installation and reboot)
    cd /cdrom/Solaris_2.7/Product
    • Add the following packages:
      • For Accounting:
        pkgadd -d `pwd` SUNWaccu SUNWaccr
      • Man pages:
        pkgadd -d `pwd` SUNWdoc SUNWman
      • Source Compatibility:
        pkgadd -d `pwd` SUNWscpr SUNWscpu
      • Utilities and Tools:
        pkgadd -d `pwd` SUNWxcu4 SUNWbtool SUNWsprot SUNWtoo
      • Compilation Tools:
        pkgadd -d `pwd` SUNWhea SUNWarc SUNWlibC SUNWlibm
      • Federated Name System:
        pkgadd -d `pwd` SUNWfns
      • Administration:
        pkgadd -d `pwd` SUNWadmc SUNWadmfw
      • NTP:
        pkgadd -d `pwd` SUNWntpr SUNWntpu

        Don’t install SUNWsadmi (buffer overflow). The rest is fine.
        pkgadd -d `pwd` SUNWmibii SUNWsasnm SUNWsacom
      • Only if you need 64 bit SNMP support:
        pkgadd -d `pwd` SUNWsadmx SUNWsasnx
      • Openwin stuff:
        pkgadd -d `pwd` SUNWtltk SUNWxwice SUNWxwfnt SUNWxilrl SUNWxildh SUNWxilow SUNWxwplt

        pkgadd -d `pwd` SUNWxwopt SUNWxwrtl SUNWctpls SUNWmfrun SUNWxwinc
      • Only if you need 64 bit openwin support:
        pkgadd -d `pwd` SUNWlmsx SUNWxwdvx SUNWxwicx SUNWxwplx SUNWxwrtx
    • Delete the following packages:
      • PCMCIA stuff:
        pkgrm SUNWpcmem SUNWpcser SUNWpsdpr SUNWpcmcu SUNWpcelx SUNWpcmci
      • Autofs:
        pkgrm SUNWatfsr SUNWatfsu

System Configuration

mv /opt /usr/
ln -s /usr/opt /opt
Minimum network configuration (Edit/create the following files)
  • /etc/resolv.conf (nameserver 130.63.168.21)
  • /etc/defaultrouter (130.63.xxx.1)
  • cd /etc; sed 's/^hosts:.*$/hosts: dns files/' nsswitch.conf >nsswitch.conf.new; mv nsswitch.conf.new nsswitch.conf

Sepeda Motor Injeksi Irit Harga Terbaik Cuma Honda Kata Mutiara Kata Bijak Puisi Cinta Kata Cita Zodiak

Reboot(Accounting)

  • Minimum Software Installation
    • Create CCS Groups
      mount hexamon.ccs.yorku.ca:/team-files/team /mnt
      /mnt/config/bin/create_ccs_groups_solaris.sh
    • Install packages
      umount /mnt
      mount <nowiki>hexamon.ccs.yorku.ca</nowiki>:/team-files/kits /mnt
      • Add the following packages from /mnt/Sun OS?
        pkgadd -d /mnt/SunOS/YU.tcpd-7.6.pkg
        pkgadd -d /mnt/SunOS/YU.X11-r6.4.01.pkg
        pkgadd -d /mnt/SunOS/ SUNWski (randomizer patch/package)
        pkgadd -d /mnt/SunOS/YU.sudo-1.6.8p4-sparc.pkg
        pkgadd -d /mnt/SunOS/YU.gzip-1.2.4.pkg
        pkgadd -d /mnt/SunOS/YU.less-3.3.2.pkg
        pkgadd -d /mnt/SunOS/YU.diffutils-2.7.pkg
        pkgadd -d /mnt/SunOS/YU.rcs-5.7.pkg
        pkgadd -d /mnt/SunOS/YU.looker-1.3.1.pkg
        pkgadd -d /mnt/SunOS/YU.sysclean-1.0_UNIX_pkg
        pkgadd -d /mnt/SunOS/YU.tcl-8.0.pkg
        pkgadd -d /mnt/SunOS-5.6/YU.nbu34-client.pkg
      • Add the following packages from /mnt/Sun OS?-5.7
        pkgadd -d /mnt/SunOS-5.7/YU.zlib-1.1.4_SunOS-5.7_sparc.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.openssl-0.9.7d-SunOS-5.7.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.openssh-3.7.1p1-SunOS-5.7_sparc.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.savelog-1.6.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.emacs-20.7-SunOS-5.7.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.lsof-4.4.9-SunOS-5.7.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.top-3.5b8-SunOS-5.7-ultra.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.tcsh-6.09-SunOS-5.7.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.perl-5.6.1-SunOS-5.7-sparc.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.sendmail-8.10.1-SunOS-5.7.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.cfengine-1.5.4-SunOS-5.7.pkg
    • Additional Packages
      If you have or will be installing any of the following, you need to add its requisite:
      • Solstice Disk Suite?
        pkgadd -d /mnt/SunOS/YUdisksta-1.0.pkg
      • DCE
        pkgadd -d /mnt/SunOS/YU.clean-cred-1.1.pkg
      • Windowing System
        pkgadd -d /mnt/SunOS/YU.x11-ssh-ask-pass-1.2.4.1.pkg
      • Apache ssl
        pkgadd -d /mnt/SunOS-5.7/YU.mm-1.1.3-SunOS-5.7-sparc.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.apache_ssl-1.3.26-SunOS-5.7-sparc.pkg
      • Apache ssl
        pkgadd -d /mnt/SunOS-5.7/YU.mm-1.1.3-SunOS-5.7-sparc.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.perl_modules-SunOS-5.7-perl_5.6.1.pkg
        pkgadd -d /mnt/SunOS-5.7/YU.apache_ssl_perl-1.3.26-SunOS-5.7-sparc.pkg
  • umount /team/kits from /mnt
    mount hexamon.ccs.yorku.ca:/team-files/team /mnt
  • Run cfengine config process
    • On the ”/team” file server machine
      • If not already defined in the config program (base.conf) add host to the sol7 class.
    • On machine your installing.
      cd /mnt/config/cfengine; ./base.conf

      (Do this twice.)
      • reboot the system
  • Create CCS Accounts
    /team/config/bin/create_ccs_accts_solaris.sh

    Note: Ignore error of UID #60 being reserved
  • Update the hardware (EEPROM if version lower than 3.25)
  • Install latest patches
    cd /team/config/bin
    run ./install_solaris_patches.sh -force ../lib/solaris_2.7_standard.patches

    (Run this at least twice!!)
    • reboot
  • Make sure you reboot before machine goes production
  • Some reminders
    • create/update printbuild database entries from init.d (this should be removed from cfengine as well).
    • If needed, touch sendmail files in /usr/local/sendmail/db (ie aliases.db etc.)
    • Configure nis if nis client
    • maybe want to turn off X11 startup
    • add machine information to /team/doc/unixteam_info/CCS_Supported_Machines.html

Patch Exit Codes

Patch installation usually terminates with an exit code. These codes are as follows:
  • 0 No error
  • 1 Usage error
  • 2 Attempt to apply a patch that’s already been applied
  • 3 Effective UID is not root
  • 4 Attempt to save original files failed
  • 5 pkgadd failed
  • 6 Patch is obsoleted
  • 7 Invalid package directory
  • 8 Attempting to patch a package that is not installed
  • 9 Cannot access /usr/sbin/pkgadd (client problem)
  • 10 Package validation errors
  • 11 Error adding patch to root template
  • 12 Patch script terminated due to signal
  • 13 Symbolic link included in patch
  • 14 NOT USED
  • 15 The prepatch script had a return code other than 0.
  • 16 The postpatch script had a return code other than 0.
  • 17 Mismatch of the -d option between a previous patch # install and the current one.
  • 18 Not enough space in the file systems that are targets # of the patch.
  • 19 $SOFTINFO/INST_RELEASE file not found
  • 20 A direct instance patch was required but not found
  • 21 The required patches have not been installed on the manager
  • 22 A progressive instance patch was required but not found
  • 23 A restricted patch is already applied to the package
  • 24 An incompatible patch is applied
  • 25 A required patch is not applied
  • 26 The user specified backout data can’t be found
  • 27 The relative directory supplied can’t be found
  • 28 A pkginfo file is corrupt or missing
  • 29 Bad patch ID format
  • 30 Dryrun failure(s)
  • 31 Path given for -C option is invalid
  • 32 Must be running Solaris 2.6 or greater
  • 33 Bad formatted patch file or patch file not found
  • 34 The appropriate kernel jumbo patch needs to be installed

University Computing and Communication Services

Pacquiao vs Marquez Tickets
Mayweather vs Ortiz
Jasa Pembuatan Website Terbaik
Personal Website
Bisnis Online Daftar Gratis Bonus Jutaan Rupiah
TEAK 123 best teak garden furniture manufacturer wholesale in Indonesia
Tokoindo Terbaik Termurah
Bejubel Market Place Terbaik Indonesia
VIAR Motor Indonesia
Tokoindo Terbaik Termurah
Bisnis Online Daftar Gratis Bonus Jutaan Rupiah