Dennis Richie, one of the creators of UNIX and C has died

It is a very sad news for all of us. A true pioneer in modern computing and the one that revolutionizes on what we are all using today. Without C language, we will not have Java, C++, Basic. Without Unix, what Operating System will the world would be using.

Dennis Ritchie

#include <stdio.h>

int main(void)
{
printf("RIP Dennis Richie.\n");
return(0);
}

Check out Dennis’ site at Bell-Labs

Dennis’ Wikipedia Biography

Printer Management on AIX

Managing printer is one of the least task of a Unix System Admin. But printer management is typically easy to get along with as there is just minimal commands and options that we use. Here are some of my trusted commands to manage printers:

From the man pages of enq(1):

The enq command is a general-purpose utility for enqueuing requests to a 
shared resource, typically a printer device. Use the enq command to enqueue 
requests, cancel requests, alter the priority of a request, and display the 
status of queues and devices.

Check ALL Printer Queues:

[email protected]# lsallq

Check Printer status:

[email protected]# enq -s -P <PRINTER NAME>

Check Printer Queue:

[email protected]# enq -q -P <PRINTER NAME>

Start UP Printer

[email protected]# enq -U -P <PRINTER NAME>

Shutdown abruptly the Printer

[email protected]# enq -D -P <PRINTER NAME>

Shutdown Gracefully the printer

[email protected]# enq -G -P <PRINTER NAME>

Delete ALL print JOBS

[email protected]# enq -X -P <PRINTER NAME>

Delete specific Print Job

[email protected]# enq -x <print ID> -P <PRINTER NAME>

Sun StorEdge A1000 Battery Replacement Procedure

Sun StorEdge A1000 is one of the oldest storage array from SUN but still widely used. Just recently, we received a battery expiration and we need this replaced as soon as possible to ensure optimal operation of the said Sun StorEdge A1000 array. Below are the steps that we used to replace the expired battery:

Run the following Sun StorEdge RAID Manager 6(RM6) CLI command:

Determine the device name:

[email protected]# /usr/lib/osa/bin/lad
c1t0d0 1T93803809 LUNS: 0 1

Determine the battery age, use the device name listed in lad command:

[email protected]# /usr/lib/osa/bin/raidutil -c c1t0d0 -B
LUNs found on c1t0d0.
LUN 0    RAID 0    10 MB
LUN 1    RAID 5    1000 MB

Battery age is between 720 days and 810 days.

raidutil succeeded!

battery age between 630 and 720 days – near expiration
battery age greater than 720 days – expired

Battery should be replaced for all the above cases.

NOTE: A1000 battery is not hotswappable.

Disable the Write Caching option by using the RM6 command line commands:

[email protected]# /usr/lib/osa/bin/lad
c1t0d0 1T93803809 LUNS: 0 1

Write cache disabling:

[email protected]# /usr/lib/osa/bin/raidutil -c c1t0d0 -w off 0,1
LUNs found on c1t0d0.
LUN 0    RAID 5    8100 MB
LUN 1    RAID 5    8108 MB

Stop the host machine that is connected to the Sun StorEdge A1000 array.

[email protected]#  init 0

Wait for atleast two (2) minutes before shutting down the Sun StorEdge A1000 Array. Then replace the battery.

Boot the host machine, without the -r option.

After the battery replacement, run the following RM6 command to reset the battery age: raidutil -c <device> -R

[email protected]# /usr/lib/osa/bin/raidutil -c c1t0d0 -R
LUNs found on c1t0d0.
LUN 0    RAID 0    10 MB
LUN 1    RAID 5    1000 MB

raidutil succeeded!

Check the new battery age:

[email protected]# /usr/lib/osa/bin/raidutil -c c1t0d0 -B
LUNs found on c1t0d0.
LUN 0    RAID 0    10 MB
LUN 1    RAID 5    1000 MB

Battery age is between 0 days and 90 days.

raidutil succeeded!

Re-enable the Write Caching option by using the RM6 GUI or by using the RM6 command line commands:

[email protected]# /usr/lib/osa/bin/raidutil -c c1t0d0 -w on 0,1
LUNs found on c1t0d0.
LUN 0    RAID 5    8100 MB
LUN 1    RAID 5    8108 MB

Theck to see if the battery is working, for example running RM6 GUI’s health check or running command “/usr/lib/osa/bin/healthck -a”.

Clearing FMA faults on Oracle/Sun Fire T1000/T2000

After replacing a defective part on a Sun Fire T1000/T2000 boxes, we need to clear the FMA Faults. There are two ways that we can achieve this task – via the System Controller (SC) or Solaris OS. I usually prefer the path because there is no downtime required but there would be times that we need to do it on the OS side.

Clearing faults from SC:

Show the faults on the system controller

sc> showfaults -v

For each fault listed run

sc> clearfault <uuid>

If there are any disabled components run

sc> clearasrdb

Clear ereports

sc> setsc sc_servicemode true
sc> clearereports -y
sc> setsc sc_servicemode false

To clear the FMA faults and error logs from Solaris:

Show faults in FMA

[email protected]# fmadm faulty

For each fault listed in the ‘fmadm faulty’ run

[email protected]# fmadm repair <uuid>

Clear ereports and resource cache

[email protected]# cd /var/fm/fmd
[email protected]# rm e* f* c*/eft/* r*/*

Reset the fmd serd modules

[email protected]# fmadm reset cpumem-diagnosis
[email protected]# fmadm reset cpumem-retire
[email protected]# fmadm reset eft
[email protected]# fmadm reset io-retire

Reboot the system

[email protected]# reboot
or
[email protected]# shutdown -y -g0 -i6

Install EMC PowerPath License on UNIX Systems

Today we encountered a degraded policy in EMC PowerPath disk on one of our SUN/Oracle Solaris boxes. We found out that the license for our PowerPath was not properly installed on the system. With this current issue – our disks is only running on Basic Failover policy which is not recommended for CLARiiON disks. To mitigate the issue, we need to install the license and set the policy back to CLARiiON Optimization Policy.

Check the current status of the EMC PowerPath

[email protected]# /etc/powermt display dev=emcpower0a
Pseudo name=emcpower0a
CLARiiON ID=APM00063103821 [solaris]
Logical device ID=600601601C0XXXXXXXXXXXXXXXXXXX11 [LUN 356]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP A, current=SP A       Array failover mode: 1
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
3074 [email protected][email protected][email protected]/SUNW,[email protected][email protected],0 c3t500601234567890Bd0s0 SP A1
 active  alive       0      1
3074 [email protected][email protected][email protected]/SUNW,[email protected][email protected],0 c3t500601234567891Bd0s0 SP B1
 active  alive       0      0
3075 [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0 c3t500601234567892Bd0s0 SP A3
 unlic   alive       0      1
3075 [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0 c3t500601234567893Bd0s0 SP B3
 unlic   alive       0      0

Install the license

[email protected]# /etc/emcpreg -install
===========   EMC PowerPath Registration ===========
Do you have a new registration key or keys to enter?[n] y
Enter the registration keys(s) for your product(s),
one per line, pressing Enter after each key.
After typing all keys, press Enter again.

Key (Enter if done): ABCD-EFGH-1234-IJKL-5678-MNOP
1 key(s) successfully added.
Key successfully installed.

Key (Enter if done):
1 key(s) successfully registered.

Check if the license was installed

[email protected]# /etc/powermt check_registration
Key ABCD-EFGH-1234-IJKL-5678-MNOP
Product: PowerPath
Capabilities: All

Set the policy to CLARiiON Optimization

[email protected]# /etc/powermt set policy=co dev=emcpower0a

Check the status of the EMC PowerPath after the changes

[email protected]# /etc/powermt display dev=emcpower0a
Pseudo name=emcpower0a
CLARiiON ID=APM00063103821 [solaris]
Logical device ID=600601601C0XXXXXXXXXXXXXXXXXXX11 [LUN 356]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0;
Owner: default=SP A, current=SP A       Array failover mode: 1
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
3074 [email protected][email protected][email protected]/SUNW,[email protected][email protected],0 c3t500601234567890Bd0s0 SP A1
 active  alive       0      1
3074 [email protected][email protected][email protected]/SUNW,[email protected][email protected],0 c3t500601234567891Bd0s0 SP B1
 active  alive       0      0
3075 [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0 c3t500601234567892Bd0s0 SP A3
 active  alive       0      1
3075 [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0 c3t500601234567893Bd0s0 SP B3
 active  alive       0      0

UNIX Note has a new logo

After more than a year of floating around the net. UNIX Note has a new logo!!! A very good friend of UNIX Note has given our logo a total make over. And now may we present to you our new logo:

UNIX Note BOX Logo

UNIX Note BannerTell us what you think.

This entry was posted in Uncategorized on by .

Google+ Invite Request

Just fill in your name and email address on the following fields for us to send you the invites. Your details will not be displayed publicly. Currently Google+ is under maintenance but we will try to send the invites as soon as Google+ comes up again.

Looks like the invite system will be more strict than it has given its beta users hours back. You may still want to place in your details and we will try to send you the invite the soonest. Our apologies.

Google+ Invite Shuts Down

Oracle Solaris 11 Express

The latest Operating System that Oracle has in store for all of us System Administrators can now be tried out now. Oracle Solaris 11 Express is the latest OS offering that focuses on these key technologies:

Oracle Solaris Availability
x86 Optimization for Oracle Solaris
ZFS Technology
Image Packaging System (IPS)
Virtualization
Network Virtualization

Based on Oracle Solaris 11 Express site:

Oracle Solaris 11 Express raises the bar on the functionality introduced in Oracle Solaris 10, continuing Oracle’s leadership for providing the best choice for mission critical operating system enterprise environments. With new features such as network based package management tools to greatly decrease planned system downtime and provide for a complete safe system upgrade, built-in network virtualization and delegated administration for an unprecedented level of flexibility for application consolidation, and continued leadership for providing the highest levels of security, Oracle Solaris 11 Express is the most exciting release of the Oracle Solaris platform to date.

Oracle Solaris 11 Express is fully tested and supported on a variety of SPARC and x86-based systems from Oracle and other hardware platforms from 3rd party vendors. Support on Exadata Database machine and Exalogic Elastic Cloud is coming soon.

To get our hands dirty, go download the Oracle Solaris 11 Express now!

High Availability on Oracle Solaris with Clustering

Having a Mission-Critical Environment means a system downtime could mean a lot. Here comes the high availability comes in, and with clustering this give our service availability very high. In the upcoming Solaris 11, high availability is the main focus of Oracle. Solaris Cluster covers a lot of applications, zfs and virtualized zones.

To check out all the best that would be coming out with Solaris Cluster check out this podcast.

For more info check Solaris Cluster Website

Oracle SPARC Enterprise M-Series Servers

The product pages for Oracle’s M-Series of SPARC servers are now online! These boxes now include the latest SPARC technology in the name of SPARC64 VII+ quad-core processor. Based from their site:

Oracle’s SPARC Enterprise M-Series servers running Oracle Solaris deliver the highest levels of performance, scalability, and availability for mission-critical applications. They provide an always-on platform that is ideal for system consolidation and they offer the highest level of investment protection.

Highest Performance and Scalability: Deploy from 1 to 64 processors for mission-critical, complex application workloads, including OLTP, data warehouse, and ERP
Ideal Consolidation Platform: Reduces complexity and overhead with built-in virtualization
Most Affordable High Availability: Delivers mission-critical availability features at a fraction of the cost
Assured Investment Protection: Provides hardware and operating system upgrades that work with your existing systems

Check out more from the Oracle SPARC Enterprise M-Series Servers Product Page

Or if you want to jump straight to specific model, check this out:

SPARC Enterprise M3000
SPARC Enterprise M4000
SPARC Enterprise M5000
SPARC Enterprise M8000
SPARC Enterprise M9000

This entry was posted in Uncategorized on by .