Friday, December 17, 2010

HOW-TO: move SAN LUN between AIX boxes

http://blog.thilelli.net/post/2005/07/06/Export-and-Import-a-Volume-Group-When-Things-Goes-the-Wrong-Way

1. source_host# Umount filesystem(s)
2. source_host# varyoffvg
3. source_host# exportvg
4. source_host# rmdev -dl hdiskX
5. target_host# cfgmgr
6. target_host# importvg
7.
target_host# redefinevg -d hdiskX
8. target_host# varyonvg
9. target_host# synclvodm -v -P
10. bosboot -a & Mount filesystem(s)

Thursday, December 16, 2010

AIX: restarting SSH and other services

View information about service:
lssrc -s sshd or lssrc -a | grep ssh
Stopping them:
stopsrc -s sshd
Starting:
startsrc -s sshd

Friday, October 29, 2010

Geld verdienen um die Welt zu erleuchten!!!

Impuesto sobre la Renta de las Personas Físicas (IRPF):

"Hasta 9.000 euros al año, no se paga este impuesto.
Desde 9.000, hasta 17.360 euros al año se aplica una retención del 24%
Desde 17.360, hasta 32.360 euros al año se aplica una retención del 28%
Desde 32.360, hasta 52.360 euros al año se aplica una retención del 37%
Si los ingresos superan los 52.360 euros al año se aplica una retención del 43%"
http://cuantosimpuestospago.com
It seems that almost all russian people dont need to pay taxes (9 000 Euro ~= 31 500 RUR < 30 000 RUR / month = average monthly salary)! :)

Wednesday, August 25, 2010

How to quit Caché DB terminal session?

The keyword is "halt"! :)
[root@vbox ~]# csession CACHE

Node: vbox, Instance: CACHE

USER>halt
[root@vbox ~]#

Friday, August 13, 2010

Wednesday, August 4, 2010

AMM SOL console

IBM's AMM provide excellent feature for blade servers remote control via SSH.
You may login using SSH to AMM, then choose target blade, power it on if it is switched off and issue commands to AIX/Linux/whatever:

[root@server ~]# ssh -l USERID 10.10.10.11
password:

Hostname: blade
Static IP address: 10.10.10.11
Burned-in MAC address: 00:16:5F:3F:10:A0
DHCP: Disabled - Use static IP configuration.
Last login: Wednesday August 4 2010 15:53 from 10.10.10.12 (SSH)

system>
system> list -l 2
system
mm[1] primary
power[1]
power[2]
blower[1]
blower[2]
switch[1]
switch[3]
blade[1] LS21
blade[2] JS21
blade[3] HS21linux
blade[4] HS21windows
mt[1]
system>
system> env -T blade[2]
OK
system:blade[2]>
system:blade[2]> console

login: root
root's Password:
*******************************************************************************
* *
* *
* Welcome to AIX Version 6.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Last unsuccessful login: Wed Aug 4 17:29:22 GMT+04:00 2010 on /dev/vty0
Last login: Wed Aug 4 17:29:28 GMT+04:00 2010 on /dev/vty0

#

Now, to disconnect from console you need press Esc-( or - Ctrl+[ and then Shift+(

Tuesday, July 27, 2010

msmtp - simple smtp client

If you need to send mails from some UNIX box where mail transport don't work (MTA not configured properly), you may use this nice tool:
http://msmtp.sourceforge.net
I've compiled it for Linux and AIX 6.1 (with gcc compiler) without any issue.
Some samples of usage:
# echo "Test" | msmtp --host=smtp.server.org -f root@oracle.com user@some.domain.net
will send mail with no subject and "Test" in mail body.
Otherwise you may construct text file like this and then redirect it to msmtp
# cat mail.txt
From: root@oracle.com
To: user@some.domain.net
Subject: Very important message!!!

Hi! How are you?
#
# msmtp --host=smtp.server.org -f root@oracle.com user@some.domain.net <>> mail.txt
it will be mail with attachment:
# msmtp --host=smtp.server.org -f root@oracle.com user@some.domain.net < style="font-weight: bold;">
UPDATE:
There is some strange behavior on AIX: attachments shown as is (BASE64 code) in mail body not as attachments!
This fix works for me:
# msmtp --host=smtp.server.org -f root@oracle.com user@some.domain.net <<> From: root@oracle.com
> To: user@some.domain.net
> Subject: Very important message!!!
>
> See this attachment:
> $(uuencode install.log.gz install.log.gz)
>
> EOF
#

Monday, July 26, 2010

Oracle Data Guard platform compatibility

There is two interesting MOS notes about Oracle's DR solution (DG).
- Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration [ID 413484.1]
and
- Data Guard Support for Heterogeneous Primary and Logical Standbys in Same Data Guard Configuration [ID 1085687.1]
It seems that we have not so much opportunities to implement heterogeneous DR configurations.