P. 1


|Views: 24|Likes:
Published by zuri_ot

More info:

Published by: zuri_ot on Jan 19, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Sys Admin Pocket Survival Guide - Solaris Solaris Admin 101

admintool smc

Adding International Language Support
Solaris 10
localeadm localeadm -l localeadm -q hongkong localeadm -q sam installed. : : : : Solaris 10 CLI for adding international lang support. check for available locale and whether they are fully installed check whether all localization for Hong Kong has been installed. check whether all localization for South America has been

other regions that can be added: Central America region (cam) Central Europe region (ceu) Eastern Europe region (eeu) Middle East region (mea) North America region (nam) Northern Europe region (neu) South America region (sam) Southern Europe region (seu) Western Europe region (weu) Japanese region (ja) Korean region (korean) Simplified Chinese region (china) Traditional Chinese (Hong Kong) region (hongkong) Traditional Chinese region (taiwan) Thai region (th_th) Hindi region (hi_in) Use localeadm -l | grep "Checking for" to see a complete list.

Solaris 7, 8, 9
prodreg : product registry, a GUI software bundle manager ( "super packages") Useful tool to run to install foreign language locale. when run, it willexec "installer" of the language cd, a GUI for choosing what lang support to add. Unfortunately, this does not add full language support, as it does not add the specific LANG packages from the base OS CD/DVD.

Tech notes on adding locales: 1. Solaris Locale FAQ 2. Solaris 9 locale packages, what pkg to add to support req lang. run pkginfo [list of SUNWxxx pkg listed] to see if the packages exist (eg added by prodreg),

Sys Admin Pocket Survival Guide - Solaris
if not, run yes | pkgadd -d . [list of SUNWxxx pkgs] from the jumpstart server OS/.../Products dir to add them.

Solaris Admin Commands
Some of the more basic stuff, may have slight difference from Linux or other Unices.
init 6 init 0 init 5 who -r who -b : reboot, no question asked : shutdown and give ok prompt. Don't use at gc as it won't be auto back up!! : shutdown, and power off. no question asked : show current run level (useful like when doing boot -s) : show system boot time

shutdown, etc cmd does not seems to reboot automatically either, unless specify a reboot init level (eg -i 6) /usr/sbin/shutdown -y -g 300 -i 6 [msg] -i = specify init level, -g = grace period in secs -y = yes, ie don't ask if sure again (can always cancel by killing process) /usr/proc/bin date 0915 date 04060915 : lot of process controlling commands, eg ptree : solaris, set date (time) to 9:15 am. : solaris,hpux, set date and time to apr 6, 9:15 am.

newfs /dev/rdsk/c... create a new fs for the sapce on "raw" slide (also appliable to metadevices from disksuite (and veritas?) in both the stripe+concat and raid5 drives. mirror would need a sync cmd. see cmd.diskstuite.ref -v verbose -b [bsize] specify block size, def should be 8192 (req by dba) -N print the mkfs cmd that will be used, w/o actually doing any work. mkfs -m /dev/dsk/c0t0d0s0 mkfs -m /dev/md/d0 data. tunefs -otime preservation) newfs /vol/dev/aliases/floppy0 show the mkfs used to create the existing fs. for sds disk, looking at subcomponent will give bogus optimize fs performance for time (instead of space try t on floppy

Journaling (link to doc that journaling can actually increase performance!)

Sys Admin Pocket Survival Guide - Solaris Volume Management
Solaris by default does not use a Volume Manager, the file system by default is created right on top of a partition. Sun does have a Volume Manager that is very tied to Solaris: The Solaris Volume Manager, formerly Solstice Disk Suite. Alternatively, lot of places use Veritas Volume Manager. IMHO, the OS boot disk is best left in control of the SVM. This is a hotly contested topic. I will just say that starting with VxVM 4.0, the word from Veritas tech support is: "We no longer require you to use VxVM for the boot disk, why don't you just use Veritas for your data disks". They told me this after I ran into some bugs and they needed me to update from 4.0 to 4.01. Needless to say, I changed my school of thought then and used SVM for the bootdisk from then on. SVM/SDS Commands
metastat show config of disk suite, status and minor stat metadb info. metareplace -e mirror component metareplace -e d0 c0t0d0s0 This perform a resync on the mirror drive d0, component c0t0d0s0 is the one that will be wipe out and rebuild. (Used when rebuilding the root partition, disk0 was yanked out, and so needed to use data from c0t1d0s0 to rebuild the mirror). metastat | awk '/State:/ { if ($2 != "Okay") if (prev ~ /^d/) print prev, $0} $0}' Quickly list drives that are not in okay mode. eg, error, sync, etc. metadb | grep [A-Z] Quickly see if there are any problems with metadb replicas (state db). Work cuz metadb use caps only when they have errors in them. {prev = who info about the meta db (state db) used by disksuite to maintian meta/state

sdsMon.sh, a script that monitor SDS/SVM and send email if anything is amiss.
#!/bin/sh #quickly list drives that are not in okay mode (eg, error, sync, etc.): # # # # extension of sdsChk.sh, this will send email notification when needed. run in crontab as any user (this script chmod a+rx): cron job to check status of Sun Volume Manager (software RAID) 0 8,12,17 * * * /export/share/script/sdsMon.sh

PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/opt/SUNWmd/sbin/ RCPT=tin@taos.com HOST=`hostname` MSG="Solaris DiskSuit alert for $HOST"

sh. Note that due to this approach. it can never be used. \ echo "$OUTPUT1" . this approach allows disks of dissimilar size to work as mirror pair. \ echo "$OUTPUT2" ) \ | /usr/bin/mailx -s "$MSG" $RCPT fi {prev = $0}'` Creating Mirrored Boot Disks The way how SVM/SDS do mirroring is that it create a fs (mkfs or newfs) of exact size on the submirrors. allowing some extra partition space for other "scrach" use. On the other hand. This is where the lowest common denominator comes from. This is independent of the slide size of the different disks. eg of copying files from 9 gb drive to 18 gb drive. once the disk is mirrored.ref for info of the exact command. As long as the starting fs size is small enough to fit in all slides of diff disk. all disk slides show matching size for the mirrors. $0} #quickly see if there are any problems with metadb replicas (state db) #(work cuz metadb use caps only when they have errors in them. then ( echo "This script is /export/share/script/sdsMon.Solaris OUTPUT1=`metastat | \ awk '/State:/ { if ($2 != "Okay") if (prev ~ /^d/) print prev. OUTPUT2=`metadb | grep [A-Z]` if [ `echo $OUTPUT1 | wc -w` != 0 -o `echo $OUTPUT2 | wc -w` != 0 ]. but after mirror. see backup. increased partitiion size via format.Sys Admin Pocket Survival Guide . it will work. even after the smaller submirrors has been removed. \ echo "select metastat and metadb output". The final solution of the migration is to use ufsdump | ufsrestore. TSI: gfxp0 is GFX8P @ 1152x900 Sample Boot Disk Mirroring Setup Initial OS /etc/vfstab before mirroring: #device #to mount fd /proc /dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s0 /dev/dsk/c0t0d0s4 /dev/dsk/c0t0d0s5 /dev/dsk/c0t0d0s6 swap device mount to fsck point /dev/rdsk/c0t0d0s0 /dev/rdsk/c0t0d0s4 /dev/rdsk/c0t0d0s5 /dev/rdsk/c0t0d0s6 FS type /dev/fd fd /proc proc swap / ufs /usr ufs /var ufs /u01 ufs /tmp tmpfs fsck pass mount mount at boot options no no no no logging no logging no logging yes logging yes - - 1 1 1 2 - . ran on " `date` . even if slide has more space.

31MB 1013.2329 2330 .c0t0d0s2 /dev/rdsk/c0t1d0s2 Add SVM/SDS meta data info to slide 7 of all disks.01MB Blocks (530/0/0) 1903230 (578/0/0) 2075598 (4924/0/0) 17682084 (0/0/0) 0 (870/0/0) 3124170 (290/0/0) 1041390 (2590/0/0) 9300690 (4/0/0) 14364 first blk 16 1050 16 1050 block count 1034 1034 1034 1034 /dev/dsk/c0t0d0s7 /dev/dsk/c0t0d0s7 /dev/dsk/c0t1d0s7 /dev/dsk/c0t1d0s7 This is what the mirroring setup will be.4919 4920 .4923 0 1170 .4923 Size 929. Can place this content in /etc/vfstab for easy future reference.c0t0d0s2 fmthard -s vtoc.1109 2 .579 0 .48MB 8. If there isn't enough any free cylinder on your disk.Sys Admin Pocket Survival Guide . ### ### ### ### ### ### ### metadevice mapping to physical devices disk in tag 0 and 1 (9 gigs) pair root swap d0 d1 submirrors: d10 d20 submirrors: d11 d21 orig new mirror : c0t0d0s0 c0t1d0s0 : c0t0d0s1 c0t1d0s1 .43GB 0 1. prtvtoc /dev/rdsk/c0t0d0s2 > vtoc. then you will need to strink SWAP to make more room. eg: format> verify Primary label contents: Volume name = ascii name = pcyl = 4926 ncyl = 4924 acyl = 2 nhead = 27 nsect = 133 Part Tag Flag 0 root wm 1 swap wu 2 backup wm 3 unassigned wm 4 usr wm 5 var wm 6 unassigned wm 7 unassigned wm format> Copy the partition table to the 2nd disk that will hold the mirror.Solaris Create metadb partition on slide 7. 2 copies for each disk when there are only 2 disks are recommended: metadb -a -f -c 2 c0t0d0s7 c0t1d0s7 output of metadb: flags a m p luo a p luo a p luo a p luo Cylinders 580 .43GB 7.49MB 4.2039 2040 .49GB 508. with 4 cyl (really just need 1 cyl).

Sys Admin Pocket Survival Guide .... lockfs -fa reboot # create metainit metainit metainit metainit metainit # optional. # add one entry to vfstab for / # update /etc/system.. sync. etc # update mount device to use /dev/md/.. use disk in c0t1 -f d20 1 1 c0t1d0s0 # addtional mirror of / -f d21 1 1 c0t1d0s1 # additiional mirror for swap -f d24 1 1 c0t1d0s4 # additiional mirror for /usr -f d25 1 1 c0t1d0s5 # additiional mirror for /var -f d26 1 1 c0t1d0s6 # additiional mirror for /u01 # add the additional mirrors to be active: metattach d0 d20 # activate mirror of / with new slide from d20 metattach d1 d21 # activate mirror of swap . swap device mount to fsck point /dev/rdsk/md/d0 /dev/rdsk/md/d4 /dev/rdsk/md/d5 /dev/rdsk/md/d6 - FS type /dev/fd fd /proc proc swap / ufs /usr ufs /var ufs /u01 ufs /tmp tmpfs fsck pass - 1 1 1 1 mount mount at boot options no no no no logging no logging no logging no logging yes - - (double check path is /dev/*dsk/md/. flush all data to disk # lock fs.. :: vi /etc/vfstab #device #to mount fd /proc /dev/dsk/md/d1 /dev/dsk/md/d0 /dev/dsk/md/d4 /dev/dsk/md/d5 /dev/dsk/md/d6 . recommended the additional submirror components of all slides. sync.Solaris ### ### ### ### usr var u01 d4 d5 d6 submirrors: d14 d24 submirrors: d15 d25 submirrors: d16 d26 : c0t0d0s4 c0t1d0s4 : c0t0d0s5 c0t1d0s5 : c0t0d0s6 c0t1d0s6 # create the basic support for # boot disk c0t0 :: metainit -f d10 1 1 c0t0d0s0 metainit -f d11 1 1 c0t0d0s1 metainit -f d14 1 1 c0t0d0s4 metainit -f d15 1 1 c0t0d0s5 metainit -f d16 1 1 c0t0d0s6 metainit metainit metainit metainit metainit d0 d1 d4 d5 d6 -m -m -m -m -m d10 d11 d14 d15 d16 SVM based on original # # # # # # # # # # init submirror of / swap /usr /var /oracle/u01 mountable / usable swap mountable /usr mountable /var mountable /u01 metaroot d0 # activate SVM for boot partition.

Solaris metattach d4 d24 metattach d5 d25 metattach d6 d26 # activate mirror of /usr # activate mirror of /var # activate mirror of /u01 # the above cmd return right away. Hostname: cqdb The system is coming up.] volume management starting. If these errors are annoying. Inc. then there maybe some hair pulling in finding out the error :) ---Optional update to OBP to allow easier booting..tab output of metastat -p: d0 -m d10 d20 1 d10 1 1 c0t0d0s0 d20 1 1 c0t1d0s0 d1 -m d11 d21 1 d11 1 1 c0t0d0s1 d21 1 1 c0t1d0s1 d4 -m d14 d24 1 d14 1 1 c0t0d0s4 d24 1 1 c0t1d0s4 d5 -m d15 d25 1 d15 1 1 c0t0d0s5 d25 1 1 c0t1d0s5 d6 -m d16 d26 1 d16 1 1 c0t0d0s6 d26 1 1 c0t1d0s6 When all done. checking ufs filesystems /dev/md/rdsk/d6: is logging. The problem with such mods is that should there be a need of raid 5 device down the road. update /etc/system and comment out the forceload of the unecessary components. The system is ready. reboot again just to be sure all is okay. All rights reserved. should one of the boot disk fail. [.Sys Admin Pocket Survival Guide . Please wait. # review /etc/lvm/md.8 Version Generic_108528-16 64-bit Copyright 1983-2001 Sun Microsystems. These errors from boot are ok: Boot device: disk:a File and args: SunOS Release 5. use metastat to monitor sync process # or metatool for gui monitor/admin tool.. and forget to re-enable these. WARNING: forceload of misc/md_trans failed WARNING: forceload of misc/md_raid failed WARNING: forceload of misc/md_hotspares failed WARNING: forceload of misc/md_sp failed configuring IPv4 interfaces: hme0. this allows one to do: .

will expand ufs w/o lvm. Someime.. # making it no longer part of SDS.Sys Admin Pocket Survival Guide . metastat will report "maintenance needed. # should see sync in this time. .4000/scsi@3/disk@0. this can also be used to fix the error if disk err was transitive or relocatable. metaclear d15 metainit d15 1 1 c0t0d0s5 metattach d5 d15 metainit can be done on device with existing fs: http://www. issue metareplace.sun.0:a eeprom "boot-device=rootdisk rootmirror" eeprom "use-nvramrc?=true" eeprom "nvramrc=`cat nvramrc. eg nvramrc..4000/scsi@3/disk@1.cmd`" eeprom boot-device eeprom nvramrc # read back programmed content -------A sample test for failure scenario: replacing one submirror.html describe way of expanding disk using SDS trick.. # reinitialize the submirror # reattaches it and make active. but it is "undocumented" Clearing out SVM/SDS eg of clean up: metadb -d /dev/dsk/c0t1d0s7 metadb -d -f c0t1d0s7 metadetach -f d0 d20 # rm meta db info in a disk # force removal of meta db info (err fru) # detach the submirror d20 from d0.".cmd devalias rootdisk /pci@1f. mkfs -G -M .com/bigadmin/content/submitted/expand_ufs_svm. metadetach d5 d15 # detaches submirror d15 from the host mountable drive # d5 (/var) # real failure req metareplace will need -f # clear up the association of the orphaned submirror.0:a devalias rootmirror /pci@1f.Solaris boot rootmirror Save the following content to a file..

In such cases. This method can also be used if the replacement drive does not have the same geometry (size) as the original drive or that of the rest of the RAID group. create slide 0 and 7).c3t8d0s2 /dev/rdsk/c0t2d0s2 # create partition/slide info d10 1 1 c0t0d0s0 # initialize the disk for SDS use d0 d10 # attach a submirror d10 to main -c 1 c0t0d0s7 # add meta data to the disk Another method is the use metareplace to "replace a drive with itself".Sys Admin Pocket Survival Guide . one need to first manually create the partition table using the format command. one can replace a Sun 18 GB hard drive with a COMPAQ/HP 18 GB drive that has fewer cylinders than Sun (but each cylinder holds more bytes). format (select the right disk carefully. when there are err # rm the metadevice # initialize a new device for use w/ sds Replace Bad Hard Drive eg: d0 is the host mirror. . For example.c3t8d0s2 vtoc. with components: d10 = c0t0d0 which is bad in this eg d20 = c3t8d0 which is the good submirror metadetach -f metaclear SDS metadb -f # replace the prtvtoc fmthard -s metainit metattach disk d0 metadb -a d0 d10 d10 # offline the disk # remove its usage reference from -d c0t0d0s7 # remove meta data from disk drive /dev/rdsk/c3t8d0s2 > vtoc.Solaris metaclear metainit d20 d20 1 1 c0t0d0s0 # -f for forced. ensuring that the SDS and metadb slides are larger than the original size (in term of megabytes). replace subcompont w/ err with device itself (after physical replace hd) remove meta data from disk re-add meta data to the disk -f -d c0t0d0s7 -a -c 1 c0t0d0s7 Creating RAID 0 device RAID 0 is called a simple concat in SVM. metareplace -e d0 metadb metadb c0t0d0s0 # # # # # for mirror d0.

removing hot spare disk c0t1d0s7 from a pool hsp000: metahs -d hsp000 c0t1d0s7 Note that the pool name still remains when metastat is issued. use -k option in metainit. should have this number that match or be exact multiple of oracle read/write block size). Not sure how Hot Spare Device metainit hot-spare-pool-name ctds-for-slice eg metainit hsp001 c2t2d0s2 c3t2d0s2 or metainit hsp000 c0t1d0s7 after a pool is setup. if somehow need to reimport the raid 5 volume. Here are examples for a MD device with 3 or 8 constituent disk/partition: metainit d45 -r c2t3d0s2 c3t0d0s2 c4t0d0s2 or metainit d0 -r c1t0d0s7 c1t1d0s7 c1t2d0s7 c1t3d0s7 c1t8d0s7 c1t9d0s7 c1t10d0s7 c1t11d0s7 -i 32b Note the -r flag for metainit to inidcate it is raid. metainit d30 1 3 c0t1d0s0 c0t2d0s0 c0t3d0s0 -i 64k newfs /dev/md/dsk/d30 Creating RAID 5 device For raid 5. thus no auto rebuild. they are all simple stripe for RAID 0 or 1. need to associate it with a volume: metaparam -h hot-spare-pool component eg: metaparam -h hsp100 d10 metaparam -h hsp100 d0 # not done for maluku.Solaris eg stripping setup : 1 final volume. compose of 3 subdisks. to use it yet though. but no disk attached to it.Sys Admin Pocket Survival Guide . sds simply call it raid. . Otherwise. Use interleave factor of 64k (def 16k.

Slide 4 would be the private region for additional VxVM managed partitions. metadb -l [LENGHT] option may help remedy the situation.tab and save both somewhere safe.Sys Admin Pocket Survival Guide . book actually use 3. 3 and 4 are just convention. Hopefully 7 cyl is enough. will save you lots of time if you need to redo it. Typically. However. It .Solaris SVM/SDS Tech Details Sun Volume Manager likes to use slide 7. so each cyl is biggger. Veritas Volume Manager usually needs 2 free avail partitions (except for boot/root disk. SVM meta data info should be stored in slide 3. Other slide number can be used. Book says it only needs 1 cyl. for root disk needing encapsulation. If there are not enough cylinnders available. but it allocates 8. which can do swap reloc but not recommen ded anyway). Slide #7 is only convention. 72 GB actually has only 14087 cyl. if you want to be safe in term of future upgrade (or downgrade) to Veritas. Save your disk VTOCs and do metastat -p /etc/lvm/md. So. slide 4 is 1 cylinder at beginning or end of disk. and leave slide 4 unused. slice 3 contains all cyl. and my past experience 15 cyl was needed on a 36 GB drive w/ 24620 cyl! Oracle1 got 30 cyl for this. just like standard slide 2. In contracst.

(see separate config-backup.cf $BKDIR /etc/lvm/md.nvramrc."$DISK" done #eepromp param (alias for booting. metastat -p metastat -p > $BKDIR/`date +%Y%m%d`. Put two copies of your metdb on each disk in a seperate partition on SVM/SDS Config files Quick backup of config files for recovery use.metastat-p metastat > $BKDIR/`date +%Y%m%d`. do prtvtoc $DISKPATH/$DISK > $BKDIR/`date +%Y%m%d`.Solaris Also recommended: each disk.sh script for more info) #BKDIR=/export/cfbk BKDIR=/var/adm/cfbk mkdir $BKDIR cp -p /etc/vfstab cp -p /etc/system cp cp cp cp -p -p -p -p $BKDIR $BKDIR /kernel/drv/md.eeprom. if setup) eeprom nvram > $BKDIR/`date +%Y%m%d`.eeprom.tab $BKDIR # really manual file.out ---sol 8: /etc/system * Begin MDD root info (do not edit) forceload: misc/md_stripe forceload: misc/md_mirror forceload: misc/md_trans forceload: misc/md_raid forceload: misc/md_hotspares .out eeprom > $BKDIR/`date +%Y%m%d`.cf $BKDIR /etc/lvm/mddb.conf $BKDIR /etc/lvm/md.Sys Admin Pocket Survival Guide .vtoc.metastat DISKPATH=/dev/rdsk/ DISKSET="c0t0d0s2 c0t8d0s2 c0t9d0s2 c0t10d0s2" #DISKSET="c0t0d0s2 c0t8d0s2 c0t9d0s2 c0t10d0s2 c0t11d0s2 c0t12d0s2" for DISK in $DISKSET.

com/app/docs/doc/817-2530/6mi6gg8e0?a=view#troubleshoottasks-pro c-86 References: Sun SVM admin guide. Intermediate sol 9 may have added device signature and then that was used successfully for to reproduce the whole SDS volume.sun. name_to_major (sd) ls -lL /dev/dsk/c*sX where X is the slide number of the metadb slide (typically 7) For sol 9. as it use device id (embeded on disk metadb area?) for disk import.sd@SSEAGATE_ST39103LCSUN9.cf solaris 9 and 10: nothing in /etc/system.Solaris forceload: misc/md_sp forceload: drv/pcipsy forceload: drv/glm forceload: drv/sd rootdev:/pseudo/md@0:0. importing from sol 8 volume. but so far can't get it to work on sol10.0GLSF12046000010280QJL/a". Unit 0 Disk SEAGATE ST39103LCSUN9.blk * End MDD root info (do not edit) * Begin MDD database info (do not edit) set md:mddb_bootlist1="sd:456:16 sd:360:16 sd:368:16 sd:376:16 sd:384:16" set md:mddb_bootlist2="sd:416:16 sd:424:16 sd:440:16" * End MDD database info (do not edit) and use /etc/lvm/ mddb. there are files in /etc/lvm.cf is very diff than 8.conf mddb_bootlist1="sd:104:16:id1.0. the above mddb_bootlist1 commands cause unbootable system! put data in /kernel/drv/md.0G034A # obp probe-scsiall /a = slide 0 for metadb /h = slide 7 for metadb still can't figure out the sd@ part beyond disk model number :( ref eg for recovery: mddb_bootlist1="sd:16:16:id0".conf with the magic values.cf md. maybe that was due to the fact that maluku was a jump from sol8.Sys Admin Pocket Survival Guide . md_devid_destroy=1. reboot. not as hard as it looks: http://docs. allegedly just need to match major/minor num. see steps in. w/ instructions to create diff devices and some troubleshooting cases. and metadb will work (sol 9 only. . but mddb. and system will update md.

echo"}' | sh # display lot of TCP info. Runnable as user. Network Config . kstat -p hme:0::'/collisions|framing|crc|code_violations|tx_late_collisions/' kstat -p dmfe:0::'/collisions|framing|crc|code_violations|tx_late_collisions/' # get NIC collision stat from kernel stat. echo ---. with latest feature and changes.Sys Admin Pocket Survival Guide . see ndd ref in email # list all possible param ndd -get /dev/hme \? | fgrep -v '?' | awk '{print "echo " $1 ".. ndd -get /dev/ip " $1 " . ndd -get /dev/tcp \? | egrep -v '\?|obsolete' | awk '{print "echo. ndd -get /dev/hme " $1 } ' | sh # display all NIC parameters. echo"}' | sh # display lot of IP info. sol 10 svm has the latest commands.$1 " ----.Solaris Doc 817-2530 sol 8 disk suite has the long time stable. echo ---. must run as root ndd -get /dev/ip \? | fgrep -v '?' | awk '{ print $1 }' | awk -F\( '{print "echo. ndd -get /dev/tcp " $1 " ." $1 " ----.. See also: Performance measurements. May want to pipe it to less. Connectivity (Network) NIC ndd -get /dev/hme status_link ndd -get /dev/hme \? # query nic speed.

Can run as active/standby (more compatible. Ethernet/IP layer redundancy w/o support from switch side.0 broadcast /etc/hosts /etc/nodename /etc/inet/ipnodes # default hostname/IP # solaris is actually /etc/inet/hosts # solaris 10 also put IP address in here. or active/active config (outbound traffic can go over both NIC using 2 IPs. only single IP presented to outside world). solaris adding default route (usually in /etc/defaultrouter) route add default [IP] # for DHCP instead of static IP (see USAH). inbound will depends on the IP the client use to send data back.ce2 (active-active config) :: oaprod1-ce2 netmask + broadcast + deprecated -failover \ group oaprod_ipmp up \ .Sys Admin Pocket Survival Guide .Solaris /etc/hostname. In this case. eg route add net 172.0 up ifconfig hme0 dhcp hostname adding statig roures in dual homed host: route add net [network number] [gateway].0.224. this computer had hme1=172.10.160.ce0 (main active interface) :: oaprod1-ce0 netmask + broadcast + deprecated -failover \ group oaprod_ipmp up \ addif oaprod1 netmask + broadcast + up hostname.160. IPMP Solaris IP Multi Path.ce2 (active-standby config) :: oaprod1-ce2 netmask + broadcast + deprecated -failover \ standby group oaprod_ipmp up ^^^^^^^ hostname.255.255 netmask 255. so typically only 1 NIC).1 Note that [gateway] is within the local network (ie 1 hop) from one of the interfaces in the computer.255.8. hostname. manual update! ifconfig -a ifconfig hme0 plumb ifconfig hme0 10.

3.zip patch need to be uncompressed.27. # no more args for cli/init script such as -D ARCH=SOL10 # eg: AUTOMOUNTD_ENV=ARCH=SOL10 System Config Software Management pkginfo pkgadd -d [pkgname] all pkgrm [pkgname] patchadd [path-dir-name] : display installed package : install all entries from [pkgname] : remore package shown in pkginfo : uncomrpress. untar patch.73 oaprod1-ce2 172.71 oaprod1 172. creates a dir.Solaris addif oaprod-nic2 netmask + broadcast + up /etc/inet/hosts :: 172.74 oaprod2-nic2 NFS /etc/dfs/dfstab (add sample) /etc/default/nfs max to 3 /etc/default/autofs # solaris 10.Sys Admin Pocket Survival Guide .27. need to change NFS client (and server) default vers # NFS 4 has nasty problems of ignoring NFS v3 security settings!! # all automount options are to be specified here.27. patchadd -M [source src dir] [patch-dir-name] : apply (m)ultiple patches avail at source dir patchrm [patch-id] : remove specified patch (ie undo the patch addition) .27. patch add it [.3.3. then use the folder name as param).72 oaprod1-ce0 172.3.

etc. # though the higher app level are still in /etc/rc*..d/S9?wbem). easier to figure out which cluster products. A required patch is not applied showrev : showrevision (display system properties. or http://oregonstate. X GUI. so can specify -01 for all patches. Both smc and smpatch sol 9 They are thick net client. patch to get.. # most basic OS dependent services have been migrated. eg where to install.. analyze.Solaris Patchadd common exit codes (found inside patchadd script. etc of specific patch applied to [pkgid] To search to see which package installed a given file. etc pkgparam [pkgid] PATCHLIST : show all patche3s applied to the package [pkgid] pkgparam [pkgid] PATCH_INFO_[patch_num] : shows installation date. for Sol 8 and 9. smpatch download -i 105407-01 -i 116298-08 -i 116302-02 : download the list of patches : looks for later revision also. incl hostid. SUPPOSED to have patch management and sol 9 allow multiple host patch Depends on WBEM server process to be running (rc2. especially for storage and ins def. Patch Manager svcadm : another patch tool. # solaris 10 new method of starting services. runnable by user in gid 14 : sun management console. prodref smpatch : gui for varios task. eg. Later revision already installed 25. Attempting to patch a package that is not installed 35. etc. : tool from sun website. add user. : resolve dependencies?? smpatch add -i 105407-01 : install the defined patches. Attempt to apply a patch that's already been applied 8.html ) 2.edu/~creliar/sysadmin/patchadd. require : some GUI tool for "super" package mangement.Sys Admin Pocket Survival Guide . find who installed the cc (shell script!): grep /usr/ucb/cc /var/sadm/install/contents --admintool smc at same time.. allow viewing of logs. network port. os version. multiple -i accepted PatchPro. grep thru the /var/sadm/install/contents file. in /usr/sadm/bin req extra service (daemon and tcp port open) : Patch Management. etc) showrev -p : show all patches applied to sys pkgparam : show parameter of a package. download. some user config.d/ . install.

Note that under part submenu.. : tell system to reconfigure for new tape drive..Sys Admin Pocket Survival Guide . -t ssh # temporary enable the service. drvconfig. etc.. device config need boot -r to : "new" solaris command for scanning new storage devices. list swap info add slide as swap delete slide as swap drvconfig.. Use "volname" to add a name to the disk volume (shown in format disk list) prtvtoc : print the volume table of content (vtoc. disks drvconfig. scan san for LUN # run devfsadm if needed. devlinks eg /dev/rmt/0cbn etc Fiber Channel commands: cfgadm -c configure [c3] cfgadm -c unconfigure c3 # configure controller 3 (HBA). use "label" to save changes to the partition table to disk. starting it now autofs # permanetnly disable the service. stopping it now also. devfsadm : create entries in /dev/dsk/c*t* . only last till reboot.Solaris svcadm svcadm svcadm svcadm svcadm svcadm enable disable enable disable disable enable autofs # permanently enable autofs service. dependencies. then see new "disks" in format # remove all config of the given controller unconfigure internal scsi disk (eg E250) so that dead disk no longer show up in "format" but still shows up in cfgadm -al (may need a reconfigure reboot to completely cfgadm -c unconfigure c0::dsk/c0t11d0 # # # # clear it) . and their current status # long view of ldap client service status. -t ssh svc:/network/nis/client# NIS network/ldap/client # LDAP client # produce a list of services. ie the partition table + disk geometry data) swap -l swap -a /dev/dsk/c. etc svcs svcs -l ldap/client Hardware commands format = slice/partition disk. tapes. tapes fix. surface scan... swap -d /dev/dsk/c. : create entries for backup tape drives in /dev/rmt : sometime drvcnofig cause problem. Linux/DOS call this fdisk.

fbconfig -res VESA_STD_1600x1200x85 try = test out desired resolution. cfgadm -o force_update -c unconfigure cX::wwn # forceful manner of above cfgadm -c unconfigure -o unusable_FCP_dev cX:wwn luxadm fcode_download -p display HBA firmware version and driver/path info. actual monitor res=1920x1440. but not permanent? fbconfig -res VESA_STD_1600x1200x85 = no subcommand.. and some sun array products. fbconfig -res VESA_STD_1600x1200x85 now = setup for this session only. test doesn't display anything but it does set monitor to that resolution. Display resolution Command to change VGA resolution in SOlaris 9 and 10. fbconfig -help fbconfig -res \? Don't remember if they also = list supported resolution for given frame buffer card It seems to poke the monitor to see what it supports also. it prompt to save cnofig or not. and monitor ODM can be used to see resolution/refresh or whether it blank out. At the end. luxadm probe display WWN of fc dev luxadm display [logical_dev] . # remove spurious entries in /etc/cfg/fp/fabric_WWN_map # such device cause boot warnings if left in there. luxadm is probably only for 880 w/ sse dev.Sys Admin Pocket Survival Guide . which fb don't support.. here are the things to lookup: add_drv rm_drv FILES /kernel/drv . Drivers For the odd occasion of needing to add drivers. sparc. fbconfig -res VESA_STD_1856x1392x75 now = used in sunblade2500. seems to just set it.Solaris cfgadm -c unconfigure c3::wwn devices. worked for x86.

install new os (upgrade is done by software after boot).Sys Admin Pocket Survival Guide . ie use when adding new devices eg hd alternatively.install -s cdrom -s net0 -s net1 -s . hd is typically first default boot device = single user mode boot from cd (for resetting root password use. boot over network as single user = net=net0. net1 is 2nd NIC boot cdrom . = use jumpstart server. create file /reconfigure and reboot.install boot boot boot boot etc) boot boot cdrom . = normal install from cdrom = jumptstart install = single user mode.Solaris boot device drivers /usr/kernel/drv other drivers that could potentially be shared between platforms /platform/`uname -i`/kernel/drv platform-dependent drivers /etc/driver_aliases driver aliases file /etc/driver_classes driver classes file /etc/minor_perm minor node permissions /etc/name_to_major major number binding kdmconfig = hardware config used during install OBP Sun keyboard OBP related keystrokes: stop-a stop-d stop-f stop-n : : : : abort enter diag mode forth in ttya reset nvram to default values Sun openboot EEPROM commands boot cdrom boot disk boot net boot -r boot from cdrom boot from local hd boot by asking for tftp file reconfigure.install net .

which.Sys Admin Pocket Survival Guide . seems to require reboot. eeprom | grep serial # show system board serial. including nvramrc.asr asr-disable cpu0 asr-enable cpu0 = show list of components that can be disabled/enabled = disable CPU0 Other components can be bank0.Solaris probe-scsi-all test-all test /memory test net . ifconfig has another option to program desired mac on it.n..def: 34 def: true : reset all nvram config param to default def: none other: level command # obp password stuff device alias are set via nvalias [var] [val] and nvunalias [var] --Inside Solaris. but not serial of machine # for sun support case. won't use ttya for output. it was either setenv or nvram something.1.8. see the SDS/SVM root disk mirror for procedure.) .) def: 9600. For x86 platform.. it is easiest if done from within solaris rather than at the actual OK prompt. after it has been fixed. with frame buffer card present. unplumb and plumb did not get it changed. (in obp.. dimm0 = enable CPU0 again. # eeprom local-mac-address?=true use qfe internal local mac instead of same mac for all interfaces). : display all nvram var/value/default settings : set nvram variables to specified value printenv setenv [var] [value] [var] output-device input-device ttya-mode screen-#rows auto-boot? set-defaults security-mode def: screen def: keyboard alt: ttya ttyb alt: ttya ttyb (some jerk has console. as it doesn't have a real OBP proper. for nvramrc modification. eeprom command from the shell must be used. shell command prompt can issue command eeprom to view and set eeprom variables. weired..

Solaris --- Note that IDE disks have diff device path than scsi and fc devices: /dev/dsk/c0t0d0s0 -> .0:a /dev/dsk/c0t3d0s0 -> .. For E250. just remove After turning on the power to your system./..0/pci@1../. Press the front panel Power button twice (with a short.0:a IDE disks device on x86 has name of the form: c0d0s1 (ie. So.0:a ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^/disk@0.1/ide@3/dad@0.0/pci@1. no d-number) ---- redirect to use serial a as console eeprom tty-ignore-cd=true eeprom input-device=ttya eeprom output-device=ttya --redirecting serial console to the serial port of RSC card (Remote Server Control) Note that it is not like the LOM on SunFire V100./devices/pci@1f. [it is not the immediate boot flashing.0/pci@1.0:a /dev/dsk/c0t2d0s0 -> ./devices/pci@1f. install RSC software first!! diag-console rsc setenv input-device rsc-console setenv output-device rsc-console to get back to default settings (non-rsc) diag-console ttya setenv input-device keyboard setenv output-device screen Procedure to restore console to ttya. RSC card.1/ide@3/dad@2./.0/pci@1. RSC require OS software counterpart to work. It works for V880 and V480. watch the front panel wrench LED for rapid flashing during the boot process. where service light flashes longer and front panel yellow arrrow does not comes on). before setting this OBP param.. wait for about 1 minutes later...0:a Final rootdisk devalias: /pci@1f.1/ide@3/disk@0. one-second delay in between presses).Sys Admin Pocket Survival Guide ./devices/pci@1f. .1/ide@3/dad@3.

org/data/sh/2. Ref: http://www. no special config needed.Solaris Notes: The above procedure sets all nvram parameters to their default settings. For LOM. --shell level command lom -a : display all lom config = sequence to get to LOM prompt (shell or obp). It works directly over the RJ45 serial port. = return to os. LOM is available in the Telco grade machines. only need to learn a few critical commands. V1280. From serial console into serial A port: #. really bad when you are logging in remotely using a serial concentrator.html Light Out Management Sun Light Out Management (LOM). These changes are temporary and the original values will be restored after the next hardware or software reset. console break poweron poweroff there are options for LOM to automatically power cycle machine if it does not receive LOM events after threshold. like V110.sunshack. normal console fn on original system state. IMHO. and it will ALWAYS work. = go to obp ok> prompt "Advanced" Light Out Management .Sys Admin Pocket Survival Guide . this is the best Serial Console Interface + Management of all the Sun machines.central/data/syshbk/General/OBP.1/infoserver. RSC card can go bad and one will be left without a working console. Solve misterious hang problem.

.Sun-Fire-V240/sbin/scadm ALOM-cmd ALOM cmd: usershow .Sys Admin Pocket Survival Guide .Solaris ALOM . eg E220$. Again. not a mirroring of the console as done by HP-UX or AIX. The PCI card has a build in batter pack and thus allow one to use it even when machine is powered off. to gain access to it also. Yikes! RSC has both serial console and NIC for telnet/http login to the RSC service. help yourself: Remote Service Controller A large number of Sun machines have an RSC PCI card in the back. Couldn't login to tell more :( But it requires serial redirection like RSC. I like LOM. The RSC card also need special software installed on the machine first. I didn't find it fruitful to learn ALOM. but with the new AMD-based machines. and it is a redirect. I personally prefer the functionality and usage of LOM. V480). It is probably a bit more integrated with the OS. The serial provided by ALOM is not an automatic mirror of the system console either. IMHO.. I think Sun is going even more backward and using VGA. V220..Advanced LOM. ALOM doc 817-1960 If you like. via the scadm command in /usr/platform/SUNW. as it is not available over the serial console port. V440 It isn't the same as LOM. while the card look like ALOM card. so not worth the headache. PS/2 Keyboard and Mouse. ALOM is a add-on card for V210. A should be Awful rather than Advance. (New V490 claims to have ALOM. if Serial Console is redirected. It allows the admin to remotely power on the machine. The biggest flaw is that the console has to be redirected via OBP. and. so forget about using it as the console for setting up OS on a new box. nothing else from Sun is better than LOM :) I do wish that the make LOM the standard for ALL machines. to the sense that OS can issue commands to configure/interact with ALOM. E420R. all the doc points that it is an RSC card (sans modem connection of old RSC card).

--Saving config and user account info: rscadm show > rscadm_usershow. Can redirect console to rsc (serial port). Password is 6-8 chars. configure user.Sun-Fire-480R/rsc --GUI avail for sun and windows..Ma.out rscadm usershow > rscadm_usershow.ö These methods affect the next boot only. Main ref: Sun Remote System Control (RSC) 2. and it has advantage of being up even machine in standby mode. system SUNWrsc system SUNWrscd system SUNWrscj Remote System Control Remote System Control User Guide Remote System Control GUI /usr/platform/. then change eeprom settings: ok diag-console rsc ok setenv input-device rsc-console ok setenv output-device rsc-console RSC was said to be buggy by Chong's friend. C.. or by choosing Set Boot Mode using the RSC GUI and checking the box labeled ôForce the host to direct the console to RSC.Sys Admin Pocket Survival Guide . you cannot use RSC to access the console./rsc/rsc-config Choose to give static ip.Solaris If terminal server/serial concentrator is available..out commands are in /usr/platform/SUNW. which req rsc firmware reload. But MUST install rsc packages first. Can install GUI client. it reset the eeprom in/out-put device back to tty! p34: If RSC is not designated as the system console. default mode cuar. You can temporarily redirect the console to RSC using the RSC bootmode -u command.. but okay in 280R. . Noticed once changing IP. Use telnet to configured IP. Not sure if there are ways to turn this GUI feature off.2 User's Guide It refers to E-250. allow power on.. the only thing that RSC provides is the ability to remotely power cycle the machine. password is prompted after it upload settings to rsc firmware. GUI listen on port 7598 (per netstat). Default escape char is ~. /opt/rsc/bin/rsc is GUI client. which takes several minutes. (username rsc). V480 pkgadd -d .0.

Solaris --Security assesment: Ports open on RSC card IP address as per nmap scan: filtered ports are not actually connectable using telnet test. if followed by a server reset within 10 minutes (similar to L1-key combinations on non-USB Sun keyboards) reset Resets the server immediately poweroff Powers off the server poweron Powers on the server loghistory Displays the history of all events logged in the RSC event buffer consolehistory Displays the history of all console messages logged in the buffer consolerestart Makes the current boot and run console logs ôoriginalö set Sets a configuration variable show Displays one or more configuration variables date Displays or sets the current time and date showdate Same as date command without arguments setdate Same as date command with arguments password Changes your RSC password useradd Adds an RSC user account userdel Deletes an RSC user account usershow Shows characteristics of an RSC user account userpassword Sets or changes a userÆs password userperm Sets the authorization for a user resetrsc Resets RSC immediately help Displays a list of RSC shell commands and a brief description of . probably random port for comm) RSC commands (From Chapter 4 of sun RSC pdf doc). environment Displays current environmental information showenvironment Same as environment shownetwork Displays the current network configuration console Connects you to the server console break Puts the server in debug mode xir Generates an externally initiated soft reset to the server bootmode Controls server firmware behavior. so. Port 23/tcp 445/tcp 1434/tcp 4444/tcp 6346/tcp 6347/tcp 6667/tcp 7598/tcp 7777/tcp 8888/tcp State open filtered filtered filtered filtered filtered filtered open filtered filtered Service telnet microsoft-ds ms-sql-m krb524 unknown unknown irc unknown unknown sun-answerbook (per snoop. really just open 23 and 7598.Sys Admin Pocket Survival Guide . port 5838 was in use.

cd /opt/SUNWvts/bin .0 avail before 2005/04/15. Sol 8 still need SUNWlxml and SUNWlxmlx installed for lib dependencies..sun. [ver 6.1 (ps9) works for sol 9 and 8 (maybe 7). create machine/co # run exluding storage check. /opt/SUNWexplo/bin/explorer -w \!storage shared storage. Sol9 seems to have some warning but runs ok. SUNWvts SUNWvtsx SUNWvtsmn # ask to enable kerberos. and according to SE. -SunVTS.0 works exclusively for sol 10.Solaris each version Displays version number for RSC firmware and components showsc Same as version without the -v option flashftp Updates the RSC Flash ROM image display-fru Displays information stored in the RSC serial EEPROM logout Ends your current RSC shell session setlocator Turn the system locator LED on or off (Sun Fire V480 servers only). Diagnostic tool sun explorer. 5. Okay in VCS. good for # supposed to mail sun directly. answer no.Sys Admin Pocket Survival Guide . -email log in /opt/SUNWexplo/output/. SUNWexplo SUNWexplu /opt/SUNWexplo/bin/explorer -g profile. SUNWlxml SUNWlxmlx # for sol 8 w/o xml pkg pkgadd -d . pkg install slightly diff] pkgadd -d .pl?target=explorer/explorer pkgadd -d . http://sunsolve. Can copy /opt/SUNWvts/bin to an NFS dir and run it from there. http://www.com/pub-cgi/show. showlocator Show the state of the system locator LED (Sun Fire V480 servers only). Sun Validation and Test suite for hardware verification and stress test. with SunCluster.. # first time setup.html ver 5./sunvts -t -l logdir # -t = TUI.com/oem/products/vts/index. easy to just start default test and let it run # -l /path/to/logdir so that it does not log to /tmp by default Random Sun Hardware Info .sun. Note that there are some issues with shared storage.

.com/db?p=/doc/806-3992-10/6jd3qmd5l&a=view no special procedure other than unmounting the drive and/or stopping volume mgnt software on the os level.Sys Admin Pocket Survival Guide . actually. aka Happy Meal Entrie PCI quad card 100 Mbps each. eg PCI card for desktop) Sun machines nickname Sun Blade 1500 Sun Blade 2500 Taco Enchilada . E220R. http://docs. Sun T2000 intel-based NIC (x86. eg Ultra 10. see new disk in format). then just plug in drive and reprobe with drvconfig. Cu GigE 100 Mbps.sun. CPU installation order is: memory modules | slot 3 | slot 2 | slot 1 | slot 0 | PCI bus install order | 3rd | 1st | 2nd | 4th | not sure what is system view of CPU numbering..Solaris As per sun 420 server manual doc # 806-1080 p69. ca 2000 Sun Fire 280R build-in NIC Sun . E250. E450. etc. circa 2000 V480R build-in NIC. 450 probed the disk automatically and onlined it (LED on.. IBM laptop.. NIC name Various machine's NIC name--not nickname :-P hme0 qfe0 qfe4 ce0 ce1 ge0 eri0 dmfe0 ipge0 iprb0 elxl0 most machines circa 2000 machines. PCI card) 3Com NIC (x86. guess it would be: | CPU 2 | CPU 0 | CPU 1 | CPU 3 hot plug disk cmd for 450. eg Dell desktop. fiber GigE on PCI card.

semaphore set. then isalist will list sparcv9 first isainfo -b -v # 64 or 32 as output of os bit # verbose. shorter prtdiag : (/usr/platform/sun4u/sbin/prtdiag -v) : show cpu info. If you are running the 64-bit operating system on an UltraSPARC machine.. Useful when cpu is causing system crash as indicated by /var/adm/messages. : on system supporting it. find if available slots for expansion (GNU tool) ipcrm reboot kbd -a disable kbd -a enable : remove a message queue. : enable break mode. when keyboard is pulled.Solaris kernel parameter uname -a : kernel patch level. memory config info. etc. modinfo : kernel loaded module sysdef : system info (long) prtconf : system config info. db2. die ungracefully. ls /platform/sun4u/kernel/ isalist (ref) How Can we tell Solaris OS is running 32-bit or 64-bit? Use the isalist command to determine whether the machine is running the 32-bit or 64-bit operating system. system drop to OK prompt.config for 64-bit objects.Sys Admin Pocket Survival Guide . or shared memory ID : if oracle hog up all the memory. can use this. also see /etc/release.. psrinfo -v : show sun cpu speed and on/off-line status. etc. memconf : show memory simm config on a machine. failed FRU. psdadm -f 3 : force cpu 3 to be offline. System Tuning . including speed.bit objects and /var/ld/64/ld. OBP level. or : also when too many process are present. crle configure runtime linking environment similar effect as to setting up LD_LIBRARY_PATH /var/ld/ld.config for 32. # also make changes to /etc/default/kbd for boot time default. : disable break mode when keyboard is pulled (safe to pull keyboard). 64 bit = sparcv9 sample /etc/sysconfig for oracle.

local/sol_10_305_sparc/Solaris_10/Tools/ .15:/jumpstart sol-client8 sun4u -c edit /etc/bootparams./add_install_client -p 172./check # produces rules.disk2 Jumpstart Run add_install_server from the Solaris CD #1. inside the Tools directory.15:/jumpstart sol-client10 sun4u cd /jumpstart/OS.ok cd /jumpstart/OS.13. Files to modify after jumpstart server is setup. would need to edit bootparams file carefully.Sys Admin Pocket Survival Guide . If wanting to use another NFS server for main file repository.38.13./add_install_client -p 172. .27. but just need to add client:: rules Profiles/ Sysidcfg/ /etc/ethers /etc/hosts . and ensure all entries for server use IP address.27.local/sol_8_1001_sparc/Solaris_8/Tools/ .Solaris Virtual Adrian SAR "Advance" Sys Admin Multi boot reboot -.38.27. It will copy over all the necessary files to host the jumpstart server.15:/jumpstart/Sysidcfg/sol-client8 172.15:/jumpstart/Sysidcfg/sol-client10 -c 172. not hostname.27.

ifconfig iprb0:38 plumb 17. 20.install # net1 would be the second NIC.This way.27. mistake may cause 19. (eg by issueing "hostname 172. eg: 7. For sysidcfg file. on client machine. ce0. instead of trying to figure out whether it is 6. this would cause misterious non-bootable hang on the client being jumpstarted.15 netmask + broadcast + up 18. like primary or default.jumpstart client boottime hang problem.ifconfig iprb0:8 172. network_interface=default 9.15 netmask + broadcast + up 16.27.virtual interface won't work (unless the switch configure all the vlans on the 23.install boot net1 .15 netmask + broadcast + up 14. . Do not change the hostname without reboot 2.The downside of this config is that routing to different vlan defined by the 22. Once all is setup. hme0.13.port the jumpstart server NIC is connected to).27.38. just need to plug cable to the right vlan and no software changes.Solaris Be sure to correlate the info with local hosts file also. etc. though the sysidcfg file would need to be updated # to assign IP on this interface instead of default/primary NIC at net0 Cavets: 1.it is okay to have /etc/rc2. Virtual interfaces.Sys Admin Pocket Survival Guide . network_interface=primary 8. eri0.27.24. network interfaces can use generic keywords 5. 10.ifconfig iprb0:13 172.d/S98setVlan script that setup a bunch of virtual interfaces: 12.ensure that /etc/netmasks has all the vlan defined.8.150"). issue from OBP: boot net . 11. 4.ifconfig iprb0:8 plumb 13.ifconfig iprb0:13 plumb 15. 3.ifconfig iprb0:38 172. 21.If the jumpstart machine has a single nic that would be plugged to different vlan.

set timezone US/Pacific # or tzset -0800 tzset # redisplay date date 04060915 sys reset ver # show syste date # set date and time to apr 6./etc/init.server stop 26. etc) # see firmware level .255. etc.2 255.215. blank password).d/boot.Sys Admin Pocket Survival Guide .d/boot. cache info.0 t3arrayname ( default is root. Monitor task: vol list fru stat sys list refresh -s lpc version port list # list fs volumes # display status of components # list general sys config.If change IP of the jumpstart server.255. # general array info # reboot the array (read ip.server start "Special" Hardware Config Sun T3 Disk Array (T3b) Commands for Sun T3+ (aka T3B) array. # check battery recharge level # list controller firmware version -------------------------System setup cmd: set ip set gateway set netmask set hostname passwd 10./etc/init. 9:15 am (same as sol). be sure to: 25.2.Solaris 24.

mirror disk 9. But I didn't install it.Sys Admin Pocket Survival Guide . n>1 will automatically be strip + m irror) disk 7-8. As old as the D1000 is. A1000 Disk Array Raid Manager (RM6) is used to control the A1000 (array) and D1000 (JBOD) boxen. strip + mirror ( raid 1 in T3+ of 2n. popular during the dot-bomb days circa Y2k. hot spare vol vol vol vol add v0 data u1d1-6 raid 1 standby u1d9 add v1 data u1d7-8 raid 1 standby u1d9 init v0 data. vol init v1 data mount v0. disk 1 to 6 # chain cmd to parallelize task. and configured it via telnet/serial login cli. std command that works in the T3b: cd pwd ls -l files: /etc/ syslog --Sun StorEdge Component Manager is software that can be installed on host to manage the T3/T3+ array. D1000 system handbook Sun login required now :( RM6 commands . it will take drives up to 144 GB in size.Solaris Array config cmd: vol unmount v0 vol remove v0 # remove preconfigured raid 5 vol Target: disk 1-6. These are pretty old by now. vol mount v1 # controller 1.

install w/ bin link in /etc/raid/bin/ /etc/raid/bin/rm6 raidutil -c c2t5d0 -i etc. command-line programs. nvutil -vf Main GUI for config and status check. Use raidutil for that.Sys Admin Pocket Survival Guide . raidutil -c {c2t5d0} -B : display battery age raidutil -c {c2t5d0} -R : replace battery date See Recovery Guru info on replacing battery. : verify nvsram is set correctly for A1000. . cli ref) Basic Information rm6 Gives an overview of the softwareÆs graphical user interface (GUI). Other Frequently Used RM6 commands drivutil fwutil healthck lad logutil nvutil parityck raidutil rdacutil rm6 storutil You'll need to formally fail a disk before you replace it in case of failure.Solaris packages are SUNWosa*. p170. etc. background process programs and driver modules. After changing battery. and customizable elements. Array need to be powered off for this to happen. such as firmware version. the above command is used to reset remembered date on the controller so that it knows it can use the battery for 2 years from date of reset. : get info about raid device. RM6 details from user guide (from a sun pdf doc.

It also allows certain battery management functions to be performed on one controller at a time. This program views and changes RAID controller non-volatile RAM settings. You can use this utility to set an independent controller configuration. fail/revive a drive. Background Process Programs and Driver Modules arraymon The array monitor background process. This program downloads appware. nvutil The NVSRAM display/modification utility. This program checks and. It verifies and fixes any NVSRAM settings that are not compatible with the storage management software. This program permits certain redundant controller operations such as LUN load balancing and controller failover and restoration to be performed from a command line or script. allowing for some customization of controller behavior. parityck The parity check/repair utility. This program performs a health check on the indicated RAID module and displays a report to standard output. rdacutil The redundant disk array controller management utility. including details on any applicable drivers and daemons. logutil The log format utility. The array monitor watches for the . This program manages drives/LUNs. fwutil The controller firmware download utility.Sys Admin Pocket Survival Guide . This is the file format used by the applications to dispatch an event to the rmscript notification script. It also is the format for Message Log's log file (the default is rmlog. rmevent The RAID Event File Format. It allows you to obtain drive/LUN information. bootware.log). storutil The host store utility. change RAID module names. and obtain LUN reconstruction progress. healthck The health check utility. It allows you to create and delete RAID logical units and hot spares from a command line or script. raidutil The RAID configuration utility.Solaris rdac Describes the software's support for RDAC (Redundant Disk Array Controller). Command-Line Utilities drivutil The drive/LUN utility. and clear information in the host store region. revive a LUN. This program identifies the RAID controllers and logical units that are connected to the system. repairs the parity information stored on the array. raidcode. if necessary. or an NVSRAM file to a specified controller. This program performs certain operations on a region of the controller called host store. lad The list array devices utility. This program is the command-line counterpart to the graphical Configuration application.txt A text file containing information about the various RAID events and error codes. This program formats the error log file and displays a formatted version to the standard output.

the scsi bus light blink on the A1000. rdaemon (UNIX only) The redundant I/O path error resolution daemon. ---a1000 (at least the one attached to sonata. this is quite a nighmarish exercise. Customizable Elements rmparams The storage management softwareÆs parameter file. of what to do . be sure that you do not disturb any of the standard actions. circa 2002. Cluster patch for Solaris will not cover this at all.Sys Admin Pocket Survival Guide . scsi controller is DIFF. and so on. and no disk/array will be seen by the host. For more information about the rmparams file. rmscript The notification script. rdriver (Solaris only) The redundant I/O path routing driver. version 6. If connect to SE. A1000 controller is High Voltage Diff. The rdriver module works in cooperation with rdaemon in handling the transparent recovery of I/O path failures. what time to perform the daily array parity check. Although you can edit the rmscript file. controller failover. From An. Install/upgrading firmware of A1000 IMHO. A subset of the parameters in the rmparams file are changeable under the graphical user interface. The storage management applications read this file at startup or at other selected times during their execution. SE is low voltage diff. This ASCII file has a number of parameter settings. DIFF is high voltage differential. most are in cluster patch now.Solaris occurrence of exception conditions in the array and provides administrator notification when they occur. Thus. The rdaemon receives and reacts to redundant controller exception events and participates in the applicationtransparent recovery of those events through error analysis and. in some cases. then moved to perseus). sending email to the superuser/administrator and.22. This script is called by the array monitor and other programs whenever an important event is reported. sending an SNMP trap. SE don't work.1 was last one). It routes I/Os down the proper path and communicates with the rdaemon about errors and their resolution. Lot of steps and if-conditions listed in a about 3 huge HTML pages. The file has certain standard actions. if necessary. see the Sun StorEdge RAID Manager Installation and Support Guide. get patches for OS. install RM6 (old software. including posting the event to the message log (rmlog. such as the array monitor poll interval.log).

Popular circa 2005. This of course means offline the fs. Upgrade them in sequence to avoid firmware jump unsupported problems. primary (top) and secondary (bottom). it will provide list of firmwares that came with RM6. reboot #112233 seems to have later version in latest cluster patch. touch /reconfigure. select controller on array. and problem can arise when there is no LUN 0. Each controller has these ports: . patchadd 112233-04. Serial console is set at 38400 bps. ready for download to the array controller.Solaris patchadd -M . and after all the warnings. 113277-04 113033-03 # these 2 seems to be added by cluster patch # 113033-03 is only for sbus hba init S. it will still need to remove the LUN. So far. and then recreate it. IP config software control via fc port: Configuration Service Console /opt/SUNWsscs/sscsconsole/sscs (GUI) 2 controllers. Extra space gained can be used to create extra LUN. no problem. But RM6 (on A1000) does not support LUN expandsion. Maybe should avoid using format and other disk poking tool when there is no LUN 0. go to firmware. It is possible to change a group from RAID 10 to RAID 5 while disk online w/ file system active. so if desire to create a single LUN with all the disk space of RAID 5. StorEdge 3510 StorEdge 3510 is a 2U w/ 12 disk and lot of fc port in back. 112126-06 # patchadd -M . --raid storage array luxadm inquiry /dev/rdsk/c?t*s2 # get disk array firmware rev.Sys Admin Pocket Survival Guide . run rm6. and that to recreate it back right away. RM6 warns that OS communicate with array and expect to see a LUN 0.

6. 8. Only choice after that is to readd the mapping thru the serial console. it is not marked as free space. by default. On host.I so left over space is assigned to a partition. Leave *AT LEAST ONE* partition/lun mapping to the controller host. multiple LD/LV can be configured on a single StorEdge array. SE3510 allow global standby/hotspare disk that can serve multiple LD/LV.Solaris Phy Phy Phy Phy Phy Phy Ch Ch Ch Ch Ch Ch 0 1 2 3 4 5 (FC) (FC) (FC) (FC) (FC) (FC) PID PID PID PID PID PID 40 N/A 14 14 44 N/A SID SID SID SID SID SID N/A . partitions are created. path redundancy can be obtained (? by connecting to different controller on different port/channel) Presumably.Drive (daisy chain to other drive?) 15 . Bind partition/lun to specific port so that host can access it. w/ single path (is this really supported?) An LD/LV (Logical Drive/Logical Volume) is created. take over control as primary config host. then inside the LD. Hook up host to SE via fc. as it need to zero all disks.Drive (daisy chain to other drive?) N/A .Host 15 . The confusion remains that it must be checked it is not used. 3.Host Max host connectivity: . so that only the host connected to that channel can see the partition/lun. run sscs. Use Custome Config and change partition/lun config. Seems like.8 hosts. --Sample init config: 1. or else the host will loose ability to talk to the array via the FC. this is usable to host. Think of LD/LV as a RAID group in EMC Clariion. w/ dual path (one to each controller?) .Host 42 . The partitions are shown to host as LUN. Let it probe for the array. This will take long to finish.4 hosts. Click "Custom Config" (Menu Configuration|Custom Configure). Seems like only one controller is being seen/config at a time ?? --- . SE doesn't really have concept of "empty space for growth" inside the LD/LV. this is fast. A specific LD/LV has a single RAID level and span a certain number of disk. 2. 5. 4. 7. "zoning" is really mapping a given partition/lun to a specific port/channel. a single Partition/LUN is created that span all space avail in LD/LV. even bind partition/lun to single port/host. redundant path/disk are seen by the host. Create a new LD/LV.Host 46 . which can be left unmapped to any host.Sys Admin Pocket Survival Guide . ?? redundant path config? somehow.

channel/port binding (for host to see). .ref file content in here.Sys Admin Pocket Survival Guide . etc. Use the custom config button to see all the tasks that can be done on an LV such as partition/lun creation.Solaris LD/LV can be grown dynamically (and reconfigured). TBD old *.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->