From admitriev at mentora.biz Fri Aug 1 13:24:33 2008 From: admitriev at mentora.biz (Andrey Dmitriev) Date: Fri, 1 Aug 2008 13:24:33 -0400 Subject: UPDATE: horrible ZFS performance on a pool of 2 LUNs, awesome with 1 LUN Message-ID: <23322668.15391217611473483.JavaMail.root@mail.mentora.biz> I do see a problem (this was done with 30secs) iostat intervals extended device statistics device r/s w/s kr/s kw/s wait actv svc_t %w %b 0.0 6.3 0.0 3.3 0.0 0.0 0.0 0.6 0 0 c7t6000402002FC424F6CF5318F00000000d0s0 0.0 25.1 0.0 805.3 0.0 0.0 0.0 1.4 0 2 c7t6000402002FC424F6CF5317A00000000d0s0 1.4 6.9 3.4 3.3 0.0 0.0 0.0 0.5 0 0 c7t6000402002FC424F6CF5318F00000000d0s0 1.4 26.1 3.4 822.5 0.0 0.0 0.0 1.4 0 2 c7t6000402002FC424F6CF5317A00000000d0s0 73.0 11.6 4476.2 165.0 0.0 2.9 0.0 34.1 0 17 c7t6000402002FC424F6CF5318F00000000d0s0 76.4 19.3 4727.3 487.2 0.0 2.6 0.0 27.1 0 17 c7t6000402002FC424F6CF5317A00000000d0s0 However, I do not understand why ZFS is making writes in such a lopsided manner. E.g. why are number of writes equal to the LUNs, yet the # of KB is substantially different Also, we did try swapping cables. ----- Original Message ----- From: Tim Bradshaw Sent: Fri, 8/1/2008 5:37am To: Andrey Dmitriev Subject: Re: horrible ZFS performance on a pool of 2 LUNs, awesome with 1 LUN I'd look at the underlying stats for the LUNs with iostat (iostat - xpnz 10 is good), which should tell you whether the underlying I/O is hosed. If one of the devices is shit, then it might be worth taking the pool to bits (if you can) and trying I/O to the raw device to see if it is ZFS or something wrong with the device. Is a RAID5 rebuild in progress on one LUN? --tim From breynolds at Cymtec.com Fri Aug 1 13:49:08 2008 From: breynolds at Cymtec.com (Beverley Reynolds) Date: Fri, 1 Aug 2008 12:49:08 -0500 Subject: mirror disk1 will not boot Message-ID: <800519794AFB8B47A201D7B8B7B1502E367B92@cymex.Cymtec.net> I set up this new T2000, sliced both disks, installed and patched the OS and created a mirror on the second disk. When I try to boot from disk1 I get the following error.......... =================================== Rebooting with command: boot disk1 Boot device: /pci at 780/pci at 0/pci at 9/scsi at 0/disk at 1 File and args: The file just loaded does not appear to be executable. {0} ok =================================== Here are the disk layouts........... c0t0d0s0 Total disk cylinders available: 14087 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 3823 18.56GB (3824/0/0) 38913024 1 swap wu 3824 - 5836 9.77GB (2013/0/0) 20484288 2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312 3 home wm 5837 - 10257 21.45GB (4421/0/0) 44988096 4 unassigned wm 0 0 (0/0/0) 0 5 var wm 10258 - 14081 18.56GB (3824/0/0) 38913024 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 14082 - 14086 24.84MB (5/0/0) 50880 c0t1d0s0 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 3823 18.56GB (3824/0/0) 38913024 1 swap wu 3824 - 5836 9.77GB (2013/0/0) 20484288 2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312 3 home wm 5837 - 10257 21.45GB (4421/0/0) 44988096 4 unassigned wm 0 0 (0/0/0) 0 5 var wm 10258 - 14081 18.56GB (3824/0/0) 38913024 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 14082 - 14086 24.84MB (5/0/0) 50880 ================================ This is how I created the mirror metadb -a -f -c 3 c0t0d0s7 metainit -f d11 1 1 c0t0d0s0 metainit d12 1 1 c0t1d0s0 metainit d10 -m d11 metaroot d10 metainit -f d21 1 1 c0t0d0s1 {this is where swap is} metainit d22 1 1 c0t1d0s1 metainit d20 -m d21 metainit -f d31 1 1 c0t0d0s5 {/var} metainit d32 1 1 c0t1d0s5 metainit d30 -m d31 metainit -f d41 1 1 c0t0d0s3 {/export/home} metainit d42 1 1 c0t1d0s3 metainit d40 -m d41 ============================== I made changes to /etc/vfstab and rebooted the machine Everything seemed to run fine. I wanted to test to ensure the mirror disk would boot when I got the above error. I opened a case with sunsolve but have not heard back from them. Thanks ############################################################################# ## This message from Cymtec Systems, Inc. contains confidential information and is solely for the use of the recipient(s) named above. If you are not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error, please destroy it immediately and notify Cymtec Systems, Inc. by telephone at +1.314.993.8700 or by return e-mail. ############################################################################# ## From chan.playpool at gmail.com Fri Aug 1 10:30:42 2008 From: chan.playpool at gmail.com (the bx) Date: Fri, 1 Aug 2008 10:30:42 -0400 Subject: SUMMARY Re: Help with jumpstarting V440 Message-ID: really a non-summary. Gurus: I'm still experiencing the problem. I had other issues with the JS server too. One of which is related to moving the server to a different IP. I neglected to change some settings after the move. I thought of OS version, arch, etc too as some had suggested. This server/boot server/OS rev combo has been responsible for the births of many similar Netra V440's in the past. I'll stick with troubleshooting and give updates. Thanks to the following Gurus for responding, John England Vikas Sharma Matthew StierLoading... JayJay Florendo Chan On Thu, Jul 31, 2008 at 12:58 PM, the bx wrote: > Gurus: > > I got a few hits off google but I'm still lost. > > I tried to jumpstart Sol10 from a Sol 8 boot server and got this, > > Rebooting with command: boot net - install > Boot device: /pci at 1c,600000/network at 2 File and args: - install > /pci at 1c,600000/network at 2: 100 Mbps half duplex link up > > Requesting Internet address for 0:14:4f:d6:87:d8 > krtld: load_exec: fail to expand cpu/$CPU > /platform/SUNW,Netra-440/kernel/misc/sparcv9/platmod symbol > plat_lgrp_latency multiply defined > /platform/SUNW,Netra-440/kernel/misc/sparcv9/platmod symbol > plat_lgrp_cpu_to_hand multiply defined > /platform/SUNW,Netra-440/kernel/misc/sparcv9/platmod symbol > plat_lgrp_init multiply defined > /platform/SUNW,Netra-440/kernel/misc/sparcv9/platmod symbol > plat_build_mem_nodes multiply defined > krtld: error during initial load/link phase > panic - boot: exitto64 returned from client program > Program terminated > > The install server is a sol10, x86. I'm trying to install 05/2008 > version of 10. > > Please dispense wisdom and thanks! > > Chan From jfs at themis.com Fri Aug 1 17:06:00 2008 From: jfs at themis.com (jean-francois simon) Date: Fri, 01 Aug 2008 23:06:00 +0200 Subject: can not boot from over a USB hub Message-ID: <48937AB8.1060802@themis.com> Hi, under solaris 10 5/08 ona sun4v system, i have that problem that i can't boot from a usb mass storage device when there is a usb hub in the middle. i have applied patch 138312-01: http://sunsolve.sun.com/search/document.do?assetkey=138312 it says: "... Problem Description: 6563214 system panics on booting Solaris from USB hard/flash drive if connected via USB hub..." but after applying it i am still getting a panic. i have tried many things, even trying to first boot from my local scsi disk (on which i had applied the patch) then specifying the root directory of the usb device i want to boot from....to no avail. in all cases, it seems to be choking on the "hub" part of the pathname: {0} ok {0} ok boot -arv Boot device: /pci at 0/pci at 0/pci at 2/scsi at 0/disk at 0 File and args: -arv Enter filename [kernel/sparcv9/unix]: Enter default directory for modules [/platform/sun4v/kernel /kernel /usr/kernel]: module /platform/sun4v/kernel/sparcv9/unix: text at [0x1000000, 0x109e937] data at 0x1800000 module misc/sparcv9/krtld: text at [0x109e938, 0x10b8e57] data at 0x1894148 module /platform/sun4v/kernel/sparcv9/genunix: text at [0x10b8e58, 0x122a6b7] data at 0x189a0c0 module /platform/sun4v/kernel/misc/sparcv9/platmod: text at [0x122a6b8, 0x122a6cf] data at 0x18f0a70 module /platform/sun4v/kernel/cpu/sparcv9/SUNW,UltraSPARC-T2: text at [0x122a6e0, 0x122f987] data at 0x18f1180 Name of system file [etc/system]: SunOS Release 5.10 Version Generic_137111-04 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Ethernet address = 0:80:b6:0:17:4 root filesystem type [ufs]: Enter physical name of root device [/pci at 0/pci at 0/pci at 2/scsi at 0/disk at 0,0:a]: /pci at 0/pci at 0/pci at 1/pci at 0/usb at 0/hub at 1/storage at 1/disk at 0,0:b mem = 8257536K (0x1f8000000) avail mem = 7989796864 root nexus = SPARC OEM T2BC pseudo0 at root pseudo0 is /pseudo scsi_vhci0 at root scsi_vhci0 is /scsi_vhci px0 at root: 0x0 0x0 px0 is /pci at 0 PCI Express-device: pci at 0, pxb_plx0 pxb_plx0 is /pci at 0/pci at 0 PCI-device: pci at 1, pxb_plx1 pxb_plx1 is /pci at 0/pci at 0/pci at 1 PCI-device: pci at 0, px_pci0 px_pci0 is /pci at 0/pci at 0/pci at 1/pci at 0 PCI-device: usb at 0, ohci0 ohci0 is /pci at 0/pci at 0/pci at 1/pci at 0/usb at 0 Cannot assemble drivers for root /pci at 0/pci at 0/pci at 1/pci at 0/usb at 0/hub at 1/storage at 1/disk at 0,0:b Cannot mount root on /pci at 0/pci at 0/pci at 1/pci at 0/usb at 0/hub at 1/storage at 1/disk at 0,0:b fstype ufs panic[cpu0]/thread=180e000: vfs_mountroot: cannot mount root 000000000180b950 genunix:vfs_mountroot+32c (800, 200, 0, 18a6400, 18d0000, 18f8c00) %l0-3: 00000000010d2c00 00000000010d2a88 00000000018ac070 00000000011fbc00 %l4-7: 00000000011fbc00 00000000018fb000 0000000000000600 0000000000000200 000000000180ba10 genunix:main+a0 (182b578, 101a800, 1859390, 18f5400, 3001, 182b400) %l0-3: 0000000070002000 0000000000000001 0000000070002000 000000000180c000 %l4-7: 000000000180e000 0000000070002000 000000000180c000 0000000000000000 skipping system dump - no dump device configured rebooting...  any ideas? thanks -jfs From jdd at cs.toronto.edu Sat Aug 2 00:30:02 2008 From: jdd at cs.toronto.edu (John DiMarco) Date: Sat, 2 Aug 2008 00:30:02 -0400 (EDT) Subject: Sun Managers Frequently Asked Questions (FAQ) Message-ID: <20080802043002.33E8A6E0001@apps0.cs.toronto.edu> Archive-name: sunmanagers-faq $Id: faq.html,v 1.29 2007/05/25 20:41:16 jdd Exp $ SunManagers Frequently Asked Questions This is collection of common questions posted to the sunmanagers mailing list twice a month. It is intended to benefit Sun System Managers and reduce traffic to the list by providing quick answers to common problems. Keeping with the style of a similar FAQ for comp.windows.x, questions marked with a '+' indicate questions new to this issue; those with significant changes of content since the last issue are marked by '*' The Information Files maintainer is John DiMarco . All corrections, submissions and FAQ administration-related messages should go to . Do not send questions, subscription or unsubscription requests, or sunmanagers postings to this address; they will be quietly ignored. The List Server maintainer is Bill Bradford . Any problems with the mailing list server should be directed to Bill. _________________________________________________________________ Questions 1. The Sun-Manager's Mailing list 1.1) How do I read, join, post to, or remove myself from the sunmanagers mailing list? 1.2) What is the Sun-Manager's Charter? What are the rules? 1.3) Are there any public archives for the sunmanagers list? 1.4) What should I keep in mind when posting to sunmanagers? 1.5) What other forums are there for Suns? 1.6) Where are the answers to questions about old Suns and old versions of Solaris? 1.7) What fields can I use to filter Sun Managers email? 2. Getting Help Over the Net 2.1) How do I find out what patches are available from Sun? 2.2) * How do I get help migrating to Solaris? 2.3) How do I access Sun's documentation over the net? 2.4) To which web sites can I go for help? 3. Network Directory and File Services 3.1) How do I use DNS for hostname resolution? 3.2) How do I change NIS+ credentials for the root master server? 3.3) When I compile something, errors occur saying _dlopen and other _dl routines can't be found. Why? 4. Window Systems 4.1) + What Window system GUIs are supported by Sun? 5. Disks, Tapes and SCSI 5.1) * What sector/head/cylinders parameters should be used for a hard disk? 5.2) * Can I replace an internal drive in a Sun with a higher capacity model? 5.3) Is it okay to disconnect or connect SCSI devices while powered on? 5.4) How do I configure my sun to use Exabyte 4mm DAT tape drives? 5.5) Why is tagged queueing a problem on my third-party disk? 5.6) Why don't third-party CD-ROMS work on my sun? 5.7) What size and density parameters should I use for ufsdump with a high-capacity tape drive? 5.8) My floppy/cdrom device says "device busy". What do I do? 5.9) What software is available for CD-R/CD-RW? 5.10) Where is my disk space? The "du" and "df" commands disagree. 6. Resource Management and Performance Tuning 6.1) How do I tell what caused my machine to crash? 6.2) What can I do if my machine slows to a crawl or just hangs? 6.3) How do I find out how much physical memory a machine has? 6.4) How do I find out what my machine's memory is being used for? How can I tell if I need more memory? 6.5) Why do some files take up more disk space after being copied? Why are the sizes reported by ls -l and du different? 7. HTTP and Anonymous FTP 7.1) * How do I set up anonymous ftp on my machine? 7.2) + Where can I get a Web server for Solaris? 8. Consoles, Keyboards and Key Remapping 8.1) How do I make the numeric keypad on a sun keyboard work with xterm? 8.2) How do I swap the CAPS LOCK and CONTROL keys on a sun keyboard? 8.3) How do I use a Windows PC for a Sun serial console? 9. Sun models and OS Versions 9.1) * Which Sun models run which version of SunOS? 9.2) How can my program tell what model Sun it is running on? 9.3) How do I find out a Sun's boot prom revision? 9.4) * Which hardware/software is capable of 64-bit? Which is only 64-bit? How can I tell which is running? 10. Miscellaneous Software 10.1) My remote ufsdump is failing with a "Protocol botched" message. What do I do? 10.2) * Where can I get a C compiler for Solaris? 10.3) How do I read Microsoft Word documents on my Sun? 10.4) How do I restore to a different location the contents of a tarfile created with absolute pathnames? 11. Miscellaneous Hardware 11.1) * How come my mouse occasionally doesn't work? 11.2) How can I turn my old sun into an X-Terminal? 11.3) * How can I use an SVGA monitor on my Sun? 11.4) Where can I find alternate pointing devices for my Sun? 12. Networking 12.1) Why do both my net interfaces have the same ethernet address? 12.2) How can I know the hardware vendor from an ethernet address? 12.3) * How do I set my ethernet interface to e.g. 100Mb full duplex? 12.4) How do I find out what process is using a particular port? 12.5) I have a lot of ports in WAIT states. Why? 13. Electronic Mail 13.1) * Where can I get a POP or IMAP server for my sun? 14. Printing 14.1) + How do I get started with LP-style printing in Solaris? 14.2) How do I configure a non-postscript printer for postscript? 15. Misc System Administration 15.1) I've forgotten the root password; how can I recover? 15.2) How do I disable/remap STOP-A/L1-A? 15.3) How do I manage services in Solaris 10 and later? Do I still make links in /etc/rc*.d? Answers _________________________________________________________________ 1. The Sun-Manager's Mailing list _________________________________________________________________ 1.1) How do I read, join, post to, or remove myself from the sunmanagers mailing list? Point your web browser to http://www.sunmanagers.org Persons without web access should send a mail message to "sunmanagers-request at sunmanagers.org" containing the single word "help". Messages can be posted to the list by mailing them to the address "sunmanagers at sunmanagers.org". Do not do this until you have read the charter/policy (question 1.2) and the "how to post" document at http://www.sunmanagers.org. The policy and the "how to post" document is sent to the entire list twice a month. It is also sent out to every new subscriber and is available at http://www.sunmanagers.org. The latest version of the FAQ (this file) is available at http://www.sunmanagers.org _________________________________________________________________ 1.2) What is the Sun-Manager's Charter? What are the rules? 1: This list is NOT moderated! Every message that is sent to the list will be passed on to every member of the list. 2: Requests to have addresses added or removed from the list should NOT be sent to the entire list. Instead, addresses should be added or removed via the web page at http://www.sunmanagers.org Similarly, test messages of any sort should not be sent to the list. 3: This list is intended to be a quick-turnaround trouble shooting aid for those who administer and manage Sun systems. Its primary purpose is to provide the Sun manager with a quick source of information for system management problems that are of a time-critical nature. 4: All responses are to be mailed back to the questioner and are NOT to be sent to the entire list. Any response to a list message sent to the list, rather than to the person asking the question, will be deleted without notice. The person who originally asked the question has the responsibility of summarizing the answers and sending the entire summary back to the list. When a summary is sent back to the list, the word "SUMMARY" should be the first word of the "Subject" line. 5: Discussions on ANY topic are not allowed and will not be tolerated. If you want to discuss something, take it to the appropriate Sun newsgroup. 6: If it is not specifically related to Sun system management, then it does NOT belong on this list. Requests for vendor recommendations are tolerated, provided that the hardware in question is something that system managers normally purchase. 7: Commercial Advertising of any sort on the list is strictly prohibited. 8: Postings about employment, either employment sought or offered, are not permitted on this list. Please use a more appropriate forum, e.g. one of the newsgroups in the misc.jobs USENET hierarchy. 9: Requests for software (free or otherwise) should be limited to software that is directly related to Sun SYSTEM MANAGEMENT ONLY. 10: Read the appropriate manuals BEFORE posting, including the "Read This First" documents. Oftentimes the manuals contain answers for common problems. 11: When including a traceback from a system panic, make sure that it is a symbolic traceback. Numeric tracebacks (the ones included as part of the panic message) are not helpful; don't bother sending them to the list. 12: A posting to sunmanagers is not a general invitation to email the poster -- if you wish to send email to a sunmanagers poster, the email you send should be related to the posting, else it will be unsolicited email and may be treated like any other unsolicited email (e.g. spam). Sunmanagers is not to be used to collect email addresses of people who manage Sun systems. Those who do this not only violate the list's policy, but risk seriously offending the very people they are attempting to reach. 13: PLEASE PLEASE PLEASE...Think before you send a message! Ask yourself "is this really appropriate?" There are enough other newsgroups and mailing lists around to cover the marginal topics. Perhaps there is another forum that is more appropriate? Check the list of Sun specific newsgroups included in the FAQ. Perhaps your message would be more appropriate there? Remember that Sunmanagers is very public: we have thousands of subscribers, all postings are archived for posterity on various archive sites, and these sites are in turn searchable via various web engines. Submitting a posting is irreversible -- once it goes out, it cannot be taken back! Failure to adhere to these guidelines may result in severe chastisement by the list participants. Not only will you succeed in looking like a careless fool, and in making Sun Systems Managers all over the world annoyed at your incompetence, you may end up damaging your professional reputation. _________________________________________________________________ 1.3) Are there any public archives for the sunmanagers list? Sunmanagers' official archive is accessible at http://www.sunmanagers.org All postings are automatically archived. It is our policy not to accommodate requests to modify the archives, so if you are uncomfortable with your submissions in their entirety being public, do not submit them. Also, various members also keep their own archives on their own initiative. Some of these are public. Here are some we know about: http://aa11.cjb.net/sun_managers/index.htm Hank Leininger maintains a searchable archive site of messages (both questions and summaries) in Florida. It can be accessed at: http://marc.theaimsgroup.com/?l=sun-managers Dataman Benelux in the Netherlands hosts a "fuzzy" full-text index of the Sun Managers mailing list at: http://www.dataman.nl/cgi-bin/sunmanagers Manfred Liebchen maintains an archive site in Germany. It can be accessed at: http://www.uni-koeln.de/RRZK/Abt-Systeme/sun/infos/SUN-MANAGERS/sunman .html Older summaries (up to mid-1999) are available at http://www.latech.edu/sunman.html _________________________________________________________________ 1.4) What should I keep in mind when posting to sunmanagers? * VERY IMPORTANT! Before you post, read the sunmanager's list policy, which is available at http://www.sunmanagers.org * Sun Managers is a huge unmoderated mailing list. Every message you send will be passed on to every member of the list. This means you have access to a much larger audience when you need help, but it also means you can embarrass yourself in front of a huge number of people, most of them professionals in your field, including colleagues, peers, and possible future employers. Further, your posting will be archived in various places, some public, some private -- we have no way of knowing all the archive locations. Some of these archives, including the official one at http://www.sunmanagers.org, are web-searchable. It is our policy not to accommodate requests to remove or modify postings as archived on http://www.sunmanagers.org. Once you submit your message, it will be irretrievably accessible to a large number of people. There is no "taking it back". * Sun Managers is completely voluntary. Nobody is required to help you. We are all cooperating by sharing our knowledge. Accept with grace whatever responses you get, and don't hound people if they are helpful or they won't be the next time. * Sun Managers is not the list to use when you run out of other places to post. Job postings, PC questions, X questions all have their own lists and newsgroups. Use only the appropriate list or newsgroup for such things, not Sun Managers. Inappropriate postings will only make people annoyed at you. * The more information you give about a problem, the easier it is for others to help you. This doesn't mean you should uuencode the kernel and post it, but you should include your OS version, your hardware, and all relevant symptoms of your problem. Unless the request is of a general nature, the output of "uname -a" is almost certainly helpful. * When making a summary, please summarize as much as possible all the answers you received, even the ones you didn't decide to follow: if you receive several different suggestions, and decided on one, remember that somebody else reading the summary may not find the suggestion you followed to be the best one in his or her situation, and may benefit from one of the suggestions you didn't choose. * Be generous. If you have the information requested (especially if it is obscure) then please respond. You may be the person requesting help next time. _________________________________________________________________ 1.5) What other forums are there for Suns? Other forums that relate to Suns: USENET Newsgroups (accessible via "rn", "readnews", "nn", netscape, etc.): There is an entire USENET hierarchy devoted to Sun equipment. Some of these groups include: * comp.sys.sun.admin - Sun system administration * comp.sys.sun.announce - Announcements pertaining to Sun equipment * comp.sys.sun.apps - Applications that run on Suns * comp.sys.sun.hardware - Sun hardware (and clones too, I think) * comp.sys.sun.misc - Miscellaneous * comp.sys.sun.wanted - Sun stuff to buy or sell Other newsgroups that may also be of interest: * comp.unix.solaris - Solaris on all platforms * alt.sys.sun - may not be available everywhere * comp.sys.sun - newsgroup equivalent of sun-spots * comp.sources.sun - Sun-specific sources (not very active) Mailing lists: Sun Flash (Sun Product Announcements/news releases) sunflash-request at sunvice.East.Sun.COM - add/remove requests SunHelp (Discussion/help/chat about Sun machines and Software) http://www.sunhelp.org/mailman/listinfo/sunhelp Rescue (Rescuing old Sun equipment from the dump) http://www.sunhelp.org/mailman/listinfo/rescue Sunergy (Sun Commercial Newsletter) sunergy_information at Sun.COM - add/remove requests Suns-at-home (Home use of Sun Workstations) Suns-at-Home-Request at net-kitchen.com - add/remove requests Suns-at-Home at net-kitchen.com - submissions Suns-at-Home-Archives at net-kitchen.com - archive requests ssa-managers (Sun RAID software and hardware products) majordomo at eng.auburn.edu - add/remove requests (e.g. send "subscribe ssa-managers" in message body) veritas-users (Veritas products) http://mailman.eng.auburn.edu/mailman/listinfo CIAC notes (US. DOE Computer Incident Advisory Capability) ciac-listproc at llnl.gov - add/remove requests listmanager at cheetah.llnl.gov - human list manager CERT Advisory mailing list (security notifications for Suns and others) cert-advisory-request at cert.org - add/remove requests Solaris on Intel-based (x86) machines http://groups.yahoo.com/group/solarisx86/ Old list archives at: http://www.egroups.com/list/solarisonintel/ Auspex: managers of Auspex NFS file servers auspex-request at princeton.edu - add/remove requests auspex at princeton.edu - submissions Solbourne: managers of Solbourne SPARC systems "info-solbourne" list majordomo at acsu.buffalo.edu - add/remove requests info-solbourne at acsu.buffalo.edu - submissions ftp://ftp.acsu.buffalo.edu/pub/misc/info-solbourne.tar.z archives disksuite-l: for users who use Sun's Solstice Disksuite software majordomo at lists.veritel.com.br - add/remove requests sysadm at veritel.com.br - list owner Linuxmanagers: for users of Linux, including Sun Linux. http://www.linuxmanagers.org NOTE: if you wish to be added to one of the above mailing lists, send mail to the REQUEST address! Do not send add requests to the main address! For Web pages, see the answer to question 2.4. _________________________________________________________________ 1.6) Where are the answers to questions about old Suns and old versions of Solaris? Those questions and answers used to be in this FAQ, but since they're no longer frequently asked, they've been moved elsewhere. The FAQ as of late 2005 contained information about pre-UltraSPARC suns and versions of Solaris before Solaris 8, and is available at ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq-2005. The FAQ as of late 2000 contained information about pre-SPARC suns, early SPARCstations, and SunOS 4.x, and is available at ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq-2000. _________________________________________________________________ 1.7) What fields can I use to filter Sun Managers email? The following headers will exist in any mail to the list: To: sunmanagers at sunmanagers.org List-Help: List-Post: List-Subscribe: , List-Id: The Sun Managers Mailing List List-Unsubscribe: , List-Archive: _________________________________________________________________ 2. Getting Help Over the Net _________________________________________________________________ 2.1) How do I find out what patches are available from Sun? If you have a software service agreement with Sun, you can use Sun's "SunSolve ONLINE" service to obtain patches. Check your service agreement for details. Many anonymous ftp sites have partial collections of patches. WARNING: if you ftp patches from an ftp site, you are trusting whomever put them there. To be absolutely safe, get your patches from a trusted source. Rik Harris maintains a WAIS archive (sun-fixes.src) of most available patch READMEs. The Sun User Group (SUG) CD ROM also has a collection of Sun patches. _________________________________________________________________ 2.2) * How do I get help migrating to Solaris? Start by reading the Solaris FAQ, maintained and posted periodically to comp.unix.solaris by Casper Dik . It can be obtained at http://www.science.uva.nl/pub/solaris/solaris2 Then go to the Solaris Security FAQ, maintained by John Pancharian and hosted by IT World at http://www.itworld.com/Comp/2377/security-faq/ Sun has a programme for developers/companies to migrate to Solaris. It's documented at http://advantage.sun.com/partners/10moves/. _________________________________________________________________ 2.3) How do I access Sun's documentation over the net? Sun has a web site devoted to documentation, at http://docs.sun.com _________________________________________________________________ 2.4) To which web sites can I go for help? This is not a complete list, but: First, see the answer to question 2.2. Sun's documentation is available at http://docs.sun.com You can search the Sun newsgroups at http://www.dejanews.com Sun-Managers Archives are described in the answer to question 1.3 above. Some sites suggested by Jeffrey Meltzer are: * SolarisGuide - http://www.solarisguide.com * SunHelp - http://www.sunhelp.org * SolarisCentral - http://www.solariscentral.org * SunGuru - http://www.sunguru.com * SunFreeware - http://www.sunfreeware.com TechTarget has a search engine at http://searchenterpriselinux.techtarget.com that also covers Solaris. Eric De Mund suggests the BigAdmin site run by Sun, at http://www.sun.com/bigadmin Alan Pae suggests Sun Country, at http://www.ilkda.com _________________________________________________________________ 3. Network Directory and Files Services _________________________________________________________________ 3.1) How do I use DNS for hostname resolution? In Solaris 2.x, this is easy: simply edit /etc/nsswitch.conf and put "dns" before (or instead of) nis or nisplus on the line that begins with "hosts:". For example, to look up hostnames first in the host file and then in the DNS, use "hosts: files dns" _________________________________________________________________ 3.2) How do I change NIS+ credentials for the root master server? If an NIS+ system is functioning correctly and only the root password and root private keys for the system need to be changed, follow these steps: 1) Login as root for the system and change the root password in the /etc/shadow file: {root}3% passwd passwd: Changing password for root New password: Re-enter new password: {root}4% 2) Change the system's private key in the cred table: {root}4% chkey -p Updating nisplus publickey database. Reencrypting key for 'unix.ramayan at bharat.i n'. Please enter the Secure-RPC password for root: Please enter the login password for root: {root}5% 3) If running replica server(s) then wait until the changes to the credential object table has been propagated to its replicas. This could be up to 2 minutes. 4) Change the system's /etc/.rootkey: {root}5% keylogin -r Password: Wrote secret key into /etc/.rootkey {root}6% The procedure above will work for any system -- root server, root replica, non-root servers, and all clients. The steps above change only the system's root password and private keys, not the public keys for the system. Thanks to Ronald W. Henderson . However, if you want to change all the root credentials, including the public key, follow these steps: Use the passwd command on the root master server to change the root password. But DO NOT follow this with a chkey -p to update the credentials for the root master server, because this will disable the entire NIS+ domain. The only way to recover from this is to rebuild the domain from scratch! It is possible to change the credentials of the root master server, but it is not easy. The procedure follows: To change the keys for the root master server do as follows: 1. use these commands in this order: nisupdkeys -CH master.server.name. groups_dir.domain.name. nisupdkeys -CH master.server.name. org_dir.domain.name. nisupdkeys -CH master.server.name. domain.name. (This CLEARS the public key for the HOST "master.server.name" in this directory.) 2. Kill rpc.nisd and restart it at security level O then run this command: nistbladm -R cname=master.server.name. cred.org_dir.domain.name. nisaddcred des 3. Shutdown and restart any replicas of org_dir.domain.name. at run level O nisping org_dir.domain.name. nisdupdkeys domain.name. nisupddkeys org_dir.domain.name. nisupdkeys groups_dir.domain.name. 4. Kill and restart all rpc.nisd servers at level O to security level 2. Note that changing a server's key affects all directory objects containing the key. Thanks to Rogerio Rocha and Sun INFODOC ID 2213 for this information. _________________________________________________________________ 3.3) When I compile something, errors occur saying _dlopen and other _dl routines can't be found. Why? You are probably trying to compile something statically. You must either include stub routines for the _dl routines, or you must link the C library (or -ldl) dynamically. The source code below provides do-nothing stubs for the routines in question. /* libdl stubs -- John DiMarco */ char *dgettext(domainname, msgid) char *domainname; char *msgid; { return(msgid); } void *dlopen(pathname, mode) char *pathname; int mode; { return((void *)NULL); } void *dlsym(handle, name) void *handle; char *name; { return((void *)NULL); } char *dlerror() { return(NULL); } int dlclose(handle) void *handle; { return(0); } _________________________________________________________________ 4. Window Systems _________________________________________________________________ 4.1) + What Window system GUIs are supported by Sun? Sun's default window system for Solaris is CDE; Gnome is also supported. Sun's Java Desktop System and the Sunray software for Linux uses Gnome. _________________________________________________________________ 5. Disks, Tapes and SCSI _________________________________________________________________ 5.1) * What sector/head/cylinders parameters should be used for a hard disk? The format program can almost always figure this out on its own by querying the drive, but if you wish, you can specify your own in /etc/format.dat. A format.dat file containing entries submitted by various people is available for anonymous ftp at ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/format.dat It is currently maintained by John DiMarco (jdd at cs.toronto.edu). New entries are welcome; mail them to sunmanagers-format at sunmanagers.org For SCSI disks on modern suns, a format.dat entry can be auto-generated using John DiMarco's scsiinfo program, available at ftp://ftp.cs.toronto.edu/pub/jdd/scsiinfo/. It will query the disk directly, and has an option to generate an appropriate format.dat entry. Finally, you can compute your own entry. For SCSI disks, any combination of cylinders, heads, and sectors that does not add up to more than the rated formatted capacity of the drive will normally work. A grossly different geometry may result in some slight performance degradation, but it should still work. The SCSI protocol hides most of the drive details from the host, and hence the host need not know much about the drive to format or use it. _________________________________________________________________ 5.2) * Can I replace an internal drive in a Sun with a higher capacity model? Yes, usually. If you purchase it from someone other than Sun, it is wisest to make sure that it is either a model of drive that is supported by Sun for that machine, or that it at least does not dissipate more heat than the hottest of the drives supported by Sun. The Sun Systems Handbook lists various drives supported on various models; you can query it on the web for modern Suns at http://sunsolve.sun.com/handbook_pub/Systems. For systems which are not maximally configured (e.g. there are empty internal drive bays), it might be safe to exceed this limit a bit, but caveat emptor. Disk drive heat dissipation/power figures are available on the drive's datasheet, available on the drive vendor's web site. The most relevant figure is the wattage indicated for "Read/Write" or "Seek". Unfortunately, different vendors report this in different ways; read the vendor's documentation to see what this figure indicates. This figure is sometimes indicated in amps at 5V and 12V; convert to watts by multiplying the voltage by the amperage in each case, and adding the two together. _________________________________________________________________ 5.3) Is it okay to disconnect or connect SCSI devices while powered on? On older machines (without onboard SCSI controllers), it is never a good idea to do this. You risk blowing a fuse on the CPU board, or part of the SCSI hardware. On newer machines (sparcstations and later), many people have done this regularly without problems. Halt the machine (sync;L1-A), remove or add the device, then continue. However, it is possible to blow the SCSI termination power fuse on the motherboard. If your machine hangs immediately on powerup unless the SCSI bus is externally terminated, this fuse may need to be replaced. Caveat Emptor. _________________________________________________________________ 5.4) How do I configure my sun to use Exabyte 4mm DAT tape drives? Add the following to /kernel/drv/st.conf: tape-config-list = "EXABYTE EXB-4200", "Exabyte 4mm EXB-4200", "EXBT-4200", "EXABYTE EXB-4200c", "Exabyte 4mm EXB-4200c", "EXBT-4200c" EXBT-4200 = 1,0x34,1024,0x0029,4,0x63,0,0,0,3; EXBT-4200c = 1,0x34,1024,0x0029,4,0x63,0,0x13,0,3; Exabyte also recommends that their 4mm tape drives have firmware revision levels of at least the following when used on suns: * EXB-4200 No restriction, but revision 148 or higher is recommended * EXB-4200c Level 149 minimum (mode select for compression) Thanks to Dave Hightower . _________________________________________________________________ 5.5) Why is tagged queueing a problem on my third-party disk? Tagged Command Queueing (TCQ) is an optional part of the SCSI-2 specification. It permits a drive to accept multiple I/O requests for execution later. These requests are "tagged" by a reusable id so that the drive and the OS can keep track of them. The drive can reorder these requests to optimize seeks. For more details, see the SCSI-2 specifications. A draft version is available at ftp://ftp.cs.toronto.edu/pub/jdd/scsi-doc/scsi2.10b.gz SunOS 4.x and earlier never uses tagged queueing. However, Solaris 2.x will make use of tagged queuing if the drive claims to support it. Unfortunately, some drive manufacturers have found it hard to design their drives to do tagged queueing properly, and this particular area has been a common source of bugs in drive firmware. If it is not possible to turn off tagged queueing in the drive that is causing the problem, Solaris 2.x can be told not to use tagged queueing at all, by putting the following line in /etc/system: set scsi_options & ~0x80 The "scsi_options" kernel variable contains a number of bit flags which are defined in /usr/include/sys/scsi/conf/autoconf.h. 0x80 corresponds to tagged queueing. However, this turns off tagged queueing for the entire machine, not just the problematic drive. Because tagged queueing can provide a significant performance enhancement for busy drives, this may not always be desirable. In Solaris 2.4 and later, it is possible to disable tagged queueing and set or clear other scsi options on a per-controller or per-drive basis. The appropriate technique is described in the esp(7) and isp(7) man pages. _________________________________________________________________ 5.6) Why don't third-party CD-ROMS work on my sun? When Sun first decided to add CD-ROM support, there were already a great number of systems in the field, all of which contained boot proms that expected to boot from disks with 512 byte sectors. Sun had to decide between replacing a whole lot of boot proms or finding a way to make a CDROM act like a disk with 512 byte sectors in order to support it as a boot device. They chose the latter approach. Many third party CD-ROM drives use 1024 or 2048-byte sectors, which causes the SCSI driver to see a "data overrun". When the driver asks for N "blocks" (which it thinks are 512 bytes each ) it gets more data back than it expected. Some CD-ROM drives can be told to use 512 byte sectors by setting a jumper, cutting a trace, or using a software command (mode select). Details vary widely, but if you are seeing a data overrun on a third party CD-ROM, then it is most likely doing 1K or 2K transfers and will need some work to be a boot device for a Sun. Thanks to Kevin Sheehan For more information about third-party CD-ROMS on Suns, consult the CD-ROM FAQ, maintained by Mike Frisch and Martin Hargreaves . It can be found on the World Wide Web at ""http://saturn.tlug.org/suncdfaq". A UK mirror is available at ""http://www.datamodl.demon.co.uk/suncd/". _________________________________________________________________ 5.7) What size and density parameters should I use for ufsdump with a high-capacity tape drive? The only purpose of the ufsdump size and density parameters is to let dump calculate the capacity of each tape and then decide for itself when it needs a new tape. If the filesystem you are dumping is larger than the tape, you will need to use more than one tape. But ufsdump can detect the end of media for all modern tape drives, and will automatically prompt for new tapes when needed, so as long as the size and density parameters indicate a tape as long as or longer than the one you're using, ufsdump will behave properly. Thanks to Niall O Broin _________________________________________________________________ 5.8) My floppy/cdrom device says "device busy". What do I do? The Volume Manager (vold) is probably holding the device open. You can access a floppy through the volume manager by typing "volcheck" and looking in /floppy/*. CD-ROMs don't require volcheck; just insert one and the volume manager should automatically notice, and mount it under /cdrom/*. Unmount by typing "eject floppy" or "eject cdrom", respectively. The Volume Manager can be configured by editing /etc/vold.conf. If you need to access a floppy or CD-ROM special device, however, you may need to turn off the volume manager. As root, type "/etc/init.d/volmgt stop". To turn it back on, type "/etc/init.d/volmgt start". _________________________________________________________________ 5.9) What software is available for CD-R/CD-RW? Commercial Software: GEAR by Elektoson - http://www.elektroson.com/ Young Minds - http://www.ymi.com/ - High-end integrated hardware/software solution Creative Digital Research - http://www.cdr1.com/ Joerg Schilling has developed an excellent cd recording package called cdrecord. This package should meet most needs. See http://www.fokus.gmd.de/research/cc/glone /employees/joerg.schilling/private/cdrecord.html for much more information, including supported hardware. Andy McFadden has an excellent CD-Recordable FAQ at: http://www.cdrfaq.org Thanks to Mark Belanger _________________________________________________________________ 5.10) Where is my disk space? The "du" and "df" commands disagree. If a process is holding open a file, and that file is removed, the space belonging to the file is not freed until the process either exits or closes the file. This space is counted by "df" but not by "du". This often happens in /var/log or /var/adm when a long-running process (e.g. syslog) is holding open a file. In the case of syslog, send it a HUP (e.g. kill -HUP ). You can use LSOF (ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof) to find which processes are holding open a particular file. Thanks to Stefan Voss and Michael R. Zika Under Solaris 2.6 and later, files which have been unlinked can still be accessed through the /proc interface. If a process is holding open such a file for writing, but it's inconvenient or impractical to kill the process or get it to close the file, you can free up the disk space by truncating (not removing) the file from under /proc; e.g., # cd /proc/1234/fd # ls -l c--------- 1 root 24, 12 Jan 1 11:33 0 c--------- 1 root 24, 12 Jan 1 11:33 1 c--------- 1 root 24, 12 Jan 1 11:33 2 --w------- 1 root 314159265 Jan 1 11:37 3 # : > 3 # ls -l c--------- 1 root 24, 12 Jan 1 11:33 0 c--------- 1 root 24, 12 Jan 1 11:33 1 c--------- 1 root 24, 12 Jan 1 11:33 2 --w------- 1 root 0 Jan 1 11:38 3 Thanks to Dan Astoorian Brian Poole writes: Another possible cause of df & du disagreeing is if the files are being 'hidden' under a mount. I ran into this recently where I had a large number of files in /tmp (from adding patches in single user mode) that were on the root partition. Thus when I was looking for them in multiuser mode, I couldn't find them because of the tmpfs overlay. I exported the root partition via NFS and upon mounting it found the hidden files and deleted them. _________________________________________________________________ 6. Resource Management and Performance Tuning _________________________________________________________________ 6.1) How do I tell what caused my machine to crash? The crash messages will usually be displayed on the console, and are usually logged to /var/adm/messages via syslog as well after a warm reboot. In older versions of Solaris, the "dmesg" command may also show crash messages. If your system repeatedly crashes with similar looking errors, try searching through the patch list on the Sun patch database for a description that matches your machine. In versions of Solaris 2 up to and including Solaris 2.6, uncomment the "savecore" line in the file /etc/init.d/sysetup to enable crash dumps. As of Solaris 7 and later, crash dumps are enabled by default; see the manual page for dumpadm(1M) for information on how to customize system dump configuration. To report a crash dump, you need a symbolic traceback for it to be useful to the person looking at it. Type the following: cd /var/crash/`hostname` echo '$c' | adb -k unix.0 vmcore.0 The "crash" utility can be useful for analyzing crash dumps for Solaris up to and including Solaris 8. "Crash" has been superseded by "mdb" (modular debugger) as of Solaris 8. Thanks to Dan Astoorian _________________________________________________________________ 6.2) What can I do if my machine slows to a crawl or just hangs? Try running "ps" to look for large numbers of the duplicate programs or processes with a huge size field. Some system daemons occasionally can get into a state where they fork repeatedly and eventually swamp the system. Killing off the child processes doesn't do any good, so you have to find the "master" process. It will usually have the lowest pid. Another useful approach is to run vmstat to pin down what resource(s) your machine is running out of. You can tell vmstat to give ongoing reports by specifying a report interval as its first argument. The programs "top" and "sps" are good for finding processes that are loading your system. "Top" will give you the processes that are consuming the most cpu time. "Sps" is a better version of "ps" that runs much faster and displays processes in an intuitive manner. Top is available at ftp://ftp.groupsys.com/pub/top/. Sps is available at ftp://ftp.csv.warwick.ac.uk/pub/solaris2/sps-sol2.tar.gz. Doug Hughes has written a small, quick PS workalike called "qps", available from his web page at http://www.eng.auburn.edu/users/doug/second.html Sometimes you run out of memory and you won't be able to run enough commands to even find out what is wrong. You will get messages of the type "out of memory" or "no more processes". Note that "out of memory" refers to virtual memory, not physical memory. On a Solaris system, virtual memory is generally equal to the sum of the swap space and the amount of physical memory (less a roughly constant amount for the kernel) on the machine. The command "swap -s" will tell you how much virtual memory is available. You can sync the disks to minimize filesystem corruption if you have to crash the system: Use the L1-A sequence to crash the system. If you are on an older system, type "g0" and you will get the message "panic: ... syncing file systems". When you see the word "done", hit L1-A again and reboot. On systems with the "new" prom, type "n" to get into the new command mode and type "sync". _________________________________________________________________ 6.3) How do I find out how much physical memory a machine has? Use /usr/sbin/prtconf if the machine is running Solaris. If it's a sun4u running Solaris 8 or previous, /usr/platform/sun4u/sbin/prtdiag is very helpful. It's /usr/sbin/prtdiag in Solaris 9 and later. On high-end machines, /usr/sbin/cfgadm -al can also provide memory information. The banner message on reboot (or type "banner" in the monitor on machines with Openboot proms) will usually report the amount of physical memory. Alternatively, you can open up the case and count SIMMS and/or memory boards. A perl script "memconf" is also available that identifies the sizes and locations of SIMM/DIMM memory modules installed in a Sun system. It also works on several SPARC clones and with Sun Explorer data. It is maintained by Tom Schmidt . Download memconf from http://www.4schmidts.com/unix.html _________________________________________________________________ 6.4) How do I find out what my machine's memory is being used for? How can I tell if I need more memory? To discover how much virtual memory (i.e. swap) is free, run "swap -s" or "vmstat". If you're using tmpfs for /tmp, "df /tmp" will also work. Discovering how physical memory is being used can be more difficult, however. Memory pages that are not being used by processes are used as a sort of extended cache, storing pages of memory-mapped files for possible later use. The kernel keeps only a small set of pages free for short-term use, and frees up more on demand. Hence the free memory reported by vmstat is not an accurate reflection, for example, of the amount of memory available for user processes. An easy way to determine whether or not your machine needs more memory is to run vmstat and examine the po (page out) column and the sr (scan rate) column. If these columns consistently show large numbers, this suggests that your machine does not have enough memory to support its current workload, and frequently needs to write pages belonging to active processes to disk in order to free up enough memory to run the current job. _________________________________________________________________ 6.5) Why do some files take up more disk space after being copied? Why are the sizes reported by ls -l and du different? Some files -- core files being one common example -- contain "holes", areas which were seeked over without being written. These files are called "sparse". When read back, these areas appear to contain zeros; however they do not occupy disk space. The "length" of such a file (as reported by "ls -l") will exceed its "size" (as reported by "ls -s" and reflected in the results of du or df). cp, cpio, and tar do not detect holes; they read and copy the zeros, and the resulting files will contain all-zero blocks (which occupy space) where the input files contained holes (which do not). dump will detect holes in the dumped files, and restore will reproduce them. Thanks to Perry Hutchison GNU tar has an "-S" option which preserves holes, and Joerg Schilling's "star" has "-sparse" and "-force_hole" options which can be used to preserve and re-insert holes, respectively. star is available for download at ftp://ftp.fokus.gmd.de/pub/unix/star _________________________________________________________________ 7. HTTP and Anonymous FTP _________________________________________________________________ 7.1) * How do I set up anonymous ftp on my machine? See the ftpd man page, and follow its instructions. You will also need to set up nsswitch.conf in etc. However, you should consider using a different ftpd, such as http://www.wu-ftpd.org. Solaris "pkg" versions of proftpd and wuftpd are available at: http://metalab.unc.edu/pub/packages/solaris/sparc/ ftp://ftp.adelaide.edu.au/pub/4.3/ftpd-sirius.tar.Z The stock Sun ftpd will log some information if you add the "-l" flag in /etc/inetd.conf: ftp stream tcp nowait root /usr/etc/in.ftpd in.ftpd -l Warning: it will log passwords of ordinary users. Also enable syslogd by adding: daemon.info /var/adm/syslog to "/etc/syslog.conf". _________________________________________________________________ 7.2) + Where can I get a Web server for Solaris? The open-source Apache web server and related tools are available on the Solaris Software Companion CD, which is part of the media kit for the Solaris distribution. The contents of this CD are also available for free download at http://www.sun.com/software/solaris/freeware. Apache binaries can also be retrieved from the following sites and many others: * http://www.sun.com/software/solaris/freeware * ftp://metalab.unc.edu/pub/packages/solaris/sparc/ * http://www.gnu.org/order/ftp.html * http://sunfreeware.com The Sun Java System Web server is available for download from Sun at http://www.sun.com/software/products/web_srvr/home_web_srvr.xml; the Sun Java System Application Server is available for purchase from Sun at http://www.sun.com/software/products/appsrvr. _________________________________________________________________ 8. Consoles, Keyboards and Key Remapping _________________________________________________________________ 8.1) How do I make the numeric keypad on a sun keyboard work with xterm? You need to patch the /usr/lib/X11/app-defaults/XTerm and $OPENWINHOME/lib/app-defaults/XTerm files as described in sun patch 100713-01 or later. Thanks to Margarita Suarez _________________________________________________________________ 8.2) How do I swap the CAPS LOCK and CONTROL keys on a sun keyboard? There are two ways to do it, one with xmodmap (for X11 only), and the other using keytables. Margarita Suarez suggests editing $OPENWINHOME/etc/keytables/US5.kt. There are two places where keys 119 (CapsLock) and 76 (Control) should be swapped: the MODMAP section and the KEYSYMMAP section. The latter is most important, because that's where the "Pseudo-Lock" function (which controls the locking behaviour of the key) is defined. Doug Hughes suggests using xmodmap with the following: remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L In X11, you can change your keyboard layout as you please using the xkeycaps application, which allows you to edit and remap your keyboard on the fly, as well as save configurations to be sourced by xmodmap. xkeycaps is available from http://www.jwz.org/xkeycaps/ and in the contrib section of your friendly X11 source archive. Thanks to Dan Pritts for the info on xkeycaps. _________________________________________________________________ 8.3) How do I use a Windows PC for a Sun serial console? Wire up a serial cable from the Sun's serial cable to one of the PC serial ports. PC serial ports are usually (but not always) DB9 (9-pin), while Sun serial console ports are usually (but not always) 25-pin (DB25). You generally need to connect them through a "null modem adapter". For more information on serial ports, see Sunhelp's UNIX serial port resources page, at http://www.sunhelp.org/unix-serial-port-resources The next problem is that the version of Hyperterminal which comes with some versions of Windows cannot generate a BREAK signal. You can obtain a new version of Hyperterminal from http://www.hilgraeve.com/htpe/index.html There are many free alternative terminal programs. Special mention should be made of TeraTerm: http://hp.vector.co.jp/authors/VA002416/teraterm.html which has been updated with SSH support as Teraterm Pro, which is available from http://www.ayera.com/teraterm For newer suns which support ALOM, a serial or telnet connection to the ALOM is generally preferable. A pinout of the serial RJ-45 ALOM connector can be found in Sun's "Sun Advanced Lights Out Manager (ALOM) 1.6 Administration Guide". Thanks to Harvey Wamboldt _________________________________________________________________ 9. Sun models and OS Versions _________________________________________________________________ 9.1) * Which Sun models run which versions of SunOS? SunOS 5.x = Solaris 2.x Sun dropped the "2." when Solaris (2.)7 came out. i.e. Solaris 7 = "Solaris 2.7" = SunOS 5.7, Solaris 8 = "Solaris 2.8" = SunOS 5.8 and so on. In the following list, the specified OS is the earliest supported on the specified hardware. Some CPU modules may require later OS versions than listed. * Ultra 1 model 140, 170: Solaris 2.5 * Ultra 1 model 140E, 170E, 200E: Solaris 2.5.1 * Ultra 2: Solaris 2.5.1 * Ultra 5,10,30,60,250,450: Solaris 2.5.1HW1297 or Solaris 2.6HW0398 * Ultra Enterprise: Solaris 2.5.1 * SunBlade 100, SunBlade 1000: Solaris 8HW1000 * SunBlade 150: Solaris 8 5/03; Solaris 9 4/03 * 3800, 4800, 4810, 6800: Solaris 8HW0401 * B100s: Solaris 8 12/02, Solaris 9 4/03 * V100: Solaris 8 2/02 * V120: Solaris 8 10/01 * V210, V240: Solaris 8 12/02, Solaris 9 4/04 * V250: Solaris 8 7/03, Solaris 9 8/03 * 280R: Solaris 8 2/02, Solaris 9 12/02 * V440: Solaris 8 7/03, Solaris 9 12/03 * V490,V890: Solaris 8 2/04, Solaris 9 4/04, Solaris 10 3/05 * V880: Solaris 8 10/01, Solaris 9 4/03 * E2900,E4900,E6900: Solaris 8 2/04, Solaris 9 4/04, Solaris 10 3/05 * B200x, v20z, v40z: Solaris 9 x86 4/04 * v20z,v40z single-core: Solaris 10 x86, Solaris 9 HW 4/05 x86 * v20z,v40z dual-core: Solaris 10 x86, Solaris 9 HW 9/05 x86 * X2100: Solaris 10 x86 * X4100,4200: Solaris 10 x86 3/05HW1 * T1000: Solaris 10 1/06 * T2000: Solaris 10 3/05HW2 9.2) How can my program tell what model Sun it is running on? On older suns, the model type is encoded in the hostid, and /usr/sbin/prtconf will reveal the model type. "Suntype", written by John DiMarco (jdd at cs.toronto.edu) is a shell script which does the appropriate thing on all suns. It is available for anonymous ftp at ftp://ftp.cs.toronto.edu/pub/jdd/suntype Alternatively, grab Michael Cooper's "sysinfo" program, which provides all sorts of information about a given system, including the machine type. sysinfo is available on the web at http://www.magnicomp.com/, although it is now a commercial product that is free only for educational and non-profit organizations. _________________________________________________________________ 9.3) How do I find out a Sun's boot prom revision? Type "banner" at the prom, or type "/usr/sbin/prtconf -V" to determine the prom revision of a particular machine. Alternatively, grab Michael Cooper's "sysinfo" program, which provides all sorts of information about a given system, including the prom revision. sysinfo is available on the web at http://www.magnicomp.com, although it is now a commercial product that is free only for educational and non-profit organizations. _________________________________________________________________ 9.4) * Which hardware/software is capable of 64-bit? Which is only 64-bit? How can I tell which is running? All UltraSPARC and SPARC64 (Primepower) hardware is capable of running in 64-bit mode; earlier SPARCs (HyperSPARC, SuperSPARC, etc.) are 32-bit only. Only some UltraSPARC-I, UltraSPARC-II, and UltraSPARC-II-i systems are capable of both 32-bit and 64-bit operation; later UltraSPARC systems are 64-bit only. Early UltraSPARC-I hardware (up to 200MHz) suffers from a bug where, in 64-bit mode, a certain code sequence can cause the processor to stall, and thus UltraSPARC-I machines run in 32-bit mode by default. To allow a 64-bit kernel on such a machine, edit/create /platform//boot.conf and add the line: ALLOW_64BIT_KERNEL_ON_UltraSPARC_1_CPU=true All Sun Opteron hardware is capable of both 64-bit and 32-bit operation, but Solaris x86 on some Opteron models (X2100, X4100, X4200) runs in 64-bit mode only. Sun Xeon and Pentium-III hardware are capable only of 32-bit operation. "isainfo -kv" or "isainfo -b" will indicate whether a system is running in 32-bit or 64-bit mode. _________________________________________________________________ 10. Miscellaneous Software _________________________________________________________________ 10.1) My remote ufsdump is failing with a "Protocol botched" message. What do I do? The problem produces output like the following: ... DUMP: Dumping /dev/rsd0a (/) to /dev/nrst8 on host foo DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 8232 blocks (4.02MB) on 0.00 tape(s). DUMP: Protocol to remote tape server botched (in rmtgets). rdump: Lost connection to remote host. DUMP: Bad return code from dump: 1 This occurs when something in .cshrc (or .profile) on the remote machine prints something to stdout or stderr (eg. stty, echo). The remote ufsdump command doesn't expect this, and chokes. Other commands which use the rsh protocol (eg. rdist, rtar) may also be affected. The way to get around this is to add the following line near the beginning of .cshrc, before any command that might send something to stdout or stderr: if ( ! $?prompt ) exit This causes .cshrc to exit when prompt isn't set, which distinguishes between remote commands (eg. rdump, rsh) where these variables are not set, and interactive sessions (eg. rlogin) where they are. _________________________________________________________________ 10.2) * Where can I get a C compiler for Solaris? Sun's "Studio" compiler suite can be obtained at http://www.sun.com/software/products/studio. Various third-party commercial SPARC compilers are also available, including: * http://www.ghs.com * http://www.apogee.com * http://www.windriver.com * http://www.pgroup.com * http://www.intel.com (Solaris x86 only) The open-source GCC compiler and related tools are available on the Solaris Software Companion CD, which is part of the media kit for the Solaris distribution. The contents of this CD are also available for free download at http://www.sun.com/software/solaris/freeware Thanks to Eric Boutilier GCC binaries can be retrieved from the following sites and many others: * http://www.sun.com/software/solaris/freeware * ftp://metalab.unc.edu/pub/packages/solaris/sparc/ * http://www.gnu.org/order/ftp.html * http://sunfreeware.com More information on this topic is available at http://www.kevininscoe.com/geek/sun/compilesun/ Thanks to Kevin Inscoe _________________________________________________________________ 10.3) How do I read Microsoft Word documents on my Sun? You can obtain some of the raw content of the document by using the "strings" command. Note that Word documents (and documents produced by other Microsoft Office programs, like Excel) can sometimes contain hidden information that is not normally accessible from Word, but is visible using "strings" (this can be a good reason not to distribute documents in MS Office formats). It is possible to run some versions of Microsoft Word on your Sun, using Bochs, WABI, SoftWindows, WinCenter, WinDD, SunPC, or some other Windows integration product. You can use a word-processor that can import the various MS Word formats. For example, Word Perfect from Corel Corporation is capable of reading and saving in various MS Word formats. Word Perfect is available for several versions of UNIX, including SPARC/Solaris 2.x. Sun's StarOffice is available for various operating systems, including Solaris/SPARC, from http://www.sun.com/staroffice. OpenOffice is also freely available for Solaris x86 and SPARC from http://www.openoffice.org. From a PC/Mac, you can print postscript output to a file, and view the postscript on the Sun using docviewer or ghostscript/ghostview. Thomas Anders points out that LAOLA (a Perl4 package that can read Word6 and Word7 format is available on the web at http://user.cs.tu-berlin.de/~schwartz/pmh/. Another option (suggested by Thomas ) is a GPL-licensed command-line utility called "antiword". His mutt mailcap file is setup as follows: application/msword; antiword %s; copiousoutput; description="Microsoft Word Tex t"; nametemplate=%s.doc Antiword is available from http://www.winfield.demon.nl. _________________________________________________________________ 10.4) How do I restore to a different location the contents of a tarfile created with absolute pathnames? Tarfiles should not normally be created with absolute pathnames, only with relative pathnames. Do not type "tar c /path/name" to create a tar archive, type "(cd /path; tar c name)" instead. Note: if you do "(cd /path/name; tar c .)", you will indeed avoid absolute pathnames, but beware that the tarfile created may silently overwrite the permissions of the current directory when unpacked. That's OK if you unpack it via: "mkdir name; cd name; tar xf /my/tarfile.tar That's not OK if you unpack it via: "cd /tmp; tar xf /my/tarfile.tar" It's not OK because you will change the permissions of /tmp. If you do have an archive created with absolute pathnames, you can unpack it in a different location by using GNU's version of tar, which will strip off the leading /. Alternatively, you can use pax to strip off the leading /, as follows: pax -r -s '/^\///' and Stephen Kives _________________________________________________________________ 11. Miscellaneous Hardware _________________________________________________________________ 11.1) * How come my mouse occasionally doesn't work? If it is a mechanical mouse, it may need cleaning. Open up the bottom panel by rotating it, and remove the mouse ball. Clean the mouse ball. With a Q-tip, clean off any grime on the rotors inside the mouse. _________________________________________________________________ 11.2) How can I turn my old sun into an X-Terminal? You can simply replace the ttymon entry for the console in /etc/inittab with a command that starts up an X server. _________________________________________________________________ 11.3) * How can I use an SVGA monitor on my Sun? Some older suns use a 13W3 video connector, which looks something like this: ----------------- \ O O ::::: O / ------------- A simple adapter will connect a Sun to a SVGA multi-sync monitor, providing the monitor (like most better monitors these days) will accept composite sync and operate in 1152x900 66 Hz (or whatever output your sun produces) mode. (Check the manufacturer's data sheets, usually on the Web.) Similarly, adapters are available to connect Sun 13W3 monitors to PCs or newer Suns with SVGA connectors. Adapters are available from many vendors: search for 13W3 on Google. This and many other interesting facts about Sun video are answered in the Framebuffer FAQ, at one of: * http://www.uark.edu/sunfaq/FrameBuffer.html * http://bul.eecs.umich.edu/~crowej/sunfaq/FrameBuffer.html A related FAQ by the same person is the Colormap FAQ at one of: * http://www.uark.edu/sunfaq/ColormapFAQ.html * http://bul.eecs.umich.edu/~crowej/sunfaq/ColormapFAQ.html _________________________________________________________________ 11.4) Where can I find alternate pointing devices for my Sun? Bert N. Sure claims that Mousetrak makes an excellent line of pointing devices. The url is "">http://www.mousetrak.com". SunExpress (http://sunexpress.usec.sun.com) and Qualix (http://www.qualix.com) distribute them. Bert uses the top-of-the-line "Evolution" trackball, which has six user-definable buttons and a large ball which is manufactured by a billiard ball company in Belgium. For 3-D input, SunExpress (http://sunexpress.usec.sun.com) sells the SpaceBall 3003, in addition to the standard Sun "SunDials" product. Dan Pritts indicates that one can buy a box from sun called the sun interface converter for $75 that allows you to use a ps/2-style keyboard or pointing device, or both, and still use your sun keyboard or mouse. In particular, the sun interface converter supports the Microsoft "natural keyboard". _________________________________________________________________ 12. Networking _________________________________________________________________ 12.1) Why do both my net interfaces have the same ethernet address? The Ethernet version 2.0 specification (November 1982) states: The physical address of each station is set by network management to a unique value associated with the station, and distinct from the address of any other station on any Ethernet. The setting of the station's physical address by network management allows multiple multiple data link controllers connected to a single station to respond to the same physical address. This doesn't normally constitute a problem because each interface will typically be on a different subnet. If, for some reason, different ethernet addresses are required on different interfaces (for example, to attach two interfaces to the same subnet), a new one may be assigned using the ifconfig command. Alternatively, for all modern Sun hardware, you can set the "local-mac-address?" eeprom variable to "true", which will cause each NIC to use a unique MAC address. This is needed for many failover and trunking configurations. _________________________________________________________________ 12.2) How can I know the hardware vendor from an ethernet address? The first three octets of a six-octet ethernet address typically uniquely identifies the hardware vendor of the particular network interface card. This is called the "Organizationally Unique Identifier" (OUI). OUI information, including the most recent list of public OUIs can be found at http://standards.ieee.org/regauth/oui Note that it is possible that an unidentified OUI could be used, since vendors are not required to make their OUIs public, and many network interfaces, including Suns, can be configured to use a custom ethernet address, so there is no guarantee that the OUI will correctly identify the vendor. _________________________________________________________________ 12.3) * How do I set my ethernet interface to e.g. 100Mb full duplex? The answer to this question assumes you have an hme ethernet interface; similar techniques should work for other ethernet interfaces; consult the man page for the ethernet driver (e.g. if you have an eri driver, "man eri") for more details. If you are not sure which ethernet driver is in use, "ifconfig -a" will tell you. For example, if ifconfig -a shows e.g. "hme0", you have an hme ethernet interface. All of Sun's ethernet network interfaces faster than 10Mbits are capable of negotiating with a network switch; if this is working, the ethernet interface will automatically choose the fastest supported setting. However, this may not necessarily work with some networking gear, or there may be some other reason to choose a slower setting, e.g. cat3 wiring. If the two ends have different ideas about what mode the link is, you may see "late collision" messages, dropped packets, or complete failure. To force a particular mode, e.g. 100Mb FD, you can use ndd as follows: # turn off autonegotiation ndd -set /dev/hme adv_autoneg_cap 0 # turn on 100Mb full-duplex capability ndd -set /dev/hme adv_100fdx_cap 1 # turn off 100Mb half-duplex capability ndd -set /dev/hme adv_100hdx_cap 0 # turn off 10Mb full-duplex capability ndd -set /dev/hme adv_10fdx_cap 0 # turn off 10Mb half-duplex capability ndd -set /dev/hme adv_10hdx_cap 0 You may have to force the other end (e.g. switch) to use the same mode. Consult the manual for your switch. NB: Fast ethernet hubs are always 100Mb half-duplex, and ethernet hubs are always 10Mb half-duplex. If you have more than one hme card in your system, before issuing the above ndd commands, you need to first select the specific hme card you want to set. For example, to select hme2, type: ndd -set /dev/hme instance 2 Subsequent ndd commands to /dev/hme will only apply to hme2. If you want to force all the hme cards on your system to a specific mode at machine boot, you can set hme driver variables in /etc/system. For example, to force all hme cards on the system to use 100Mbit FD, put the following in /etc/system: set hme:hme_adv_autoneg_cap=0 set hme:hme_adv_100fdx_cap=1 set hme:hme_adv_100hdx_cap=0 set hme:hme_adv_10hdx_cap=0 set hme:hme_adv_10fdx_cap=0 _________________________________________________________________ 12.4) How do I find out what process is using a particular port? Ports are held open in the same way as files are, by file handles within the process. In most states, a port will also have a handle into another process on the other side of that connection. If you need to find out which process is holding open a particular port, run lsof (ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof) and grep for the port number. Thanks to Stuart Whitby _________________________________________________________________ 12.5) I have a lot of ports in WAIT states. Why? The state of sockets can be seen with the "netstat -a" command. When a process attempts to close an ESTABLISHED connection, the transition will show a number of WAIT states, depending on which stage of the shutdown the port is at. When the initial FIN is sent from side a) of the connection, side a) will change to FIN_WAIT_1, side b) will change to CLOSE_WAIT, and acknowledge the FIN packet. The acknowledgement causes side a) to change to FIN_WAIT_2. A socket will rarely be in FIN_WAIT_1 for more than a couple of seconds unless there is a problem with communications. In this state, data may still be sent from side b) to side a), but not vice versa. When side b) receives a close from the associated application, or the FIN_WAIT_2_FLUSH_INTERVAL is reached without data being sent, it will send a FIN and change to LAST_ACK. Side a) moves to TIME_WAIT upon receiving this FIN and acknowledges the packet, causing any references to this connection on side b) to disappear. The socket in TIME_WAIT will remain for twice the maximum segment lifetime (normally a total of four minutes) before dropping, in case dropped data packets are resent and misinterpreted by a new application on this port. Thanks to Stuart Whitby _________________________________________________________________ 13. Electronic Mail _________________________________________________________________ 13.1) * Where can I get a POP or IMAP server for my sun? The PINE email package comes with both a POP and an IMAP server. PINE can be found at http://www.washington.edu/imap. An old, unmaintained Berkeley popd can be found at ftp://ftp.cc.berkeley.edu/pub/pop (not recommended), and Casper Dik's enhanced version of this for Solaris is found at ftp://ftp.fwi.uva.nl/pub/solaris/. A POP server can also be found as part of the Eudora ftp repository, at ftp://ftp.qualcomm.com/quest/unix/servers. A faster alternative is the CMU Cyrus IMAP server, which changes the mailbox format to something that is more efficient. It can be found at ftp://ftp.andrew.cmu.edu/pub/cyrus-mail. The Courier IMAP daemon also takes a similar approach; it's available at http://www.courier-mta.org/imap. Finally, Dovecot takes an intermediate approach by using the standard mailbox format but adding some autogenerated index files; Dovecot is available at http://dovecot.org. If a commercial package is desired, there are many, including Sun's Internet Mail Server. See http://www.sun.com _________________________________________________________________ 14. Printing _________________________________________________________________ 14.1) + How do I get started with LP-style printing in Solaris? Printing is configured using the "lpadmin" interface, which is extensively documented. For a general overview, however, start with the basic principles of Solaris printing, documented at http://developers.sun.com/solaris/articles/basicprinting.html, and the Solaris printing FAQ, at http://www.freelab.net/unix/sun/solarisfaq/printfaq.html. More information about printing in Solaris is available at http://www.opensolaris.org/os/community/printing/history. _________________________________________________________________ 14.2) How do I configure a non-postscript printer for postscript? Use the Printer Compatibility Database at http://www.linuxprinting.org (http://www.linuxprinting.org/database.html) to find out if a ghostscript driver is available for your non-PS printer. Then you can use ghostscript to translate postscript to something the printer can understand. There are various "any2ps" scripts and packages around (apsfilter, cups, foomatic, magicfilter). Ghostscript and foomatic are bundled in Solaris 10. Apsfilter in particular is one of the most flexible filters available: the most recent version can be found at http://www.apsfilter.org. For Solaris 2.x or later, you will need to add a BSD-style printing package such as LPRng (http://www.lprng/org): the system-V-style "lp" printing package that comes with Solaris will not easily work with apsfilter. Thanks to Andreas Klemm for this information. A much older version of APSfilter was posted to comp.sources.misc as part of volume 42, and is available from a comp.sources.misc archive site (eg. ftp://ftp.uu.net/usenet/comp.sources.misc/volume42/apsfilter). If you are using Solaris, follow Alexander V. Panasyuk's instructions in http://cfauvcs5.harvard.edu/SetGSprinter4Solaris.html _________________________________________________________________ 15. Misc System Administration _________________________________________________________________ 15.1) I've forgotten the root password; how can I recover? You need to have access to the machine's console. 1. Note the root partition (e.g. /dev/sd0a or /dev/dsk/c0t3d0s0) 2. Hit STOP-A or L1-A (or, on an ASCII terminal or emulator, send a ) to halt the operating system, if it's running. 3. Boot single-user from CD-ROM (boot cdrom -s) or network install/jumpstart server (boot net -s) (NB: if it asks you for a prom password, see below.) 4. Mount the root partition (e.g. /dev/dsk/c0t3d0s0) on "/a". "/a" is an empty mount point that exists at this stage of the installation procedure. (mount /dev/dsk/c0t3d0s0 /a) 5. Set your terminal type so you can use a full-screen editor, e.g. vi. (you can skip this step if you know how to use "ex" or "vi" from open mode). If you're on a sun console, type "TERM=sun; export TERM"; if you're using an ascii terminal (or terminal emulator on a PC) for your console, set TERM to the terminal type (e.g. TERM=vt100; export TERM). 6. Edit the passwd file (/a/etc/passwd for SunOS 4.x, /a/etc/passwd.adjunct for SunOS 4.x with shadow passwords/C2 security), /a/etc/shadow for Solaris 2.x and remove the encrypted password entry for root 7. cd to /; Type "umount /a" 8. reboot as normal in single-user mode ("boot -s"). The root account will not have a password. Give it a new one using the passwd command. Thanks to Stefan Voss PROM passwords: Naturally, you may not want anyone with physical access to the machine to be able to do the above to erase the root password. Suns have a security password mechanism in the PROM which can be set (this is turned off by default). The man page for the eeprom command describes this feature. If security-mode is set to "command", the machine only be booted without the prom password from the default device (i.e. booting from CD-ROM or install server will require the prom password). Changing the root password in this case requires moving the default device (e.g. the boot disk) to a different SCSI target (or equivalent), and replacing it with a similarly bootable device for which the root password is known. If security-mode is set to full, the machine cannot be booted without the prom password, even from the default device; defeating this requires replacing the NVRAM on the motherboard. "Full" security has its drawbacks -- if, during normal operations, the machine is power-cycled (e.g. by a power outage) or halted (e.g. by STOP-A), it cannot reboot without the intervention of someone who knows the prom password. _________________________________________________________________ 15.2) How do I disable/remap STOP-A/L1-A? First, be sure you want to do this. If the problem is that users are halting and rebooting the machine, note that disabling STOP-A will merely prompt them to powercycle the machine (or remove and re-insert the keyboard plug) instead. This is actually worse. But if you're sure you want to do this, compile and run this little program. /* Enable or disable abort sequence. John DiMarco */ #include #include #include #include #ifdef FILENAME_MAX #include #include #else /* !FILENAME_MAX */ #include #include #endif /* !FILENAME_MAX */ #define ERR -1 #define DISABLE 0 #define ENABLE 1 #define KEYBOARD "/dev/kbd" main(argc,argv) int argc; char *argv[]; { static struct kiockey k; int fd, mode=ERR; if(2==argc){ switch(*(argv[1])){ case 'e': mode=ENABLE; break; case 'd': mode=DISABLE; break; } } if(ERR==mode){ printf("Usage: %s [enable|disable]\n", argv[0]); exit(1); } if(0>(fd=open(KEYBOARD, O_RDWR))){ perror(KEYBOARD); exit(1); } k.kio_tablemask = KIOCABORT1; k.kio_station=mode; (void)ioctl(fd, KIOCSETKEY, &k); printf("Abort sequence is now %s.\n", mode?"enabled":"disabled"); } Stefan Voss points out that in Solaris 2.6 or later, you can type "kbd -a enable|disable" or put "KEYBOARD_ABORT=enable|disable" in /etc/default/kbd. As of Solaris 2.6 with patch 105924-10 installed, Solaris 7 with patch 107589-02 installed, or Solaris 8, you can also set the abort sequence to the Alternate Break character sequence (" ~ ", with at least half a second between characters, and at most 5 seconds for the whole string) with the command "kbd -a alternate", or by putting "KEYBOARD_ABORT=alternate" into /etc/default/kbd. Alternatively, you can disable all break signals by putting the line: set abort_enable=0 into /etc/system, and rebooting. Thanks to Dan Astoorian _________________________________________________________________ 15.3) How do I manage services in Solaris 10 and later? Do I still make links in /etc/rc*.d? In Solaris 10 build s10_64 and later, Sun introduced the service management facility (smf) which makes /etc/init.d and /etc/rc?.d scripts "legacy". Management of the services is now done through svc* commands. The legacy init.d scripts are now specified as running in run-level "milestone". From the man pages: * /etc/rcS.d (milestone/single-user:default) * /etc/rc2.d (milestone/multi-user:default) * /etc/rc3.d (milestone/multi-user-server:default) Each service name is now named with a Fault Management Resource Identifier (FMRI) with the scheme "svc:". For example, the sendmail service would have be "svc:/network/smtp:sendmail". You can also abbreviate the FMRI by using the instance name (e.g. sendmail) or using the last parts of the service name like: * sendmail * :sendmail * smtp:sendmail To check all services in the machine, run "svcs -a". From the list, you can enable and disable services through "svcadm". To disable, use "svcadm disable [options] ". For example: svcadm disable svc:/network/smtp:sendmail or svcadm disable sendmail One useful option is "-t", to temporarily disable the service until reboot. To enable, use "svcadm enable [options] ". For example: svcadm enable svc:/network/smtp:sendmail Useful options are "-r" to enable the service including all dependencies, and "-t" to temporarily disable the service until reboot. Dependencies and other information on the service can be invoked via "svcs -l " As an alternative to using "ps" to check service processes, you can now use "svcs -p " to list the processes associated with the service. For further information, check the man pages on smf, svcs, svcadm and svcfg. Thanks to Neil Quiogue From stefano at archive.inet.it Sun Aug 3 04:07:34 2008 From: stefano at archive.inet.it (stefano at archive.inet.it) Date: Sun, 3 Aug 2008 10:07:34 +0200 Subject: Growing up swap volume with veritas on Solaris 9 Message-ID: <3AE7EE818E46B74498D7437D488F25E17867C9@MBX2K7.inet.hosted> Hello all, I've two Sun V440 running a single node cluster with oracle. Problem is that defined swap many times goes full and create a lot of problems to the system. root at windn1 # df -k Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/rootvol 22379277 15765883 6389602 72% / /proc 0 0 0 0% /proc mnttab 0 0 0 0% /etc/mnttab fd 0 0 0 0% /dev/fd /dev/vx/dsk/var 8065025 4883383 3100992 62% /var swap 3253208 136 3253072 1% /var/run swap 3253072 0 3253072 0% /tmp /dev/vx/dsk/rootdisk_15vol 492872 4865 438720 2% /global/.devices/node at 1 /dev/vx/dsk/winddg/windarchive 20115049 19977 19893922 1% /windarchive /dev/vx/dsk/winddg/winddb 86102865 61137860 16354719 79% /winddb /dev/vx/dsk/winddg/windredo 3886048 520076 2977368 15% /windredo /dev/vx/dsk/rootdisk_25vol 492872 4863 438722 2% /global/.devices/node at 2 Local disk are used throught veritas volume manager, so running vxdiag shows me: root at windn1 # vxprint -Ath Disk group: rootdg DG NAME NCONFIG NLOG MINORS GROUP-ID DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO dg rootdg default default 50 1100267322.1025.windn1 dm rootdisk_1 c1t0d0s2 sliced 2888 71124291 - dm rootmirror c1t1d0s2 sliced 2888 71124291 - v rootdisk_15vol - ENABLED ACTIVE 1048707 ROUND - fsgen pl rootdisk_15vol-01 rootdisk_15vol ENABLED ACTIVE 1048707 CONCAT - RW sd rootdisk_1-04 rootdisk_15vol-01 rootdisk_1 53660285 1048707 0 c1t0d0 ENA pl rootdisk_15vol-02 rootdisk_15vol ENABLED ACTIVE 1048707 CONCAT - RW sd rootmirror-04 rootdisk_15vol-02 rootmirror 70046694 1048707 0 c1t1d0 ENA v rootvol - ENABLED ACTIVE 45467082 ROUND - root pl rootvol-01 rootvol ENABLED ACTIVE 45467082 CONCAT - RW sd rootdisk_1-B0 rootvol-01 rootdisk_1 71124290 1 0 c1t0d0 ENA sd rootdisk_1-02 rootvol-01 rootdisk_1 0 45467081 1 c1t0d0 ENA v swapvol - ENABLED ACTIVE 8193204 ROUND - swap pl swapvol-01 swapvol ENABLED ACTIVE 8193204 CONCAT - RW sd rootdisk_1-01 swapvol-01 rootdisk_1 45467081 8193204 0 c1t0d0 ENA pl swapvol-02 swapvol ENABLED ACTIVE 8193204 CONCAT - RW sd rootmirror-02 swapvol-02 rootmirror 45467082 8193204 0 c1t1d0 ENA v var - ENABLED ACTIVE 16386408 ROUND - fsgen pl var-01 var ENABLED ACTIVE 16386408 CONCAT - RW sd rootdisk_1-03 var-01 rootdisk_1 54708992 16386408 0 c1t0d0 ENA pl var-02 var ENABLED ACTIVE 16386408 CONCAT - RW sd rootmirror-03 var-02 rootmirror 53660286 16386408 0 c1t1d0 ENA vxresize seems not able to work as volume is neither FSGEN nor RAID5. How can I try to solve my problem? Thanks Steve From sunhux at gmail.com Mon Aug 4 05:01:09 2008 From: sunhux at gmail.com (sunhux G) Date: Mon, 4 Aug 2008 17:01:09 +0800 Subject: V880 slow with scan rates in thousands Message-ID: <60f08e700808040201y68eb62b3u1036ce3f865c3f68@mail.gmail.com> Hi, Just today, the scan rates of our V880 jumped to thousands (used to be 0). CPU utilization is 63-87% idle : vmstat 2: 0 1 0 18565856 59753 395 172 582 30 54 40184 171 20 0 0 0 1231 1202 892 4 7 89 0 6 0 14795056 12778 93 215 1003 311 1582 32552 2811 24 0 0 0 748 556 1148 2 5 93 0 3 0 14795056 12777 86 205 970 448 1608 26376 1975 7 0 0 0 791 936 1154 3 5 91 0 3 0 14793024 12694 152 546 3073 975 3300 113240 4846 17 0 0 0 920 1223 1228 5 12 83 0 3 0 14795648 13065 114 265 1166 100 100 91728 0 21 0 0 0 651 634 1193 2 3 95 0 3 0 14795648 12783 58 178 907 585 1091 74304 2316 7 0 0 0 709 600 1055 2 5 93 7 3 0 14794864 12804 148 350 2838 957 2199 115176 30854 18 0 0 0 751 658 1177 3 18 79 0 4 0 15158376 128016 153 302 1009 1555 1627 44648 16005 4 0 0 0 591 575 1075 3 10 87 0 3 0 15158376 128584 328 479 990 3485 3616 36168 30039 20 0 0 0 660 468 1127 2 13 85 0 3 0 15158376 128344 384 494 784 3813 3916 29304 26749 14 0 0 0 615 517 1030 3 13 84 0 3 0 15158376 127144 350 491 884 3590 3821 23744 22907 7 0 0 0 600 479 1027 2 12 86 iostat 2: tty md3 md104 md105 md106 cpu tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id 0 1 480 20 8 0 0 7 0 0 13 2 0 17 4 7 0 89 0 117 85 7 9 0 0 0 0 0 0 0 0 0 5 3 0 92 0 40 121 15 10 0 0 0 0 0 0 0 0 0 2 3 0 95 top output : last pid: 26802; load averages: 0.28, 0.38, 0.54 17:01:49 165 processes: 163 sleeping, 1 zombie, 1 on cpu CPU states: % idle, % user, % kernel, % iowait, % swap Memory: 8192M real, 5703M swap in use, 17G swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 26802 root 1 0 0 2392K 1864K cpu0 0:00 1.23% top 18999 root 1 59 0 1240K 456K sleep 10:18 0.28% dd 19635 root 1 59 0 1240K 456K sleep 10:11 0.28% dd 26800 oracle10 1 59 0 524M 507M sleep 0:00 0.23% oracle 7574 oracle10 1 59 0 579M 556M sleep 0:37 0.11% oracle 7860 oracle10 1 59 0 1329M 1304M sleep 0:42 0.11% oracle top : last pid: 26802; load averages: 0.28, 0.38, 0.54 17:01:49 165 processes: 163 sleeping, 1 zombie, 1 on cpu CPU states: % idle, % user, % kernel, % iowait, % swap Memory: 8192M real, 5703M swap in use, 17G swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 26802 root 1 0 0 2392K 1864K cpu0 0:00 1.23% top 18999 root 1 59 0 1240K 456K sleep 10:18 0.28% dd 19635 root 1 59 0 1240K 456K sleep 10:11 0.28% dd 26800 oracle10 1 59 0 524M 507M sleep 0:00 0.23% oracle 7574 oracle10 1 59 0 579M 556M sleep 0:37 0.11% oracle 7860 oracle10 1 59 0 1329M 1304M sleep 0:42 0.11% oracle 7570 oracle10 1 59 0 580M 556M sleep 0:42 0.10% oracle 7720 oracle10 1 59 0 524M 500M sleep 0:42 0.10% oracle 7504 oracle10 1 59 0 1031M 1008M sleep 0:07 0.10% oracle 7776 oracle10 1 59 0 1329M 1304M sleep 0:43 0.09% oracle I know in Linux, the top command can sort by CPU/memory/swap usage (just by pressing F & select the sort column/key) but the top utility do not have this in Solaris From sunhux at gmail.com Mon Aug 4 05:32:50 2008 From: sunhux at gmail.com (sunhux G) Date: Mon, 4 Aug 2008 17:32:50 +0800 Subject: Summary: V880 slow with scan rates in thousands Message-ID: <60f08e700808040232p73ddfd04h4930f90ef138a1ef@mail.gmail.com> Thanks to Richard Skelton for the instantaneous response : Top in Solaris can sort by size:- Press o type size also better to use prstat -s size & the SIZE column in prstat/top showed that among the largest values of SIZE are owned by oracle processes. Initially stopping all applications did not help bring down the scan rate; after stopping all the 6 Oracle instances, the scan rate came to 0. We're not able to reproduce this problem after all the 6 Oracle instances & the application are started up again. Thanks to Maciej for responding within 15 minutes. We'll need to do a post-mortem to see which process chews up the memory - difficult to justify to add RAM unless the problem is persistent & we can pinpoint the culprit. Thanks U On 8/4/08, sunhux G wrote: > > Hi, > > > > Just today, the scan rates of our V880 jumped to thousands > (used to be 0). CPU utilization is 63-87% idle : > > vmstat 2: > 0 1 0 18565856 59753 395 172 582 30 54 40184 171 20 0 0 0 1231 1202 892 4 > 7 89 > 0 6 0 14795056 12778 93 215 1003 311 1582 32552 2811 24 0 0 0 748 556 > 1148 2 5 93 > 0 3 0 14795056 12777 86 205 970 448 1608 26376 1975 7 0 0 0 791 936 1154 > 3 5 91 > 0 3 0 14793024 12694 152 546 3073 975 3300 113240 4846 17 0 0 0 920 1223 > 1228 5 12 83 > 0 3 0 14795648 13065 114 265 1166 100 100 91728 0 21 0 0 0 651 634 1193 2 > 3 95 > 0 3 0 14795648 12783 58 178 907 585 1091 74304 2316 7 0 0 0 709 600 1055 > 2 5 93 > 7 3 0 14794864 12804 148 350 2838 957 2199 115176 30854 18 0 0 0 751 658 > 1177 3 18 79 > > 0 4 0 15158376 128016 153 302 1009 1555 1627 44648 16005 4 0 0 0 591 575 > 1075 3 10 87 > 0 3 0 15158376 128584 328 479 990 3485 3616 36168 30039 20 0 0 0 660 468 > 1127 2 13 85 > 0 3 0 15158376 128344 384 494 784 3813 3916 29304 26749 14 0 0 0 615 517 > 1030 3 13 84 > 0 3 0 15158376 127144 350 491 884 3590 3821 23744 22907 7 0 0 0 600 479 > 1027 2 12 86 > > iostat 2: > > tty md3 md104 md105 md106 cpu > tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt > id > 0 1 480 20 8 0 0 7 0 0 13 2 0 17 4 7 0 > 89 > 0 117 85 7 9 0 0 0 0 0 0 0 0 0 5 3 0 > 92 > 0 40 121 15 10 0 0 0 0 0 0 0 0 0 2 3 0 > 95 > > top output: > > last pid: 26802; load averages: 0.28, 0.38, > 0.54 17:01:49 > 165 processes: 163 sleeping, 1 zombie, 1 on cpu > CPU states: % idle, % user, % kernel, % iowait, % swap > Memory: 8192M real, 5703M swap in use, 17G swap free > > PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND > 26802 root 1 0 0 2392K 1864K cpu0 0:00 1.23% top > 18999 root 1 59 0 1240K 456K sleep 10:18 0.28% dd > 19635 root 1 59 0 1240K 456K sleep 10:11 0.28% dd > 26800 oracle10 1 59 0 524M 507M sleep 0:00 0.23% oracle > 7574 oracle10 1 59 0 579M 556M sleep 0:37 0.11% oracle > 7860 oracle10 1 59 0 1329M 1304M sleep 0:42 0.11% oracle > 7570 oracle10 1 59 0 580M 556M sleep 0:42 0.10% oracle > 7720 oracle10 1 59 0 524M 500M sleep 0:42 0.10% oracle > 7504 oracle10 1 59 0 1031M 1008M sleep 0:07 0.10% oracle > 7776 oracle10 1 59 0 1329M 1304M sleep 0:43 0.09% oracle > > > > I know in Linux, the top command can sort by CPU/memory/swap > > usage (just by pressing F & select the sort column/key) but the > > top utility do not have this in Solaris From stan at temple.edu Mon Aug 4 10:27:28 2008 From: stan at temple.edu (Stan Horwitz) Date: Mon, 4 Aug 2008 10:27:28 -0400 Subject: Invalid inode and missing files Message-ID: <7EE62F31-0CB8-41BC-A7A0-D45AAD12B441@temple.edu> I am green behind the ears with regard to Unix systems management, so if I omit any pertinent details in this message, let me know. I manage a Sunfire T2000 with a StorageTek 6140 disk array. This server runs EMC/Legato NetWorker 7.4 SP1. We use it to do enterprise- wide backups. This T2000 has been in production since last October and the OS (Solaris 10) was installed by a Sun field engineer last August. This past Saturday, I stopped by my office just to drop off some groceries for my lunches during the week. When I got to my office, I noticed that NetWorker's nsrwatch console monitor hadn't updated in 45 minutes, which is odd for a Saturday afternoon. I attempted to look at the /nsr/logs/daemon.raw file to see what NetWorker was doing. Much to my surprise, the /nsr/logs/daemon.raw filie wasn't found and /nsr/logs was empty. This /nsr volume sits on the 6140 disk array. It is all that's on that array and that disk volume hovers around 61% full. Anyway, I noticed only one error in /var/adm/messages, but unfortunately, I can't find the error message there now. As I recall, it said something about a file with an invalid inode and a huge negative length. The other directories in /nsr seemed intact, only the contents of /nsr/ logs were gone. When I tried to create a file in /nsr as root, my shell session hung. The NSR software was still writing data to tape, but I figured that since it obviously couldn't write metadata to /nsr the logical thing to do was reboot it, so that's what I did. The T2000 took about 10 minutes longer then usual to reboot. It seemed stuck as some i-o step so I walked the 1/3 mile across campus to where this T2000 is located to inspect it. By the time I reached the T2000, it finished rebooting. Nothing out of the ordinary showed up in /var/adm/ messages. There were no alert lights or beeps of any kind on the T2000 or the 6140. I tried doing a "df -k" at the console prompt. It displayed all the usual volumes, but when it got to /nsr it hung. I tried to control-c out of it. It was still hung. Same for control-z. I power cycled just the 6140. It powered up fine. In case it matters, this T2000 was previously rebooted 19 days earlier. Since there were no obvious hardware issues, I closed the console session and I walked back to my office. When I got to my office and I logged into the console again, the T2000 had rebooted on its own and it did some kind of counting process. This was maybe only seven minutes after I left the machine. It was counting up some sort of percentage, like 60%, 80%, etc. It got to 100% quickly and it said to fsck /nsr but when I did, I got an error that I couldn't do it, it sid that some ct.something device wasn't ready. I was in a hurry to go home, so I didn't think to write down that error and my console software doesn't do logging. I then noticed that the machine had booted into the standard multiple user mode. At any rate, I did a "df -k" again and it worked fine. I was able to cd into /nsr/logs and all the files that were supposed to be there were there again. I could also see their contents. So I started up NetWorker (I haven't figured out how to get it to start on its own upon reboot yet). I fired up nsrwatch and I could see it go through its usual start up process where it checks its media index. The start up test was fine. NetWorker then repositioned some tape drives, then some backups that were in progress prior to my rebooting it restarted. I manually started some other backups that were supposed to start on their own during the time this T2000 was rebooting. My questions are: what happened, why did it happen, and how can it be prevented from reoccurring? If anyone has any ideas, please let me know. I will summarize From Schaper at media-saturn.com Mon Aug 4 11:51:42 2008 From: Schaper at media-saturn.com (Schaper, Soeren) Date: Mon, 4 Aug 2008 17:51:42 +0200 Subject: Supernova turns Empire 4903, 2165 and 1255 Message-ID: <77A88C823BCED449889E5B770E65C091797F57@ING04EXCMBX07.media-saturn.net> <> <> <> Good Gaming Soeren [demime 1.01b removed an attachment of type application/octet-stream which had a name of SNROTE Orders 08-04-2008.4903] [demime 1.01b removed an attachment of type application/octet-stream which had a name of SNROTE Orders 08-04-2008.1255] [demime 1.01b removed an attachment of type application/octet-stream which had a name of SNROTE Orders 08-04-2008.2165] From earlysame55 at gmail.com Mon Aug 4 16:41:25 2008 From: earlysame55 at gmail.com (Unix Administrator) Date: Tue, 5 Aug 2008 00:41:25 +0400 Subject: Kernel ID Message-ID: <2a81355a0808041341x53b85a2bv7d51dedb3169da02@mail.gmail.com> Dear all Need to have the Generic_125100-07 kernel on the new staging server. What we currently have is Generic_118833-33. I have 3 EIS CDs 07-FEB 07-May 07-09 Which one would be the one having the kernel patch I want. 125100-07 has been released in May 07. I did a search for the this patch in all the 3 CDs but I do not see it as is. But I also do remember that even if it does not show up as a patch it does it cumulatively and updates it to this. Thanks in advance! From stuart.saxon at talk21.com Tue Aug 5 11:48:25 2008 From: stuart.saxon at talk21.com (Stuart Saxon) Date: Tue, 5 Aug 2008 15:48:25 +0000 (GMT) Subject: Can you simulate a power failure on a V445 Message-ID: <942943.49099.qm@web86407.mail.ukl.yahoo.com> Guru's I have been asked by my employer to see if we can simulate a power loss (and restore) on a V445. The only way I can think of doing this is via the alom commands showfru and removefru Questions ? 1) Has anyone done anything similiar 2) Does anyone have the exact command syntax to remove (and insert) PS0 I have two days to come back with a sensible response. Thanks Stuart Saxon __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html From stepchung at gmail.com Tue Aug 5 12:11:40 2008 From: stepchung at gmail.com (Stephanie C) Date: Tue, 5 Aug 2008 09:11:40 -0700 Subject: Oracle DB on ZFS Version 2 Message-ID: <6bdfa8ce0808050911x7351c4bfo6632cdd78a49a0@mail.gmail.com> Hello- I posted a question earlier about this issue. I got very good responses and already summarized the result on the list (summary again below). That is not enough to convince my boss to go with ZFS for Oracle database. We are an higher Education intuition. He wants to know if any colleges or universities out there run Oracle DB on ZFS and any problem or issue with it. He does not want 'we are the first education institution to do this'. Please let me know if you are an education institution running oracle db on zfs. Thank you. Previous summary: *From: francisco roque* We run all of our production databases on zfs, but the largest is only about 70GB. There are a number of steps you need to take to get better performance for db. Read through the entirety of the ZFS Best Practices Guide: *http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide* * *and the related tuning guide: *http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide* * * The main changes we make are to limit the ZFS ARC and to disable cache flushing (we use SAN disk). We tried these changes and found that it gave us performance similar to our previous filesystems (ufs/vxfs). If you try zfs, be sure to test it out on a dev system and do some true perf testing to verify that any changes you make are really effective. Depending on the nature of your database, you may find a number of the tuneables worthwhile, but only testing will verify this. * * *From: Jeff Marble* We had one issue with ZFS and one with contiguous blocks of memory on our Oracle 10g server. We are running fine now after discovering the corrections. We do not typically have a heavy load though. ZFS - Oracle performs a sync write which requires that all buffers are written do disk. That means all cache must be flushed out to disk and a response must be received before proceeding. We got around this by putting the ctl files, redo, and arch files to a separate 5GB partition. Performance went way up. Large Contiguous Blocks - Sun attempted to implement a new feature where Oracle is given large contiguous blocks of memory to work with. The problem is that at times, the algorithm cannot find the space and the system comes to it's knees. It does not happen if Oracle is brought up immediately after starting the computer, before any other app can fragment the RAM. We set pg_contig_disable=1 in /etc/system and rebooted. Run this line to stop the hunt for contiguous pages. You should see results in a few minutes. echo "pg_contig_disable/W 1" | mdb -kw Or for a more permanent resolution, put this in /etc/system and reboot. ** Disable coalescing feature set pg_contig_disable=1 * * * * * * *From: Martin Pre_laber*** perhaps that article will help you: *http://www.solarisinternals.com/wiki/index.php/ZFS_for_Databases* ** *From: Maciej Bliziqski*** My company is running Oracle 10g on ZFS. Our database is comparable to 300GB, and we have no performance issues. I'm only administering the OS, so I don't know much more than that at the moment. If you have specific questions, I can ask around. *From: Rajiv Gunja*** Some of the production DBs at our Org has about 1.5 TB to 3 TB of Oracle 9/10 on SUN Solaris with FS = vxfs. One way we take care of performance issues is to split the DB in to smaller pieces across different FS. Its been many (11)years since I worked with Oracle, so not sure what snapshot is. We use NetApps for SAN so we have daily snapshots of the FS done on the SAN side and we also perform cold backup weekly. *From: Dr. Udo Grabowski* You could also create vdevs on a zfs raidz filesystem, export them via iscsi, and then create a UFS filesystem in them with directio access from Oracle. On our MySQl database this gave a factor of 5 better performance than an adapted (recordsize,etc.) ZFS filesystem, and we have the checksumming and other features of ZFS still underneath. From tom.kelly at convergys.com Tue Aug 5 12:16:41 2008 From: tom.kelly at convergys.com (tom.kelly at convergys.com) Date: Tue, 5 Aug 2008 12:16:41 -0400 Subject: Tom Kelly is out of the office. Message-ID: I will be out of the office starting 08/05/2008 and will not return until 08/22/2008. I will respond to your message when I return. -- "NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected." From george.monappallil at rpfl.com Tue Aug 5 14:10:04 2008 From: george.monappallil at rpfl.com (Monappallil, George) Date: Tue, 5 Aug 2008 14:10:04 -0400 Subject: Network Interface Errors on ce0 Message-ID: <50CEF36ACC0B0C4197EBCD31C183414804BCAB7B@blaster.Platinum.root.rpfl.com> Hello: I have Solaris 10 with the latest recommended and security patches running on an E2900. This morning I wasn't able to ping the default route although we determined that there weren't any issues with the default route and also the port the server was connected to on the switch. I also didn't see any errors on ce1 which is on another subnet. The error in the messages file is below. ---------------------------------- ...in.mpathd[159]: [ID 585766 daemon.error] Cannot meet requested failure detection time of 10000 ms on (inet ce0) new failure detection time for group "ipmp1" is 255304 ms ...in.mpathd[159]: [ID 302819 daemon.error] Improved failure detection time 127652 ms on (inet ce0) for group "ipmp1" ...in.mpathd[159]: [ID 302819 daemon.error] Improved failure detection time 63826 ms on (inet ce0) for group " ipmp1" ... in.mpathd[159]: [ID 585766 daemon.error] Cannot meet requested failure detection time of 10000 ms on (inet ce0) new failure detection time for group "ipmp1" is 155834 ms Decided to reboot since I had hit a brickwall with the tourbleshooting and the messages I see below as part of the reboot was interesting. Any ideas why the interface wasn't working and about the below messages ? -------------------------- genunix: [ID 408822 kern.info] NOTICE: ce0: no fault external to device; service available genunix: [ID 611667 kern.info] NOTICE: ce0: xcvr addr:0x01 - link up 1000 Mbps full duplex genunix: [ID 408789 kern.warning] WARNING: ce0: fault detected external to device; service degraded genunix: [ID 451854 kern.warning] WARNING: ce0: xcvr addr:0x01 - link down genunix: [ID 408822 kern.info] NOTICE: ce1: no fault external to device; service available genunix: [ID 611667 kern.info] NOTICE: ce1: xcvr addr:0x01 - link up 1000 Mbps full duplex genunix: [ID 408789 kern.warning] WARNING: ce1: fault detected external to device; service degraded genunix: [ID 451854 kern.warning] WARNING: ce1: xcvr addr:0x01 - link down genunix: [ID 408789 kern.notice] NOTICE: ce0: fault cleared external to device; service available genunix: [ID 451854 kern.notice] NOTICE: ce0: xcvr addr:0x01 - link up 1000 Mbps full duplex genunix: [ID 408789 kern.notice] NOTICE: ce1: fault cleared external to device; service available genunix: [ID 451854 kern.notice] NOTICE: ce1: xcvr addr:0x01 - link up 1000 Mbps full duplex Your help is appreciated. - George From earlysame55 at gmail.com Tue Aug 5 16:10:15 2008 From: earlysame55 at gmail.com (Unix Administrator) Date: Wed, 6 Aug 2008 00:10:15 +0400 Subject: SUMMARY:Kernel ID Message-ID: <2a81355a0808051310n5bab3c49r9ec19771b6258744@mail.gmail.com> Dear all, Firstly, Rajiv Gunja thanks for your reply to look in the patchdiag.xref in the EIS CD. I managed to find the EIS CD version from the /var/sun directory, there is a EIS CD log. It had the info i needed. Thanks From earlysame55 at gmail.com Tue Aug 5 16:24:17 2008 From: earlysame55 at gmail.com (Unix Administrator) Date: Wed, 6 Aug 2008 00:24:17 +0400 Subject: create print file Message-ID: <2a81355a0808051324j4b855e81w8a2ab106efc9f767@mail.gmail.com> Dear all, I need a urgent help. Need to create a file to be printed. Ideally 2 column text file with a certain size which could be determined from time to time for each request. This is to check how the printer handles different size print requests. Currently i need to print a 4MB file. Can mkfile do this for me? Thanks in advance. From davidkmcw at gmail.com Tue Aug 5 16:31:13 2008 From: davidkmcw at gmail.com (David McWilliams) Date: Tue, 5 Aug 2008 16:31:13 -0400 Subject: RSC Message-ID: <7d60773b0808051331m1063f1f1mbf7445985ba674c7@mail.gmail.com> Is there a default username & password for RSC? Slainte, David Give a man a fire and he's warm for the day. But set fire to him and he's warm for the rest of his life. - Terry Pratchett, Discworld From admitriev at mentora.biz Tue Aug 5 17:36:17 2008 From: admitriev at mentora.biz (Andrey Dmitriev) Date: Tue, 5 Aug 2008 17:36:17 -0400 Subject: SUMMARY (sort of): horrible ZFS performance on a pool of 2 LUNs, awesome with 1 LUN Message-ID: <973755.15511217972177269.JavaMail.root@mail.mentora.biz> Well, after eliminating every possible hardware issue, the issue turned out to be with software, particularly with utilization of the underlying ZFS file system. As soon as we deleted about 2TB worth of data, the file system started performing fine again. we deleted beast/customer1/db file system (had it on tape, just like others), and right away were back to 150-300megs per sec. If anyone has a clue as to why this might've been an issue, or advise some ZFS related mailing list, I'd greately appreciate it. beast 130G 37K 130G 1% /mnt/backup1 beast/customer1 130G 29K 130G 1% /mnt/backup1/customer1 beast/customer1/bacula 222G 93G 130G 42% /mnt/backup1/customer1/bacula beast/customer1/db 2.0T 1.8T 130G 94% /mnt/backup1/customer1/db beast/customer1/fs 2.1T 1.9T 130G 94% /mnt/backup1/customer1/filesystem beast/customer5 130G 29K 130G 1% /mnt/backup1/customer5 beast/customer5/bacula 221G 92G 130G 42% /mnt/backup1/customer5/bacula beast/customer5/db 130G 25K 130G 1% /mnt/backup1/customer5/db beast/customer5/fs 172G 42G 130G 25% /mnt/backup1/customer5/filesystem beast/bacula 130G 15M 130G 1% /mnt/backup1/bacula beast/bacula/spool 130G 34K 130G 1% /mnt/backup1/bacula/spool beast/customer6 130G 29K 130G 1% /mnt/backup1/customer6 beast/customer6/bacula 210G 81G 130G 39% /mnt/backup1/customer6/bacula beast/customer6/db 3.7T 3.6T 130G 97% /mnt/backup1/customer6/db beast/customer6/fs 130G 25K 130G 1% /mnt/backup1/customer6/filesystem beast/customer2 133G 3.6G 130G 3% /mnt/backup1/customer2 beast/customer2/bacula 1.5T 1.4T 130G 92% /mnt/backup1/customer2/bacula beast/customer2/db 194G 65G 130G 34% /mnt/backup1/customer2/db beast/customer2/fs 221G 92G 130G 42% /mnt/backup1/customer2/filesystem beast/customer4 130G 29K 130G 1% /mnt/backup1/customer4 beast/customer4/bacula 1.3T 1.2T 130G 90% /mnt/backup1/customer4/bacula beast/customer4/db 1.6T 1.5T 130G 92% /mnt/backup1/customer4/db beast/customer4/fs 130G 25K 130G 1% /mnt/backup1/customer4/filesystem beast/customer3 130G 26K 130G 1% /mnt/backup1/customer3 beast/customer3/bacula 2.8T 2.6T 130G 96% /mnt/backup1/customer3/bacula Original Post: capacity operations bandwidth pool used avail read write read write -------------------------------------- ----- ----- ----- ----- ----- ----- beast 14.1T 366G 0 155 0 3.91M c7t6000402002FC424F6CF5317A00000000d0 7.07T 183G 0 31 0 16.2K c7t6000402002FC424F6CF5318F00000000d0 7.07T 183G 0 124 0 3.90M I get pretty consistent results like this.. i can only write to the pool at about 3megs right now.. i used to at about 300-400MB/sec each member is a 9 1TB disk RAID5, members are not mirrored I have another group that I created on the same array (NexSAN SATABeast). using only 2 disks (mirror). I am able to push them to 60megs, which is fine. We have tried rebooting switches, setting all ports to 2Gb hard, eliminating controllers (each controller presents all LUNs), eliminating ports on the fibre card, direct attaching the machine to the array, yet I am consistently getting the same (crappy) results on one LUN, and decent on another. Interestingly I see reads in the 30-40megs per member all the time, but writes suck consistently. We had a network maintenance the day before, which was also rolled back. Anyone has _any_ clue on how to troubleshoot this further? FOLLOW UP: I do see a problem (this was done with 30secs) iostat intervals extended device statistics device r/s w/s kr/s kw/s wait actv svc_t %w %b 0.0 6.3 0.0 3.3 0.0 0.0 0.0 0.6 0 0 c7t6000402002FC424F6CF5318F00000000d0s0 0.0 25.1 0.0 805.3 0.0 0.0 0.0 1.4 0 2 c7t6000402002FC424F6CF5317A00000000d0s0 1.4 6.9 3.4 3.3 0.0 0.0 0.0 0.5 0 0 c7t6000402002FC424F6CF5318F00000000d0s0 1.4 26.1 3.4 822.5 0.0 0.0 0.0 1.4 0 2 c7t6000402002FC424F6CF5317A00000000d0s0 73.0 11.6 4476.2 165.0 0.0 2.9 0.0 34.1 0 17 c7t6000402002FC424F6CF5318F00000000d0s0 76.4 19.3 4727.3 487.2 0.0 2.6 0.0 27.1 0 17 c7t6000402002FC424F6CF5317A00000000d0s0 However, I do not understand why ZFS is making writes in such a lopsided manner. E.g. why are number of writes equal to the LUNs, yet the # of KB is substantially different Also, we did try swapping cables. From Eric.Bonharme at motortrak.com Wed Aug 6 09:56:43 2008 From: Eric.Bonharme at motortrak.com (Eric Bonharme) Date: Wed, 6 Aug 2008 14:56:43 +0100 Subject: Difficulties downloading Raid Manager (rm6) Message-ID: <727C584A7D2AAB48BFDB0E60FE0420C72C256FC103@mtrak-pdc.MTRAK> Hi there, I have a couple of old A1000 disk arrays and I can't seem to find where to download Raid Manager 6. I know the package names (SUNWosa*) and have checked Sunsolve's download page for it (http://www.sun.com/storagetek/management_software/raid_manager.html) but I can only seem to download a couple of PDF documents, even after logging in with an active sunsolve account. I've already raised this with Sun download Customer Services (about a week ago) and still haven't got a response. Apparently the filename I need is rm6221-fcs-sparc-bin.zip. I've done a search on google and sun.com but still can't find where to download this from. Would some kind soul make this available by FTP for me? Thanks very much in advance. Eric Eric Bonharme w: +44 (0)20 8335 2000 e: eric.bonharme at motrotrak.com www.motortrak.com digital media solutions Motortrak Ltd, AC Court, High Street, Thames Ditton, Surrey, KT7 0SR, United Kingdom From stepchung at gmail.com Wed Aug 6 12:02:33 2008 From: stepchung at gmail.com (Stephanie C) Date: Wed, 6 Aug 2008 09:02:33 -0700 Subject: SUMMARY: PLEASE READ - Oracle DB on ZFS Version Message-ID: <6bdfa8ce0808060902y75adb2bcy66b543621843f101@mail.gmail.com> I would like to withdraw my question due to one gentlemen (hike < mh1272 at gmail.com>) who is giving me a hard time about my question. I treat every questions on this list that subjects to SUN related with respect, even simple or stupid questions. I don't give people hard time because their questions, I ignore them. Since this gentlemen gave me a hard time about this, please ignore my question. Thank you very much for all replied my questions, 18 educational institutions are running Oracle on ZFS with no problem. Thanks again. Note: I will have to be careful about the questions on this list so people do not attack me. Stephanie Original question: Hello- I posted a question earlier about this issue. I got very good responses and already summarized the result on the list (summary again below). That is not enough to convince my boss to go with ZFS for Oracle database. We are an higher Education intuition. He wants to know if any colleges or universities out there run Oracle DB on ZFS and any problem or issue with it. He does not want 'we are the first education institution to do this'. Please let me know if you are an education institution running oracle db on zfs. Thank you. From I.Pease at esteem.co.uk Wed Aug 6 12:25:11 2008 From: I.Pease at esteem.co.uk (Ian Pease) Date: Wed, 6 Aug 2008 17:25:11 +0100 Subject: Sun app server Message-ID: <8A8613F48850F54C888FD68BAD5B13453F1783@est-ex-001.springfield.local> Apologies if this is not the correct topic for sunmanagers We are upgrading from sun app server 7 to app server 9. We have a requirement to run specific applications as a specific user (usually non privileged - but possibly different for each server). App server 7 supports this using the following line in the init.conf file: ... User myuser ... How can we do this with app server 9 ? We've spent quite a bit of time hunting for the solution and it's preventing us from going live From rayfrancis at hantover.com Wed Aug 6 16:38:30 2008 From: rayfrancis at hantover.com (Ray Francis) Date: Wed, 6 Aug 2008 15:38:30 -0500 Subject: A6130 Storage Array Message-ID: <200808062038.PAA07139@mail.hantover.com> OS: Solaris 10 HW: V490 A6130 Storage Array intalled in 2004 Original firmware level + 1 need to update the firmware Uses S