Tag: AIX

Easy way to get Virtual SCSI mapping from VIO Client

Sometimes you need to get the VIO mapping from the client side.

the easiest way is to run the below command:

root@client_lpar: / # echo “cvai” | kdb | grep vscsi 

read vscsi_scsi_ptrs OK, ptr = 0xF1000000C01A83C0
vscsi0     0x000007 0x0000000000 0x0                VIO_SRV1->vhost0

Tivoli storage Manager 6.3.3 dsmadmc error

Tivoli storage manager uses two file for its configuration. dsm.opt and dsm.sys for system wide configuration.

when trying to run dsmadmc on the server, the following error is preventing the command line from starting: ANS0101E Unable to open English message repository ‘dsmclientV3.cat’.

The following steps are required to resolve the issue: set the env variable DSM_CONFIG to a custom path. by default it uses the client /ba/ folder.

and DSM_DIR.

fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# pwd
/opt/tivoli/tsm/server/bin/tsmdiag
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# ./dsmadmc
ANS0101E Unable to open English message repository ‘dsmclientV3.cat’.
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# export DSM_CONFIG=”$PWD/dsm.opt”
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# echo $DSM_CONFIG
/opt/tivoli/tsm/server/bin/tsmdiag/dsm.opt
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# export DSM_DIR=`pwd`
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# echo $DSM_DIR
/opt/tivoli/tsm/server/bin/tsmdiag
fastsmsrv01:/opt/tivoli/tsm/server/bin/tsmdiag# ./dsmadmc
IBM Tivoli Storage Manager
Command Line Administrative Interface – Version 5, Release 3, Level 0.0
(c) Copyright by IBM Corporation and other(s) 1990, 2004. All Rights Reserved.

Enter your user id:  admin

Enter your password:

Session established with server FASTSMSRV01: AIX
Server Version 6, Release 3, Level 3.0
Server date/time: 05/14/13   16:32:12  Last access: 05/14/13   16:28:00

Enable High Bandwith communication between LPARs on VIO

By default virtual adapters can go up to 1.3 Gbps. If you need to boost the network performance between LPARs we have 2 options:

1- MTU Size larger than 1500

2- AIX largesend option

If the LPAR is communicating with external Servers, Jumbo frames should be enabled end-to-end in order to have the full benefit. otherwise packets will be fragmented. Inside VIO we don’t have this issue since we are using the internal virtual switch. So we can even go up to higher MTU size, the maximum is 65280.

So here is a procedure to check the network performance before and after setting MTU size.

# lsattr -El en3 | grep “^mtu”

mtu           1500         Maximum IP Packet Size for This Device     True

#ftp> put “|dd if=/dev/zero bs=64k count=100000” /dev/null

write down the result we got : 1.258e+05 this means 1.2580×100000 Kbytes/s

Change the MTU Size:

#chdev -l en3 -a mtu=65280

Redo the ftp test

#ftp> put “|dd if=/dev/zero bs=64k count=100000” /dev/null

the result was 3.025e+05 which gave us an increase in performance by 60 %

 

No RMC Connection when trying to add a new virtual adapter to an LPAR using HMC

I had this issue today, when i try to add a virtual adapter to different logical partitions. “No RMC Connection”
rmc_connection

In our case the issue was caused due to the AIX image created using Original clone hosted on another HMC.

Here are the steps to recreate the configuration and reconnect the LPAR to the HMC.
1- check rmc connection status from the LPAR
hostname:/# cd /usr/sbin/rsct/bin
hostname:/usr/sbin/rsct/bin# ./rmcdomainstatus -s ctrmc

Management Domain Status: Management Control Points
O A 0xed5304fc5aaf4012 0001 10.99.27.101
O Indicates that the RMC connection is “Down”, as determined by the RMC heartbeat mechanism.

2- list rsct services status
hostname:/usr/sbin/rsct/bin# lssrc -a | grep rsct
ctrmc rsct 3211382 active
IBM.DRM rsct_rm 7077892 active
IBM.CSMAgentRM rsct_rm 7012524 active
IBM.ServiceRM rsct_rm 6422688 active
ctcas rsct inoperative
IBM.HostRM rsct_rm inoperative
IBM.ERRM rsct_rm inoperative
IBM.MgmtDomainRM rsct_rm inoperative
IBM.AuditRM rsct_rm inoperative
hostname:/usr/sbin/rsct/bin#

You will see some active and some missing (The key for DLPAR is the IBM.DRM)

3- recreate the configuration
hostname:/usr/sbin/rsct/install# cd bin
hostname:/usr/sbin/rsct/install/bin# ./recfgct
0513-071 The ctcas Subsystem has been added.
0513-071 The ctrmc Subsystem has been added.
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 3211402.
hostname:/usr/sbin/rsct/install/bin#

4 – restart services for rsct
hostname:/usr/sbin/rsct/install/bin# cd ../..
hostname:/usr/sbin/rsct# cd bin
hostname:/usr/sbin/rsct/bin# rmcctrl -z
hostname:/usr/sbin/rsct/bin# rmcctrl -A
0513-071 The ctrmc Subsystem has been added.
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 5832812.
hostname:/usr/sbin/rsct/bin# rmcctrl -p

5 – recheck rmc domain status
hostname:/usr/sbin/rsct/bin# ./rmcdomainstatus -s ctrmc
hostname:/usr/sbin/rsct/bin#

it’s normal if you don’t get any result.
wait some time and re-issue the command.

7- hostname:/usr/sbin/rsct/bin# r ./
./rmcdomainstatus -s ctrmc

Management Domain Status: Management Control Points
I A 0xed5304fc5aaf4012 0001 10.99.27.101

Now the status is I which indicates that we have an active connection with the HMC.