Category: Solaris 10

Solaris Kernel Patching Recommended Patch

Check out this article about Solaris Kernel Patching Recommended Patch. Please tell me what you think about it. You can contact me anytime!

Here’s another Kernel patching of Solaris. I know there are tons of this type of post in the internet but another reference for the one who needs it, is I guess ok.

To be honest, this is the steps that really made me understood the steps and procedure and the concept behind the 10_Recommended patch for solaris kernel.

Continue reading »

Metastat Needs Maintenance Metareplace

Check out this article about Metastat Needs Maintenance Metareplace. Please tell me what you think about it. You can contact me anytime!

Guilty! Putting all those Metastat keywords on one subject, that’s me! ANyway, I don’t want to stale this blog so once in a while I’m going to be posting some bits and pieces of Unix tools/tips.. and here’s a new one about SVM… Responding to Disk Errors courtesy of BigAdmin!

Continue reading »

Send Break on SPARC Enterprise T5120 – Send Break on ILOM

Check out this article about Send Break on SPARC Enterprise T5120 – Send Break on ILOM. Please tell me what you think about it. You can contact me anytime!

Send Break on SPARC Enterprise T5120 – well it for the T5000 series I guess, the newer ones. Or “Sending Break onan ILOM..

“->” = ILOM
“sc>” = ALOM

.. and since this particular server has the “->” prompt we’re using the ILOM.

From ILOM to Solaris:
-> start /SP/console

From ALOM to Solaris:
sc> console

And of course.. Enter “#.” to return to ALOM / ILOM !!

Send Break on ILOM

set /HOST send_break_action=break
and then
start /SP/console

c)ontinue, s)ync, r)eset? s

bada bing! bada boom!

Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release

Check out this article about Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release. Please tell me what you think about it. You can contact me anytime!

Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release…

Will be installing Ruby on Rails using Cool Stack… this is the first of sets of post.. Now downloading the packages from Sun.com

Optimized Open Source Software Stack (Cool Stack) for the Sun Solaris Operating System(TM). Cool Stack is a collection of some of the most commonly used open source applications optimized for the Sun Solaris OS. By using these binaries you will enjoy the best levels of performance from your system, while also reducing your time-to-service.

Instructions: Select the files you want, then click the “Download Selected with Sun Download Manager” (SDM) button below to automatically install and use SDM (learn more). Alternately, click directly on file names to download with your browser. (Use of SDM is recommended but not required.)

Exiting from Container Console if forgot to specify an escape character…

Check out this article about Exiting from Container Console if forgot to specify an escape character…. Please tell me what you think about it. You can contact me anytime!

Once you have a non-global zone installed or running on a Solaris 10 installation, it is often useful to connect to the console of the zone. This provides the same control over the zone as connecting to the console of a physical server running Solaris.

To connect to the console of a Solaris 10 zone called testzone, use the following command as root or the equivalent on the global zone:

zlogin -C testzone

The -C option specifies a console login. The console login will persist when the zone is rebooted.
To exit zlogin, use the escape sequence ~. on a new line (the tilde must follow a carriage return, not any other character). If this escape character is inappropriate (because you are connected using software like tip that also uses this escape sequence), you can specify a different escape character on the command line. For example, to use the @ symbol, use:

zlogin -C -e @ testzone

In this case, to exit the zlogin console session, type @. on a new line

Just a note of reference, if you are using tip and forget to change the escape character above. you can do the following to get out

~~.

This will force it to disconnect the local zlogin instead of the tip…
—-
However, let’s go deeper….

If you logged into a container’s console (via chs000xx —> ILOM —> then to a serial console)..


#. – will exit to ILOM (but once you logged in again.. you’re in container’s console)
~. – will exit to chs000xx (but once you logged in again.. you’re in container’s console)
~~. – WILL EXIT from the Container!!


It’s a like an hierarchy thingy..


(first part was taken from a website… later part was from me.. of course if you didn’t read all of it, you wont see this note.. :D )

http://sysadmindayph.com/

Setting Search $PATH csh

Check out this article about Setting Search $PATH csh. Please tell me what you think about it. You can contact me anytime!

Another quikie copy/paste kind of thingy…

You may set your search path automatically each time you log in, by placing the appropriate “set path” command in your “.login” file.

(To learn more about the .login file, type “help dotlogin”.) Here is a sample of a command line that you might put in your .login file to set a non-standard search path:

set path = ( $path /usr/ucb /bin /usr/bin /usr/new .)

How to Consolidate Servers and Applications using Solaris Containers

Check out this article about How to Consolidate Servers and Applications using Solaris Containers. Please tell me what you think about it. You can contact me anytime!

I am subscribe to the official Sun Microsystem newsletter and I got this one directly from my inbox that I want to share to every Solaris SysAdmin out there:

This How-To Guide instructs users, system administrators, and developers unfamiliar with Solaris 10 OS on consolidating applications onto a single server using Solaris Containers technology. The guide starts with a brief overview of Solaris Containers and follows with an example of using Solaris Containers to consolidate two Web server applications and an email server application onto a single server. Users are guided step-by-step through the consolidation process, with code examples and illustrations.

After using this guide, a user should be able to create Solaris Containers by:

* Creating a resource pool
* Defining Solaris Zones
* Assigning CPU usage with the Fair Share Scheduler (FSS)
* Installing and booting a zone
* Configuring access to raw devices from the zone

Continue reading »

Replacing a Failed Disk in Solaris Mirror (SVM)

Check out this article about Replacing a Failed Disk in Solaris Mirror (SVM). Please tell me what you think about it. You can contact me anytime!

This one is about Solaris Volume Manager and all those meta commands you can think of.. (metadb, metadettach, metattach, metaclear etc)…

Yesterday we had to replace a failed disk that belongs to a mirror. The disk is running in a Sparc Solaris 10 box. It’s a 72GB from Fujitsu

c1t1d0           Soft Errors: 440 Hard Errors: 12 Transport Errors: 124
Vendor: FUJITSU  Product: MAY2073RCSUN72G  Revision: 0501 Serial No: 0711S0935R
Size: 73.40GB <73400057856 bytes>

As you can see from the iostat -En command, the disk is spitting hard errors and must be replaced before it can cause a lot more headache. It’s in c1t1, right.

Here’s what we’re supposed to do:

  • we could delete the meta data base that corresponds to the failed disk
  • detached the failed disk/slices to the mirror
  • clear it
  • unconfigure the disk
  • replace the disk
  • configure the disk
  • create new meta device database
  • Initialize the disk
  • Attached it to mirror
  • and sync

Here’s the detailed job:

Continue reading »

Restoring File From UFSdump Backup

Check out this article about Restoring File From UFSdump Backup. Please tell me what you think about it. You can contact me anytime!

Here’s what we did today on one of our Solaris box that is worth mentioning on this cool super system administrator’s blog ‘o mine! (Don’t you find it cool that SysAds are so funny?!)

Anyhoo, today we re-jumpstarted a laboratory box because the ‘owner’ of it wants it back. Since we pretty much messed it up, I have to jumpstarted a fresh copy.

After installing returned the original /etc/shadow and /etc/passwd back from backup (had a backup file on the laptop).. but unfortunately, the /etc/shadow file is ‘null’.

Restoring File From UFSdump Backup

Here’s the procedure in restoring a particular file from ufs dump backup… Of course if you’re restoring from ufs backup you probably made a ufs backup in the first place, right? Right!

In this example, the files backup.examples and junk are restored from the pubs directory:

Continue reading »

Building ZFS Mirrored File System Example

Check out this article about Building ZFS Mirrored File System Example. Please tell me what you think about it. You can contact me anytime!

I’ve writted something about the Zeta file system before… It’s like some sort of an intro to the filesystem.

This post will be the first of series of post in configuring ZFS on a test machine, a Sun-Fire-V240 running Solaris 10.

# uname -a
SunOS sedm3205 5.10 Generic_137111-04 sun4u sparc SUNW,Sun-Fire-V240

Anyhow, first topic will be how to create/build, test, destroy and recreate a mirrored ZFS disk (or file based). Most of the ZFS commands we’ll be using are:

  • zpool
  • zcreate

That’s it!

Creating the ZFS Mirror

We’ll create two kinds of mirrored partition, one is file based and the other was is physical 175GB disk.

Continue reading »