setaOffice

Unix Intelligence Gathering

Fencing agent ipmi_ilo incompatible with Red Hat Cluster and HP iLO3

Posted by Emerson Takahashi on February 2, 2012

I have a two node Red Hat Cluster with HP Proliant servers.

This server has an HP iLO3 for Out-of-band management.

The fence_ilo agent works with iLO and iLO2.
Fence Device and Agent Information for Red Hat Enterprise Linux

You will need to use fence_ipmplan agent with the recommended settings following this Red Hat document:
How do you configure the fence device agent information option for the HP ILO 3?

Posted in Linux | Tagged: , , , | Leave a Comment »

2011 in review

Posted by Emerson Takahashi on December 31, 2011

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

Madison Square Garden can seat 20,000 people for a concert. This blog was viewed about 64,000 times in 2011. If it were a concert at Madison Square Garden, it would take about 3 sold-out performances for that many people to see it.

Click here to see the complete report.

Posted in Solaris | Leave a Comment »

Creating and removing a logical volume in AIX

Posted by Emerson Takahashi on November 29, 2011

I had several logical volumes that were presenting a weird error

root@aix:/ # rmlvcopy lvpooldom01001 1
0516-622 rmlvcopy: Warning, cannot write lv control block data.

I tried to migrate the logical volume off the disk

root@cvrdalebk01:/ # migratepv -l lvpooldom01001 hdisk3
0516-076 lmigratelv: Cannot remove last good copy of stale partition.
Resynchronize the partitions with syncvg and try again.
0516-812 migratepv: Warning, migratepv did not completely succeed;
all physical partitions have not been moved off the PV.

But it was not completed successfully

root@aix:/ # lsvg -l tsm01vg
tsm01vg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lvtsm jfs2 32 32 1 open/syncd /tsm
loglv00 jfs2log 1 1 1 open/syncd N/A
lvtsmdborig01 jfs 512 512 1 open/syncd N/A
lvtsmdborig02 jfs 512 512 1 open/syncd N/A
lvtsmlogorig01 jfs 256 256 1 open/syncd N/A
lvtsmdbmirr01 jfs 512 512 1 open/syncd N/A
lvtsmdbmirr02 jfs 512 512 1 open/syncd N/A
lvtsmlogmirr01 jfs 256 256 1 open/syncd N/A
0516-1147 : Warning – logical volume lvpooldom01001 may be partially mirrored.
lvpooldom01001 raw 512 666 11 closed/stale N/A

So I ended up removing the logical volumes

root@aix:/ # rmlv lvpooldom01001
Warning, all data contained on logical volume lvpooldom01001 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume lvpooldom01001 is removed.
root@aix:/ # rmlv -f lvpooldom01003
rmlv: Logical volume lvpooldom01003 is removed.
root@aix:/ # rmlv -f lvpooldom01004
rmlv: Logical volume lvpooldom01004 is removed.
root@aix:/ # rmlv -f lvpooldom01005
rmlv: Logical volume lvpooldom01005 is removed.

And then recreating them

root@aix:/ # mklv -t raw -y lvpooldom01001 tsm01vg 512
lvpooldom01001

Here is the status. No warning was displayed

root@aix:/ # lsvg -l tsm01vg | grep lvpooldom01001
lvpooldom01001 raw 512 512 1 closed/syncd N/A

Posted in AIX | Tagged: , | Leave a Comment »

Checking WWPN for a Linux host

Posted by Emerson Takahashi on November 25, 2011

Here is a dual port HBA

root@linux:~ # lspci | grep -i fibre
06:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
06:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)

Verifying the WWPN from the HBA

root@linux:~ # cat /sys/class/scsi_host/host0/device/fc_host\:host0/port_name
0x10000000c99f46b4
root@linux:~ # cat /sys/class/scsi_host/host1/device/fc_host\:host1/port_name
0x10000000c99f46b5

The WWPN show above is:
10:00:00:00:c9:9f:46:b4
10:00:00:00:c9:9f:46:b5

Or you can use systool instead of messing with /proc

root@linux:~ # systool -av -c fc_host
Class = “fc_host”

Class Device = “host0″
Class Device path = “/sys/class/fc_host/host0″
active_fc4s = “0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 “
fabric_name = “0x100000051ef61a00″
issue_lip =
maxframe_size = “2048 bytes”
node_name = “0x20000000c99f46b4″
port_id = “0x648acd”
port_name = “0x10000000c99f46b4″
port_state = “Online”
port_type = “NPort (fabric via point-to-point)”
speed = “4 Gbit”
supported_classes = “Class 3″
supported_fc4s = “0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 “
supported_speeds = “1 Gbit, 2 Gbit, 4 Gbit”
tgtid_bind_type = “wwpn (World Wide Port Name)”
uevent =

Device = “host0″
Device path = “/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.0/host0″
uevent =

Class Device = “host1″
Class Device path = “/sys/class/fc_host/host1″
active_fc4s = “0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 “
fabric_name = “0x1000000533021c00″
issue_lip =
maxframe_size = “2048 bytes”
node_name = “0x20000000c99f46b5″
port_id = “0xc88ac5″
port_name = “0x10000000c99f46b5″
port_state = “Online”
port_type = “NPort (fabric via point-to-point)”
speed = “4 Gbit”
supported_classes = “Class 3″
supported_fc4s = “0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×01 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 0×00 “
supported_speeds = “1 Gbit, 2 Gbit, 4 Gbit”
tgtid_bind_type = “wwpn (World Wide Port Name)”
uevent =

Device = “host1″
Device path = “/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.1/host1″
uevent =

Posted in Linux | Tagged: , | Leave a Comment »

Deleted file in Linux but didn’t reclaim space in filesystem

Posted by Emerson Takahashi on October 31, 2011

The reason that the space in the filesystem wasn’t reclaimed is because the file was opened and in use by another application

root@linux:~ # lsof /bkpcvrd | grep deleted
dsmc 21215 root 11r REG 253,9 4268860136 1097761 /bkpcvrd/pbh020/export/pbh020_20111001.dmp.gz (deleted)
dsmc 30379 root 8r REG 253,9 4268860136 1097761 /bkpcvrd/pbh020/export/pbh020_20111001.dmp.gz (deleted)
dsmc 32691 root 9r REG 253,9 4268860136 1097761 /bkpcvrd/pbh020/export/pbh020_20111001.dmp.gz (deleted)

Check the directory where the file descriptors for the PID is

root@linux:/proc/21215/fd # ls -l
total 12
l-wx—— 1 root root 64 2011-10-04 10:09 0 -> /dev/null
l-wx—— 1 root root 64 2011-10-04 10:09 1 -> /root/nohup.out
lrwx—— 1 root root 64 2011-10-04 10:09 10 -> socket:/[32923523]
lr-x—— 1 root root 64 2011-10-04 10:09 11 -> /bkpcvrd/pbh020/export/pbh020_20111001.dmp.gz (deleted)
l-wx—— 1 root root 64 2011-10-04 10:09 2 -> /dev/null
l-wx—— 1 root root 64 2011-10-04 10:09 3 -> /opt/tivoli/tsm/client/ba/bin/dsmerror.log
l-wx—— 1 root root 64 2011-10-04 10:09 4 -> /opt/tivoli/tsm/client/ba/bin/dsmsched.log
lrwx—— 1 root root 64 2011-10-04 10:09 5 -> socket:/[31319408]
lrwx—— 1 root root 64 2011-10-04 10:09 6 -> socket:/[31319409]
lrwx—— 1 root root 64 2011-10-04 10:09 7 -> socket:/[33998182]
lrwx—— 1 root root 64 2011-10-04 10:09 8 -> socket:/[33083683]
lr-x—— 1 root root 64 2011-10-04 10:09 9 -> /usr/oradata/orapbh020/tbd1/LENEL_DATA.D001
You previously saw that the there is a link and in the end it says deleted. Type > in the number that was shown in that line

root@linux:/proc/21215/fd # > 11

List the other file descriptors

root@linux:/proc/30379/fd # ls -l
total 11
lrwx—— 1 root root 64 2011-10-04 10:09 0 -> /dev/console
l-wx—— 1 root root 64 2011-10-04 10:09 1 -> /dev/null
lrwx—— 1 root root 64 2011-10-04 10:09 10 -> socket:/[33912163]
lr-x—— 1 root root 64 2011-10-04 10:09 11 -> /usr/oradata/orapbh020/tbd1/LENEL_DATA.D001
l-wx—— 1 root root 64 2011-10-04 10:09 2 -> /dev/null
l-wx—— 1 root root 64 2011-10-04 10:09 3 -> /opt/tivoli/tsm/client/ba/bin/dsmerror.log
l-wx—— 1 root root 64 2011-10-04 10:09 4 -> /opt/tivoli/tsm/client/ba/bin/dsmsched.log
lrwx—— 1 root root 64 2011-10-04 10:09 5 -> socket:/[21055400]
lrwx—— 1 root root 64 2011-10-04 10:09 6 -> socket:/[31339242]
lrwx—— 1 root root 64 2011-10-04 10:09 7 -> socket:/[33078656]
lrwx—— 1 root root 64 2011-10-04 10:09 9 -> socket:/[32744402]

root@linux:/proc/32691/fd # ls -l
total 11
l-wx—— 1 root root 64 2011-10-04 10:09 0 -> /dev/null
l-wx—— 1 root root 64 2011-10-04 10:09 1 -> /opt/tivoli/tsm/client/ba/bin/nohup.out
lr-x—— 1 root root 64 2011-10-04 10:09 10 -> /bkpcvrd/pbh020/export/pbh020_20111002.dmp.gz
l-wx—— 1 root root 64 2011-10-04 10:09 2 -> /dev/null
l-wx—— 1 root root 64 2011-10-04 10:09 3 -> /opt/tivoli/tsm/client/ba/bin/dsmerror.log
l-wx—— 1 root root 64 2011-10-04 10:09 4 -> /opt/tivoli/tsm/client/ba/bin/dsmsched.log
lrwx—— 1 root root 64 2011-10-04 10:09 5 -> socket:/[33364746]
lrwx—— 1 root root 64 2011-10-04 10:09 6 -> socket:/[33364747]
lrwx—— 1 root root 64 2011-10-04 10:09 7 -> socket:/[33365181]
lrwx—— 1 root root 64 2011-10-04 10:09 8 -> socket:/[33365142]
lr-x—— 1 root root 64 2011-10-04 10:09 9 -> /bkpcvrd/pbh020/export/pbh020_20111003.dmp.gz

The space is now reclaimed

root@linux:~ # df -h /bkpcvrd
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-bkpcvrdlv
17G 8.2G 7.3G 53% /bkpcvrd

Listing the open files in the filesystem to see if there is still an open file with the deleted status

root@linux:~ # lsof /bkpcvrd | grep deleted
root@linux:~ #

Posted in Linux | Tagged: , , | Leave a Comment »

Which package contains rstatd for Red Hat Enterprise Linux 5.5

Posted by Emerson Takahashi on October 26, 2011

The service rstatd is in package rusers-server

https://access.redhat.com/kb/docs/DOC-51169

Posted in Linux | Tagged: , , | Leave a Comment »

Sun ILOM targets

Posted by Emerson Takahashi on October 13, 2011

Here is the Sun / Oracle ILOM targets

-> help targets

Target Meaning

/ Contains all static objects
/HOST Host Information
/HOST/bootmode Bootmode Control
/HOST/diag Host Diagnostics Control
/HOST/domain Host Domain Info
/HOST/domain/control Control Domain Info
/SYS Sensors, Indicators, and FRU Information
/SP Service Processor
/SP/alertmgmt Alert rule management
/SP/alertmgmt/rules Alert rules
/SP/check_physical_presence Require a physical presence check for certain system commands
/SP/clients Clients that connect to external services
/SP/clients/activedirectory Active Directory sub-directory
/SP/clients/activedirectory/admingroups administrator groups sub-directory
/SP/clients/activedirectory/alternateservers alternate servers sub-directory
/SP/clients/activedirectory/alternateservers/1/cert cert directory
/SP/clients/activedirectory/alternateservers/2/cert cert directory
/SP/clients/activedirectory/alternateservers/3/cert cert directory
/SP/clients/activedirectory/alternateservers/4/cert cert directory
/SP/clients/activedirectory/alternateservers/5/cert cert directory
/SP/clients/activedirectory/cert cert sub-directory
/SP/clients/activedirectory/customgroups custom groups sub-directory
/SP/clients/activedirectory/dnslocatorqueries DNS service record sub-directory
/SP/clients/activedirectory/opergroups operator groups sub-directory
/SP/clients/activedirectory/userdomains user domain sub-directory
/SP/clients/dns DNS resolution configuration
/SP/clients/dns/auto_dns When enabled, any manually configured entries will be overwritten with the values obtained via DHCP.
/SP/clients/dns/nameserver Up to three comma separated name server IP addresses in preferred search order
/SP/clients/dns/retries The number of retry attempts used in the event of a timeout.
/SP/clients/dns/searchpath Up to six comma separated search suffixes in preferred search order
/SP/clients/dns/timeout The number of seconds to wait for a response to a query.
/SP/clients/ldap LDAP Client Properties
/SP/clients/ldapssl LDAP/SSL sub-directory
/SP/clients/ldapssl/admingroups administrator groups sub-directory
/SP/clients/ldapssl/alternateservers alternate servers sub-directory
/SP/clients/ldapssl/alternateservers/1/cert cert directory
/SP/clients/ldapssl/alternateservers/2/cert cert directory
/SP/clients/ldapssl/alternateservers/3/cert cert directory
/SP/clients/ldapssl/alternateservers/4/cert cert directory
/SP/clients/ldapssl/alternateservers/5/cert cert directory
/SP/clients/ldapssl/cert cert sub-directory
/SP/clients/ldapssl/customgroups custom groups sub-directory
/SP/clients/ldapssl/opergroups operator groups sub-directory
/SP/clients/ldapssl/userdomains user domain sub-directory
/SP/clients/ntp NTP configuration
/SP/clients/ntp/server NTP server configuration
/SP/clients/radius RADIUS Client Properties
/SP/clients/smtp SMTP SERVER
/SP/clients/syslog syslogd management
/SP/clients/syslog/1 syslogd remote logging management 1
/SP/clients/syslog/2 syslogd remote logging management 2
/SP/clock Clock management
/SP/config Config Backup / Restore settings
/SP/console Redirection of console stream to SP
/SP/console/history console history
/SP/diag SP/Host Diagnositics Configuration
/SP/diag/snapshot Take snapshot of system for diagnostic purposes
/SP/faultmgmt FRUs with faults
/SP/firmware Firmware Base TARGET
/SP/firmware/localimage Firmware local image TARGET
/SP/firmware/localimage/upload_date Firmware local image date
/SP/firmware/localimage/version Firmware local image version
/SP/logs Log events
/SP/logs/event Designations for event log
/SP/logs/event/list Designations for event log
/SP/network External network interface
/SP/policy Policy Configuration
/SP/serial Serial interfaces
/SP/serial/external External serial interface
/SP/services Available services
/SP/services/http HTTP service
/SP/services/https HTTPS service
/SP/services/https/ssl HTTPS SSL Certficate Settings
/SP/services/https/ssl/custom_cert Custom SSL Certficate Settings
/SP/services/https/ssl/custom_key Custom SSL Private Key Settings
/SP/services/https/ssl/default_cert Default SSL Certficate Settings
/SP/services/ipmi Management of the IPMI service
/SP/services/servicetag Servicetag configuration
/SP/services/snmp SNMP agent service configuration
/SP/services/snmp/communities snmp communities
/SP/services/snmp/communities/private snmp community
/SP/services/snmp/communities/public snmp community
/SP/services/snmp/users SNMP users
/SP/services/ssh Secure shell
/SP/services/ssh/keys Keys for secure shell
/SP/services/ssh/keys/dsa DSA key for secure shell
/SP/services/ssh/keys/rsa RSA key for secure shell
/SP/services/sso Single Sign-on Configuration
/SP/sessions Session description
/SP/users User description

List all the users on ILOM

-> show /SP/users

/SP/users
Targets:
root

Properties:

Commands:
cd
create
delete
set
show

Creating a new user

-> create /SP/users/admin password=12345678
Creating user…
Created /SP/users/admin

Setting the role to administrator

-> set /SP/users/admin role=Administrator
Set ‘role’ to ‘Administrator’

If you want to use ILOM exactly as an ALOM, set the CLI mode to ALOM

-> set /SP/users/admin cli_mode=alom
Set ‘cli_mode’ to ‘alom’

Posted in Solaris | Tagged: , , | Leave a Comment »

Disassembling and reassembling the Sanwa JLF-TP-8Y-SK-W from the Mad Catz Tournament Edition

Posted by Emerson Takahashi on September 19, 2011

Removing the ball top, shaft cover and dustwasher @ 4m10s
Disconnecting the cable @ 5m50s

Remove the restrictor plate @ 5m53s
The PCB connector is pointed away from the buttons
Remove the Sanwa JLF-E “E-Clip”, Sanwa JLF-P-5 Actuator, Sanwa JLF-SP Spring

Reassemble

If you need to order the JFL parts from Lizard Lick, here is what’s used inside
Left column: Samwa LB-35 Ball Top, Sanwa JLF-CD Shaft Cover Kit. Center column: Sanwa JLF-P-4 Pivot Cylinder, Sanwa JL-PP1 Dustwasher. Right column: Sanwa JLF-MW Metal Washer, Sanwa JLF-P-6 Spring Cover, Sanwa JLF-SP Spring, Sanwa JLF-P-5 Actuator

Between the joystick and top panel

Between the joystick and top panel goes the pivot cilinder

Put another dustwasher between the joystick and top panel

Joystick

Joystick with Metal Washer

Joystick with Metal Washer and Spring Cover

Joystick with Metal Washer, Spring Cover, Spring and Actuator

When you connect the cable to the 5 pin connector, make sure that the rails are facing up (away from the top panel)

Posted in Hardware | Tagged: , | Leave a Comment »

Disassemble a Mad Catz FightStick Tournament Edition

Posted by Emerson Takahashi on September 18, 2011

Here is some videos that shinjnSRK from shoryuken.com shows how to disassemble a Mad Catz FightStick Tournament Edition

How to open the case

Main Printed Circuit Board and Terminal Block

Control Module and USB cable compartment

Top control panel

Removing the Sanwa snap-in buttons and replacing with Seimitsu, Sanwa screw-in buttons

Semitsu LS-32-01 (Semitsu SS mounting plate) and Sanwa JLF-P1 flat mounting plate

How to fit a Happ/iL pushbutton and joystick

Summary

Mad Catz FightStick LockSwitch++ Mod

Solderless Tricks & Tips for QDs and Ribbon Connectors

Posted in Hardware | Tagged: , , | Leave a Comment »

Suse Linux SP2 hwinfo: braille.4.2: alva read data freezes

Posted by Emerson Takahashi on July 15, 2011

I ran the command hwinfo and waited a long time seeing this message

root@suselinux10sp2:~ # hwinfo
> braille.4.2: alva read data

I checked the hwinfo package

root@suselinux10sp2:~ # rpm -qi hwinfo
Name : hwinfo Relocations: (not relocatable)
Version : 12.55 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 0.3 Build Date: Wed 23 Apr 2008 08:10:20 PM BRT
Install Date: Fri 05 Sep 2008 08:11:38 AM BRT Build Host: janacek.suse.de
Group : Hardware/Other Source RPM: hwinfo-12.55-0.3.src.rpm
Size : 1828813 License: GPL v2 or later
Signature : DSA/SHA1, Wed 23 Apr 2008 08:13:01 PM BRT, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
Summary : Hardware Library
Description :
A simple program that lists results from the hardware detection
library.
Distribution: SUSE Linux Enterprise 10 (X86-64)

And the distribution that I was using

root@suselinux10sp2:~ # cat /etc/*release
LSB_VERSION=”core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64″
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 2

Then I’ve updated the package hwinfo with the one on the Suse Linux 10 SP4 ISO – hwinfo-12.67-0.7.21.x86_64.rpm

root@suselinux10sp2 # rpm -U hwinfo-12.67-0.7.21.x86_64.rpm
root@suselinux10sp2 #

Posted in Linux | Tagged: , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 244 other followers