Get the latest recommended patches for the system: http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access 2.5.1_Recommended.tar.Z unpacke it Install: Ftp cool packages from htpp://sunfreeware.com coreutils-4.5.4-sol25-sparc-local.gz bash-3.0-sol25-sparc-local.gz gcc-3.3.2-sol25-sparc-local.gz grep-2.5-sol25-sparc-local.gz libgcc-3.3-sol25-sparc-local.gz libiconv-1.8-sol25-sparc-local.gz openssl-0.9.7e-sol25-sparc-local.gz popt-1.7-sol25-sparc-local.gz prngd-0.9.25-sol25-sparc-local.gz rsync-2.6.3-sol25-sparc-local.gz zlib-1.2.1-sol25-sparc-local.gz /usr/local/bin/gzip -d coreutils-4.5.4-sol25-sparc-local.gz /usr/local/bin/gzip -d bash-3.0-sol25-sparc-local.gz /usr/local/bin/gzip -d gcc-3.3.2-sol25-sparc-local.gz /usr/local/bin/gzip -d grep-2.5-sol25-sparc-local.gz /usr/local/bin/gzip -d libgcc-3.3-sol25-sparc-local.gz /usr/local/bin/gzip -d libiconv-1.8-sol25-sparc-local.gz /usr/local/bin/gzip -d openssl-0.9.7e-sol25-sparc-local.gz /usr/local/bin/gzip -d popt-1.7-sol25-sparc-local.gz /usr/local/bin/gzip -d prngd-0.9.25-sol25-sparc-local.gz /usr/local/bin/gzip -d rsync-2.6.3-sol25-sparc-local.gz /usr/local/bin/gzip -d zlib-1.2.1-sol25-sparc-local.gz /usr/local/bin/gzip -d openssh-3.9p1-sol25-sparc-local.gz pkgadd -d coreutils-4.5.4-sol25-sparc-local pkgadd -d bash-3.0-sol25-sparc-local pkgadd -d grep-2.5-sol25-sparc-local pkgadd -d libgcc-3.3-sol25-sparc-local pkgadd -d libiconv-1.8-sol25-sparc-local pkgadd -d openssl-0.9.7e-sol25-sparc-local pkgadd -d popt-1.7-sol25-sparc-local pkgadd -d prngd-0.9.25-sol25-sparc-local pkgadd -d zlib-1.2.1-sol25-sparc-local pkgadd -d rsync-2.6.3-sol25-sparc-local pkgadd -d openssh-3.9p1-sol25-sparc-local /etc/shells /usr/bin/sh /usr/bin/csh /usr/local/bin/tcsh /usr/local/bin/bash Mount points: /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/dsk/c0t3d0s1 - - swap - no - /dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no - /dev/dsk/c0t3d0s3 /dev/rdsk/c0t3d0s3 /usr ufs 1 no - /dev/dsk/c0t3d0s4 /dev/rdsk/c0t3d0s4 /var ufs 1 no - swap - /tmp tmpfs - yes - Nic: cat /etc/ethers 8:0:20:1d:6e:13 sparky10 cat /etc/hosts 127.0.0.1 localhost 192.168.0.44 sparky10 sparky10.stilen.com cat /etc/defaultrouter 192.168.0.60 get a backup of a partition 1st. pratice run ufsdump S 0 a f dump_file c0t2d0 u v 2nd. live run ufsdump 0 a [f dump_file, /dev/rdsk/c0t2d0 u v get a lot of info on the system: prtconf - machine type, model, memory, device drivers get even more info on the system: sysdef - what prtconf does, plus pseudo-devices, tuable kernel parameters, file names of loaded modlues - its a good idea to keep the print out of this for server history. What drive si the root file system on? cat /etc/system rootfs directive filesystem type for root partition rootdev directive location of root partition forceload directvie force drivers to load without auto detect exclude directive force drivers to not load moddir directive new path to modules set directive set kernel tunable perameters maxusers variable max number of users pt_cnt variable number of availabe TTY's max_nproc variable max number of processes maxuprc variable max number of user prcesses Booting issues & Problems in Solaris : Following are some of the booting issues ,error messages their meaning and possible solutions 1) Booting in single user mode and mounting root disk . 2) Making boot device alias 3) "Timeout waiting for ARP/RARP packet"? error message. 4) "The file just loaded does not appear to be executable" error message. 5) "bootblk: can't find the boot program" error message. 6) "boot: cannot open kernel/unix" error message . 7) "Error reading ELF header"? error message . 8) "Cannot open '/etc/path_to_inst'" error message. 9) "Can't stat /dev/rdsk/c0t3d0s0" error message . 1.Booting in single user mode and mounting root hard disk. Most important step in diagnosing the booting problems is booting the system in single user mode and examining the hard disk for possible errors & work out the corrective measure. Single user mode can be achieved by any of the following methods :- ok> boot -s ;from root disk ok> boot net -s ;from network ok>boot cdrom -s ;from cdrom Rebooting with command: cdrom -s Configuring the /devices directory Configuring the /dev directory | INIT: SINGLE USER MODE # # fsck /dev/rdsk/c0t3d0s0 # mount /dev/dsk/c0t3d0s0 /mnt Perform the required operation on mounted disk , now accessible through /mnt ,& unmount the hard disk after you are done ; # umount /mnt # reboot 2.Making boot device alias In case system can not boot from primary disk and it is needed to make another boot disk to access the data , nvalias command is used . nvalias command makes the device alias and assigns an alternate name to a physical disk. Physical address of target disk is required which can be had by show-disk command on ok>. ok> nvalias disk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0 The new aliased disk can be named as boot disk or can be used for booting by refering its name . ok> setenv boot-device disk7 ok>reset or ok> boot disk7 3."Timeout waiting for ARP/RARP packet"? At ok> type printenv and look for these parameters . boot-device disk mfg-switch? false diag-switch? false if you see "boot-device net " or true value for the other two parameter change it to the values above. In case you wants to boot from network make sure your client is properly configured in boot server and network connections & configuration are proper. 4."The file just loaded does not appear to be executable." Boot block on the hard disk is corrupted .Boot the system in single user mode with cdrom and reinstall boot block . #installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0 5."bootblk: can't find the boot program" boot block can not find the boot programe - ufsboot in Solaris .Either ufsboot is missing or corrupted . In such cases it can be restored from the cdrom after booting from cdrom & mounting the hard disk # cp /platform/`uname -i`/ufsboot /mnt/platform/`uname -i` 6."boot: cannot open kernel/unix" Kernel directory or unix kernel file in this directory is not found .Probably deleted during fsck or deleted by mistake .Copy it from the cdrom or restore from the backup tape. # cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel 7."Error reading ELF header."? Kernel directory or unix kernel file in this directory is corrupted.Copy it from the cdrom or restore from the backup tape. # cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel 8."Cannot open '/etc/path_to_inst'" System can not find the /etc/path_to_install file .It might be missing or corrupted and needs to be rebuild. To rebuild this file boot the system with -ar option : ok>boot -ar Press enter to select default values for the questions asked during booting and select yes to rebuild /etc/path_to_install The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y system will continue booting after rebuilding the file. 9."Can't stat /dev/rdsk/c0t3d0s0" When booted from cdrom and done fsck the root partition comes out to be fine but on booting from root disk this error occurs. The device name for / is missing from /dev/dsk directory and to resolve the issue /dev & /devices directories has to be restored from root backup tapes .