lunedì 13 marzo 2017

Configurazione LAN VIOS per Jumbo Frames



Configurazione LAN VIOS per Jumbo Frames

1) VERIFICA parametri schede fisiche 

Verificare che flow_ctrl, jumbo_frames, large_receive e large_send siano impostati a "yes" sulle schede fisiche che compongono l’etherchannel 

lsattr -El entX | egrep "flow_ctrl|jumbo|large" 


2) CONFIGURAZIONE JF su Etherchannel 

Impostare use_jumbo_frame=yes sul device EC , dopo averlo messo offline

rmdev -l entX   # where entX represents the EC device if one exists
chdev -l entX -a use_jumbo_frame=
mkdev -l entX   # where entX represents the EC device

Verifica: 

lsattr -El entX | egrep "mode|jumbo" 



3) IMPOSTAZIONE parametri virtual Ethernet 

Impostare i seguenti parametri sull’interfaccia con IP address: 

$ chdev -dev enX -attr mtu_bypass=on rfc1323=1 mtu=9000 

Impostare i seguenti parametri sulle virtual Ethernet (trunk) che compongono la SEA (non sono necessari sul control channel): 

max_buf_huge=128 
max_buf_large=256 
max_buf_medium=2048 
max_buf_small=4096 
max_buf_tiny=4096 
min_buf_huge=127 
min_buf_large=255 
min_buf_medium=2047 
min_buf_small=4095 
min_buf_tiny=4095 


chdev -dev entX -perm -attr max_buf_huge=128 max_buf_large=256 max_buf_medium=2048 max_buf_small=4096 max_buf_tiny=4096 min_buf_huge=127 min_buf_large=255 min_buf_medium=2047 min_buf_small=4095 min_buf_tiny=4095 



5) CONFIGURAZIONE SEA 

Configurare la SEA, abilitando largesend, large_receive e jumbo_frames. 

Nell’esempio, avendo un solo trunk, è stata impostata la modalità auto (ha_mode=auto), nel caso di SEA con più trunk impostare il load sharing (ha_mode=sharing): 

mkvdev -sea entXX -vadapter entYY -default entYY -defaultid 1 -attr ha_mode=auto ctl_chan=entZZ largesend=1 jumbo_frames=yes large_receive=yes adapter_reset=no thread=0 

chdev -l entX -a ha_mode=standby
rmdev -l entX
chdev -l entX -a jumbo_frames=yes largesend=1 jumbo_frames=yes large_receive=yes
mkdev -l entX
chdev -l entX -a ha_mode=auto


6) IMPOSTAZIONE parametri di rete sulle virtual Ethernet delle LPAR client 

Impostare i seguenti parametri sulla scheda di rete: 

max_buf_huge=128 
max_buf_large=256 
max_buf_medium=2048 
max_buf_small=4096 
max_buf_tiny=4096 
min_buf_huge=127 
min_buf_large=255 
min_buf_medium=2047 
min_buf_small=4095 
min_buf_tiny=4095 

chdev -l entX -a max_buf_huge=128 -a max_buf_large=256 -a max_buf_medium=2048 -a max_buf_small=4096 -a max_buf_tiny=4096 -a min_buf_huge=127 -a min_buf_large=255 -a min_buf_medium=2047 -a min_buf_small=4095 -a min_buf_tiny=4095 -P 
chdev -l enX  -a mtu_bypass=on -a tcp_nodelay=1 -a rfc1323=1 -a mtu=9000


Reboot 

lunedì 29 febbraio 2016

PINE A64, First $15 64-Bit Single Board Super Computer

Do you know PINE A64 microcomputer ?
Here is a link to help the campaign to reach its goals:

http://gZKeEZ34.kckb.st

Thanks

martedì 17 novembre 2015

VIOS - Solve incomplete installations that prevent updates to be applied

Due to previous broken commit operations , it is not possible to commit the updates .
We aren't able to update our vio servers , but maybe there is a workaround...



viosdr21-int:padmin # updateios -commit
Command did not complete.

Commit did not complete successfully, see install.log for details.

viosdr21-int:padmin # tail -50f install.log    
devices.pciex.e4145616e4140528.rte  USR     6.1.9.30                APPLIED
devices.pciex.e414571614102004.rte  USR     6.1.9.30                APPLIED
devices.sas.rte                     USR     6.1.9.45                APPLIED
devices.scsi.disk.diag.com          USR     6.1.9.30                APPLIED
devices.scsi.disk.rte               USR     6.1.9.45                APPLIED
devices.scsi.disk.rte               ROOT    6.1.9.45                APPLIED
devices.tty.rte                     USR     6.1.9.45                APPLIED
devices.vdevice.IBM.l-lan.rte       USR     6.1.9.45                APPLIED
devices.vdevice.IBM.v-scsi.rte      ROOT    6.1.9.45                APPLIED
devices.vdevice.IBM.v-scsi.rte      USR     6.1.9.45                APPLIED
devices.vdevice.IBM.v-scsi-host.rte USR     6.1.9.45                APPLIED
devices.vdevice.IBM.v-scsi-host.rte ROOT    6.1.9.45                APPLIED
devices.vdevice.IBM.vfc-client.rte  USR     6.1.9.45                APPLIED
devices.vdevice.vbsd.rte            ROOT    6.1.9.45                APPLIED
devices.vdevice.vbsd.rte            USR     6.1.9.45                APPLIED
dsm.core                            USR     6.1.9.45                APPLIED
dsm.core                            ROOT    6.1.9.45                APPLIED
dsm.dsh                             USR     6.1.9.45                APPLIED
ios.artex_profile.rte               USR     6.1.9.45                APPLIED
ios.cli.man.es_ES                   USR     6.1.9.30                APPLIED
ios.cli.man.fr_FR                   USR     6.1.9.30                APPLIED
ios.database.solid                  USR     6.1.9.30                APPLIED
ios.lparmgr.cim.rte                 USR     6.1.9.30                APPLIED
ios.migration.rte                   USR     6.1.9.45                APPLIED
ios.migration.rte                   ROOT    6.1.9.45                APPLIED
ios.paging.rte                      ROOT    6.1.9.45                APPLIED
ios.paging.rte                      USR     6.1.9.45                APPLIED
ios.sea                             USR     6.1.9.45                APPLIED
ios.sea                             ROOT    6.1.9.45                APPLIED
perfagent.tools                     ROOT    6.1.9.45                APPLIED
perfagent.tools                     USR     6.1.9.45                APPLIED
pool.basic.rte                      USR     6.1.9.45                APPLIED
pool.basic.rte                      ROOT    6.1.9.45                APPLIED
printers.rte                        USR     6.1.9.45                APPLIED
printers.rte                        ROOT    6.1.9.45                APPLIED
sysmgt.websm.rte                    USR     6.1.9.15                APPLIED
wio.fcp                             USR     6.1.9.45                APPLIED

END:Tue Nov 17 15:16:01 2015:111714160115

BEGIN:Tue Nov 17 15:16:01 2015:111714160115
Command line is:
installp -e install.log -c all  
0503-434 installp:  There are incomplete installation operations
       on the following filesets.  Run installp -C to clean up
       the previously failed installations before continuing.

       sysmgt.websm.rte

END:Tue Nov 17 15:16:01 2015:111714160115
q^Cviosdr21-int:padmin # oem_setup_env  
viosdr21-int:root # installp -C
0503-409 installp:  bosboot verification starting...
0503-497 installp:  An error occurred during bosboot verification processing.

As a workaround we can edit /usr/sbin/bosboot and place an exit 0 row just after the shebang, save the file and retry the cleanup operation.



viosdr21-int:root # vi /usr/sbin/bosboot  


viosdr21-int:root # installp -C
0503-409 installp:  bosboot verification starting...
installp:  bosboot verification completed.
0503-408 installp:  bosboot process starting...
0503-292 This update will not fully take effect until after a
       system reboot.

   * * *  A T T E N T I O N  * * *
   System boot image has been updated. You should reboot the
   system as soon as possible to properly integrate the changes
   and to avoid disruption of current functionality.

installp:  bosboot process completed.

installp:  Cleaning up software for:
       sysmgt.websm.rte 6.1.9.15


Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
sysmgt.websm.rte            6.1.9.15        ROOT        CLEANUP     SUCCESS   
viosdr21-int:root #



So let's go trying after bring the bosboot file to the original situation removing the added row.

Let's become padmin again and issue :

viosdr21-int:padmin # updateios -commit            
All updates have been committed.

viosdr21-int:padmin #


viosdr21-int:padmin #

mercoledì 8 aprile 2015

Defining an mksysb resource for vios setup


Prerequisites:
VIOS Install media (dvd or iso files).

Copy in a local path the 3 fractions of original mksysb file.
For example i copied in temp dir just under my home ; just a note , you have to rename the first file
because its name is identical to the third file, so i renamed it in mksysb_image1 to avoid any issue so
now i have these files in my temp dir :

 
-rw-rw-r--. 1 src582 src582 2146959360 Oct 16 03:25 mksysb_image1                                                 -rw-rw-r--. 1 src582 src582 1073479680 Oct 16 03:25 mksysb_image2
-rw-rw-r--. 1 src582 src582  309800960 Oct 16 03:30 mksysb_image3

To join these pieces in a unique file i have to simply concatenate them with cat :

cat mksysb_image1 mksysb_image2 mksysb_image3 > vios_2234_mksysb_image

so now :

-rw-rw-r--. 1 src582 src582 2146959360 Oct 16 03:25 mksysb_image1                                                 -rw-rw-r--. 1 src582 src582 1073479680 Oct 16 03:25 mksysb_image2                                               --rw-rw-r--. 1 src582 src582  309800960 Oct 16 03:30 mksysb_image3                                                 
-rw-rw-r--. 1 src582 src582 3530240000 Apr  8 15:15 vios_2234_mksysb_image


Now we can define the resources to perform vios installations :

IOS_MKSYSB:
nim -o define -t ios_mksysb -a server=master -a location=/export/mksysb/vios_2234_mksysb_image  ios_mksysb-vios-2234


SPOT:
nim -o define -t spot -a server=master -a location=/export/spot -a source=ios_mksysb-vios-2234 spot-vios2234

 Creating SPOT in "/export/spot" on machine "master" from "ios_mksysb-vios-2234" ...

 Restoring files from BOS image.  This may take several minutes ...

...
...
Checking filesets and network boot images for SPOT "spot-vios2234".
 This may take several minutes ...




venerdì 21 novembre 2014

Remove disk with force !

After an alt_disk_copy operation , i want to remove the altinst_rootvg so I typed:


alt_rootvg_op -X

but:

root@lpar:/#rmdev -dl hdisk0
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.

I tried to remove it in any way , creating a new vg too ....

root@lpar:/#mkvg -y vg1 hdisk0
vg1

root@lpar:/#reducevg vg1 hdisk0
ldeletepv: Volume Group deleted since it contains no physical volumes.

root@lpar:/#bootinfo -s hdisk0
122892

root@lpar:/#rmdev -dl hdisk0
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.



but with no luck , so ....












 i decided to use The Force ..... 
cleaning odm from hdisk0















I did a backup of odm :

root@lpar:/#cd /etc/objrepos
root@lpar:/etc/objrepos#for i in CuAt CuDv CuDvDr CuDep
do                                                                                                                                                        
odmget $i  /tmp/$i.orig                                                                                                                              
done

and started cleaning ...                                                                                                                                                      
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuAt
0518-307 odmdelete: 2 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q value=hdisk0 -o CuAt
0518-307 odmdelete: 0 objects deleted.                                                                                                    
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuDv
0518-307 odmdelete: 1 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q value3=hdisk0 -o CuDvDr
0518-307 odmdelete: 1 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuDep
0518-307 odmdelete: 0 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuVPD
0518-307 odmdelete: 0 objects deleted.

Now let's check :

root@lpar:/etc/objrepos#lspv
hdisk1          00c8bd0467e1050a                    rootvg          active    
hdisk7          00c8bd049491a3db                    oravg           active    
hdisk5          00c8bd249bf7550f                    op11vg          concurrent
hdisk2          00c8bd0403279410                    swapvg          active    
hdisk3          00c8bd0401261e5f                    swapvg          active    
hdisk4          00c8bd0404f5b0e5                    op11vg          concurrent
hdisk6          00c8bd044596507d                    volgrp02        concurrent
hdisk18         00c8bd0421497aae                    op11vg          concurrent
hdisk19         00c8bd0421497caa                    volgrp02        concurrent
hdisk20         00c8bd0421497e41                    op11vg          concurrent
hdisk22         00c8bd04214981ea                    op11vg          concurrent
hdisk23         00c8bd0421498366                    op11vg          concurrent
hdisk24         00c8bd242149856a                    volgrp02        concurrent
hdisk25         00c8bd24214986c3                    volgrp02        concurrent
hdisk26         00c8bd2421498896                    volgrp02        concurrent
hdisk27         00c8bd0421498ac9                    volgrp02        concurrent
hdisk8          00c8bd241b8843cb                    op11vg          concurrent


WIN ! , No more hdisk0...




giovedì 20 novembre 2014

DLPAR operations not possible

There are different situations that could lead to the DLPAR operations unavailability due to RMC daemon issues.

In newer Aix versions (>6.1.9.x) and if rsct is > 3.1.5.0 it could be necessary to install the following fileset :

rsct.basic.rte

to solve the problem.

For more informations please refer to APAR at the following link:

http://www-01.ibm.com/support/docview.wss?uid=isg1IV53196
The correct procedure to reset the rsct subsystem is :

# /usr/sbin/rsct/bin/rmcctrl -z
# /usr/sbin/rsct/bin/rmcctrl -A
# /usr/sbin/rsct/bin/rmcctrl -p

And to verify the subsystem status:

# lssrc -a | grep rsct
 

mercoledì 8 ottobre 2014

Install Sametime-Connect 9 on Fedora 20 x64

I went into troubels trying to install Sametime connect 9 on fedora 20 x64.
I downloaded the rpm package but when i tried to install :

[r0bby@z50-linux st9]$ sudo yum localinstall ST9_Linux_Client.rpm
Loaded plugins: langpacks, refresh-packagekit
Examining ST9_Linux_Client.rpm: sametime-connect-9.0-20130911.1645.i586
Marking ST9_Linux_Client.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sametime-connect.i586 0:9.0-20130911.1645 will be installed
--> Processing Dependency: libXt.so.6 for package: sametime-connect-9.0-20130911.1645.i586
--> Processing Dependency: libXdmcp.so.6 for package: sametime-connect-9.0-20130911.1645.i586
--> Processing Dependency: libpng12.so.0 for package: sametime-connect-9.0-20130911.1645.i586
--> Processing Dependency: libxkbfile.so.1 for package: sametime-connect-9.0-20130911.1645.i586
--> Running transaction check
---> Package libXdmcp.i686 0:1.1.1-5.fc20 will be installed
---> Package libXt.i686 0:1.1.4-7.fc20 will be installed
---> Package libpng12.i686 0:1.2.50-6.fc20 will be installed
---> Package libxkbfile.i686 0:1.0.8-4.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                                     Arch                                            Version                                                       Repository                                                    Size
==============================================================================================================================================================================================================================================
Installing:
 sametime-connect                                            i586                                            9.0-20130911.1645                                             /ST9_Linux_Client                                            319 M
Installing for dependencies:
 libXdmcp                                                    i686                                            1.1.1-5.fc20                                                  fedora                                                        32 k
 libXt                                                       i686                                            1.1.4-7.fc20                                                  fedora                                                       164 k
 libpng12                                                    i686                                            1.2.50-6.fc20                                                 updates                                                      153 k
 libxkbfile                                                  i686                                            1.0.8-4.fc20                                                  fedora                                                        80 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total size: 319 M
Installed size: 320 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /usr/bin from install of sametime-connect-9.0-20130911.1645.i586 conflicts with file from package filesystem-3.2-19.fc20.x86_64

Error Summary
-------------


It terminates with the error in bold text.

So i tried to extract the directories from the rpm file in a temp directory , moved the contents in the right filesystems  /usr and /opt , but when i launch the executable :

[r0bby@z50-linux ST9_Linux_Client]$ sametime-connect
JVMJ9VM039I -Xscmx is ignored if -Xshareclasses is not specified
JVMJ9VM067W -Xshareclasses not enabled, -Xzero:sharezip option ignored

and stops.

It seems that the installer needs xterm , just to show the license and to give the user to accept it, and in my distribution also libgnomeprintui22.i686 libgnomeprint22.i686 (32 bit rpms).

So:

sudo yum install xterm
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package xterm.x86_64 0:297-1.fc20 will be installed
--> Processing Dependency: libXaw.so.7()(64bit) for package: xterm-297-1.fc20.x86_64
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.11-6.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                                 Arch                                                    Version                                                        Repository                                               Size
==============================================================================================================================================================================================================================================
Installing:
 xterm                                                   x86_64                                                  297-1.fc20                                                     fedora                                                  461 k
Installing for dependencies:
 libXaw                                                  x86_64                                                  1.0.11-6.fc20                                                  fedora                                                  188 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 649 k
Installed size: 1.7 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
  Installing : libXaw-1.0.11-6.fc20.x86_64                                                                                                                                                                                                1/2
  Installing : xterm-297-1.fc20.x86_64                                                                                                                                                                                                    2/2
  Verifying  : xterm-297-1.fc20.x86_64                                                                                                                                                                                                    1/2
  Verifying  : libXaw-1.0.11-6.fc20.x86_64                                                                                                                                                                                                2/2

Installed:
  xterm.x86_64 0:297-1.fc20                                                                                                                                                                                                                

Dependency Installed:
  libXaw.x86_64 0:1.0.11-6.fc20                                                                                                                                                                                                            

Complete!

r0bby@z50-linux ST9_Linux_Client]$ sametime-connect 
JVMJ9VM039I -Xscmx is ignored if -Xshareclasses is not specified
JVMJ9VM067W -Xshareclasses not enabled, -Xzero:sharezip option ignored

Still no luck , so the next step:


sudo yum install libgnomeprintui22.i686 libgnomeprint22.i686
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
...
...
 here there are many dependencies 

Installed:
  libgnomeprint22.i686 0:2.18.8-6.fc19                                                                                 libgnomeprintui22.i686 0:2.18.6-8.fc20                                                                                

Dependency Installed:
  atk.i686 0:2.10.0-1.fc20           avahi-libs.i686 0:0.6.31-21.fc20  cups-libs.i686 1:1.7.5-4.fc20   dbus-glib.i686 0:0.100.2-2.fc20      gdk-pixbuf2.i686 0:2.30.3-1.fc20   gtk2.i686 0:2.24.24-2.fc20  jasper-libs.i686 0:1.900.1-25.fc20 
  libXcomposite.i686 0:0.4.4-4.fc20  libart_lgpl.i686 0:2.3.21-8.fc20  libglade2.i686 0:2.6.4-10.fc20  libgnomecanvas.i686 0:2.30.3-7.fc20  libgnomecups.i686 0:0.2.3-12.fc18 

Complete!


Now it works !!