Quantcast
Channel: UNIX and Linux Forums - AIX
Viewing all 373 articles
Browse latest View live

AIX Fonts and Display issue

$
0
0
Hello Everyone,

have a question regarding fonts:

Code:

#env
root@oraapp:/>env
_=/usr/bin/env
LANG=ar_AA
LOGIN=root
SSH_TTY=/dev/pts/1
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java131/jre/bin:/u                                                    sr/java131/bin:/usr/vacpp/bin:/usr/vac/bin:.
LC__FASTMSG=true
CGI_DIRECTORY=/var/docsearch/cgi-bin
EDITOR=vi
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
PS1=root@oraapp:$PWD>
DOCUMENT_SERVER_MACHINE_NAME=localhost
USER=root
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
DOCUMENT_SERVER_PORT=49213
HOME=/
SSH_CONNECTION=10.1.1.71 64207 10.1.1.15 22
SSH_CLIENT=10.1.1.71 64207 22
TERM=xterm
MAILMSG=[YOU HAVE NEW MAIL]
ITECONFIGSRV=/etc/IMNSearch
PWD=/
DOCUMENT_DIRECTORY=/usr/docsearch/html
TZ=SAUST-3
ENV=//.kshrc
ITECONFIGCL=/etc/IMNSearch/clients
ITE_DOC_SEARCH_INSTANCE=search
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/%L/%N.                                                    cat:/usr/lib/nls/msg/en_US/%N.cat
root@oraapp:/>

Now from Console, when I list the directory, I can see the arabic text / font properly however, when I telnet or use xwindows session it doesn't show up.

it looks garbled up

Code:

rw-------  1 root    system          923 17 ▒▒▒ 13:00 .TTauthority
drwxr-xr-x  38 root    system        2048 17 ▒▒▒ 13:00 ..
drwxr-xr-x  38 root    system        2048 17 ▒▒▒ 13:00 .
drwxr-xr-x  10 root    system          512 17 ▒▒▒ 13:01 .dt
drwxr-xr-x  30 root    system        3584 17 ▒▒▒ 13:01 etc
drwxrwxr-x  5 root    system        3584 27 ▒▒▒ 23:05 dev
drwxrwxrwx  49 bin      bin          50176 27 ▒▒▒ 23:09 tmp
-rw-------  1 root    system        6024 27 ▒▒▒ 23:09 .sh_history
dr-xr-xr-x  1 root    system            0 27 ▒▒▒ 23:09 proc

AIX Version 5
(C) Copyrights by IBM and by others 1982, 2004.
login: root
root's Password:
*******************************************************************************
*                                                                            *
*                                                                            *
*  Welcome to AIX Version 5.2!                                                *
*                                                                            *
*                                                                            *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                            *
*                                                                            *
*******************************************************************************
Last unsuccessful login:  ▒▒▒▒▒▒▒ 25 ▒▒▒▒▒ 21:48:04 2018 on ftp from ::ffff:10.1.1.141
Last login:  ▒▒▒▒▒▒▒ 27 ▒▒▒▒▒ 23:06:24 2018 on /dev/pts/1 from 10.1.1.71

What could be the issue ?

NAGIOS Service not able to open port on AIX 7.1

$
0
0
I have an AIX 7.1 LPAR where Nagios agent was installed for monitoring. The issue is that when I start the nagios service (ncpa_listener), it starts but does not open the 5693 port it requires for communication. On all other LPARs the service opens the port and is listening. I tried reinstalling the agent. Sometimes, when I try to stop the service it goes into a stopping state and has to be killed forcefully. The oslevel is 7100-05-01-1731. The LPAR has about 120GB of memory and 6 CPUs as entitled capacity. This is an Oracle DB DR server. Please let me know if more details are required.

I tried to see if there is anything using the port using netstat -an | grep 5693. I also checked the services file to see if any service is already using this port, but there was nothing in both cases.

------ Post updated at 12:22 PM ------

I just wanted to add one more thing. If I do a "telnet localhost 5693", I don't get a telnet prompt. But on all other LPARs, the telnet connects and gives a prompt. I can't seem to think of a reason why the service should not be able to open an unused port.

IBM P730 running AIX 7.1 (8231-E2B) - Fans spinning loud/max rpm?

$
0
0
We have a IBM P730 machine running AIX 7.1 in a properly air cooled server room. Just recently the fans on the unit kicked into overdrive, they are very loud and spinning at max.

Typically this happens when the server first boots then they normalize.

However for some odd reason, they sound like they are spinning at max RPM.

There is no LED amber light on the control panel or anything in the errpt (though I think it was cleared very recently so if there was something in there - it is now gone).

Is there a way from the OS to control the fan speed? There is no LPARs on AIX, we run the OS on bare metal - no virtualization of any kind.

Since this is a D/R site - I have tried to shutdown and startup the machine (I know seems excessive for a UNIX machine); but it did not resolve the issue.

I also tried the "diag" command in AIX and didn't find any issues.

AIX dump device not showing accurate size

$
0
0
I am trying to configure dump devices on my AIX server. Running 7100-03-04-1441. My dump device needs to be about 2GB in size. My PP Size is 1024MB, so I create the device with 2 PPs. When I run lslv on the dump device, it shows the 2 PPs, and a PP Size of 1024 megabytes. However, a dumpcheck -p shows that my dump device is only 256MB in size. dumpcheck seems to think my PP Size is only 128MB. Here you can see the output of lslv dump2lv showing the PP Size and PPs:

Code:

LOGICAL VOLUME:    dump2lv                VOLUME GROUP:  rootvg
LV IDENTIFIER:      00c1077000004b0000000166fa6a2f10.11 PERMISSION:    read/write
VG STATE:          active/complete        LV STATE:      opened/syncd
TYPE:              sysdump                WRITE VERIFY:  off
MAX LPs:            512                  PP SIZE:        1024 megabyte(s)
COPIES:            1                      SCHED POLICY:  parallel
LPs:                2                      PPs:            2
STALE PPs:          0                      BB POLICY:      non-relocatable
INTER-POLICY:      minimum                RELOCATABLE:    yes
INTRA-POLICY:      middle                UPPER BOUND:    8
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:    NO
INFINITE RETRY:    no                    PREFERRED READ: 0


And here you can see dumpcheck showing the size being only 262144 kb:

Code:

# /usr/lib/ras/dumpcheck -p
The largest dump device is too small.

Largest dump device
        dump2lv
Largest dump device size in kb
        262144
Current estimated dump size in kb
        1955880

My rootvg does show that the size used is indeed 2GB. So where is this extra space going, and why is dumpcheck not reporting all the size for my dump device?

Thanks in advance!

Moderator's Comments:
edit by bakunin: please use CODE-tags for data and terminal output too, thank you.

Need command to find missing operating system security patches

$
0
0
Hi,




Need a command to find out Missing operating system patches for AIX 7.1 or a command to list down all installed patches.

Trouble removing Physical Disk from Volume Group

$
0
0
I want to remove hdisk1 from volume group diskpool_4 and migrate PV from hdisk1 to hdisk2 , but facing problems, so what is the quickest way to migratepv and remove hdisk1 --

Code:

# lspv | grep diskpool_4
hdisk1          00c7780e2e21ec86                    diskpool_4      active
hdisk2          00c7780ea5bd16bb                    diskpool_4      active

# lsvg -l diskpool_4
diskpool_4:
LV NAME            TYPE      LPs    PPs    PVs  LV STATE      MOUNT POINT
clodba              jfs        720    1440    2    open/stale    N/A


# lsvg diskpool_4
VOLUME GROUP:      diskpool_4              VG IDENTIFIER:  00c7780e00004c000000013c210bf284
VG STATE:          active                  PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write              TOTAL PPs:      2234 (571904 megabytes)
MAX LVs:            1024                    FREE PPs:      794 (203264 megabytes)
LVs:                1                        USED PPs:      1440 (368640 megabytes)
OPEN LVs:          1                        QUORUM:        2 (Enabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          1                        STALE PPs:      1
ACTIVE PVs:        2                        AUTO ON:        yes
MAX PPs per VG:    1048576                  MAX PVs:        1024
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                      BB POLICY:      relocatable
MIRROR POOL STRICT: off
PV RESTRICTION:    none                    INFINITE RETRY: no
DISK BLOCK SIZE:    512                      CRITICAL VG:    no
#

# lsvg -p diskpool_4
diskpool_4:
PV_NAME          PV STATE          TOTAL PPs  FREE PPs    FREE DISTRIBUTION
hdisk2            active            1117        396        224..79..00..00..93
hdisk1            active            1117        398        184..00..01..00..213

#  lspv -l hdisk1
hdisk1:
LV NAME              LPs    PPs    DISTRIBUTION          MOUNT POINT
clodba                719    719    40..223..222..223..11 N/A
# lspv -l hdisk2
hdisk2:
LV NAME              LPs    PPs    DISTRIBUTION          MOUNT POINT
clodba                720    721    00..144..223..223..131 N/A


# migratepv -l clodba hdisk1 hdisk2
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.

# syncvg -v diskpool_4
0516-1296 lresynclv: Unable to completely resynchronize volume.
        The logical volume has bad-block relocation policy turned off.
        This may have caused the command to fail.
0516-934 /etc/syncvg: Unable to synchronize logical volume clodba.
0516-932 /etc/syncvg: Unable to synchronize volume group diskpool_4.

Check the copies of LV
Code:

# lslv -m clodba
clodba:N/A
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0225 hdisk1            0305 hdisk2
0002  0226 hdisk1            0306 hdisk2
0003  0227 hdisk1            0307 hdisk2
0004  0228 hdisk1            0308 hdisk2
.......................................................
......................................................
.....................................................

REMOVE COPY from hdisk2

# rmlvcopy clodba 1 hdisk2


# lslv -m clodba
clodba:N/A
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0225 hdisk1
0002  0226 hdisk1
.....................................
...............................
..................................

MigratePV from hdisk1 to hdisk2

Code:

migratepv -l clodba hdisk1 hdisk2

Dependencies errors

$
0
0
Hi guys
when I'm trying to install some RPMs file I got this errors
Code:

# rpm -ivh DSM-IBMAIXServer-7.2-796075.noarch.rpm
error: failed dependencies:
        perl(Digest::MD5)  is needed by DSM-IBMAIXServer-7.2-796075
        perl(Exporter)  is needed by DSM-IBMAIXServer-7.2-796075
        perl(File::Copy)  is needed by DSM-IBMAIXServer-7.2-796075
        perl(strict)  is needed by DSM-IBMAIXServer-7.2-796075
        qbase is needed by DSM-IBMAIXServer-7.2-796075
        qconsole is needed by DSM-IBMAIXServer-7.2-796075
        qjars is needed by DSM-IBMAIXServer-7.2-796075

Code:

rpm -ivh perl-Digest-MD5-2.550.0-7.mga7.armv7hl.rpm
error: failed dependencies:
        ld-linux-armhf.so.3  is needed by perl-Digest-MD5-2.550.0-7.mga7
        ld-linux-armhf.so.3(GLIBC_2.4)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        libc.so.6  is needed by perl-Digest-MD5-2.550.0-7.mga7
        libc.so.6(GLIBC_2.4)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        libperl.so.5.28  is needed by perl-Digest-MD5-2.550.0-7.mga7
        libpthread.so.0  is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl(Digest::base) >= 1.0.0 is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl(Exporter)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl(XSLoader)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl(strict)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl(vars)  is needed by perl-Digest-MD5-2.550.0-7.mga7
        perl-base >= 2:5.28.0 is needed by perl-Digest-MD5-2.550.0-7.mga7
        rpmlib(FileDigests) <= 4.6.0-1 is needed by perl-Digest-MD5-2.550.0-7.mga7
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by perl-Digest-MD5-2.550.0-7.mga7

where I can find those dependencies in one package

thanks

Start script or service with boot on AIX 7.2

$
0
0
I have installed apache2, but not run with boot in AIX 7.2, how to make it run ?



in AIX 7.1 i used : mkitab "apache:2:once:/usr/IBMAHS/bin/apachectl start > /dev/null 2>&1" ### ---> not work in AIX 7.2 (i use 0 in once, because appear emoticon when use :once)

Moderator's Comments:
Mod Comment Did you know that you can use ICODE-tags (like the ones i entered for you) for short commands to let them stand out? That also takes care of the emoticons.

How to manually -re-attach AIX lv's to a mirror?

$
0
0
in trying to rectify a stale lv problem I ran rmlvcopy <lv> 1 <primary disk> leaving the original os disk without lv copies other than the stale lv.
Both disks seem operational, but, lsvg rootg shows 1 stale pv.

The end goal is to re-attach the lv's back to hdisk1, and then attempt a reboot off of hdisk1 to sync things up again.


Code:

#lsvg -l rootvg
rootvg:
LV NAME            TYPE      LPs    PPs    PVs  LV STATE      MOUNT POINT
hd5                boot      1      1      1    closed/syncd  N/A
hd6                paging    4      4      1    open/syncd    N/A
hd8                jfs2log    1      1      1    open/syncd    N/A
hd4                jfs2      60      60      1    open/syncd    /
hd2                jfs2      40      80      2    open/stale    /usr  <== not sure why the lv is in stale mode!
hd9var              jfs2      16      16      1    open/syncd    /var
hd3                jfs2      20      20      1    open/syncd    /tmp
hd1                jfs2      40      40      1    open/syncd    /home
hd10opt            jfs2      40      40      1    open/syncd    /opt
hd11admin          jfs2      1      1      1    open/syncd    /admin
livedump            jfs2      1      1      1    open/syncd    /var/adm/ras/livedump
lvol1              jfs2      60      60      1    open/syncd    /usr/sys/inst.images

Code:

# ls -m hd2          <== StaLE LV
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0222 hdisk1            0509 hdisk0           
0002  0229 hdisk1            0510 hdisk0           
0003  0230 hdisk1            0511 hdisk0           
0004  0231 hdisk1            0512 hdisk0           
0005  0232 hdisk1            0513 hdisk0           

# lslv -m hd1
hd1:/home
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0585 hdisk0           
0002  0586 hdisk0           
0003  0587 hdisk0           
0004  0588 hdisk0           
0005  0589 hdisk0

AIX networking performance, during copying files

$
0
0
Hello, AIX-gurus! We have some AIX networking (?) issue, for test I created 2 LPARs (AIX 6.1) on 2 different blade IBM power servers (p702 with POWER7 on board), located in same BladeCenter H.


Networking bandwith between them is 1Gbit/s


Code:

# iperf -c 172.16.17.170
------------------------------------------------------------
Client connecting to 172.16.17.170, TCP port 5001
TCP window size: 63.6 KByte (default)
------------------------------------------------------------
[  3] local 172.16.17.53 port 37113 connected with 172.16.17.170 port 5001
[ ID] Interval      Transfer    Bandwidth
[  3]  0.0-10.0 sec  1.09 GBytes  935 Mbits/sec


But when I copy files with scp, even with fastest available cipher arcfour, it shows about 30 Mb/s (about 240 MBit/s bandwidth),


Code:

scp -o Cipher=arcfour root@172.16.17.170:/u01/exp/bigfile.dmp /u01/backup/2.dmp
The authenticity of host '172.16.17.170 (172.16.17.170)' can't be established.
RSA key fingerprint is SHA256:EuxnUV1Ru1nzf9RI0j6ui+tcC1vFGXrU0fLnVzJw0Ds.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.16.17.170' (RSA) to the list of known hosts.
root@172.16.17.170's password:
bigfile.dmp                                                                3% 2009MB  28.8MB/s  28:44 ETAK




I even tried rsync-daemon, which is not using encryption, unlike regular rsync, it gives about 36 Mb/s (same bandwidth as scp)


Code:

rsync -aHAxv --numeric-ids --progress rsync://172.16.17.170:/big-archive/bigfile.dmp /u01/backup/1.dmp
receiving incremental file list
bigfile.dmp
  2,212,724,736  4%  36.28MB/s    0:23:19

I think it's AIX issue, because we have some x86_64 machines in this network, and when I use scp on them, with same cipher I recieve about 80 Mb/s-100Mb/s download speed.

Older versions of the XL C/C++ Evaluation for AIX 5.3

$
0
0
Hello,


IBM offers a evaluation version of their XL C/C++ compiler. Unfortunatly v16.1 (from Developerworks) can not be installed on AIX 5.3 (I can not upgrade my old 32 Bit RS/6000 to a later version) and I have not found any older versions on the IBM and Developerworks pages.


Is there a ftp server or mirror where I can find older versions of the evaluation version? The last version that worked on AIX 5.3 was v12.1 but a older version would also be ok.


Ralf

Unable to establish connection over TLS 1.2 on AIX 7.1/7.2

$
0
0
Hello Team,

I would need your help to enable communication over TLS1.2 on AIX 7.1 or 7.2 with IBM JDK 1.8 latest update.

By default, the request is trying to establish a connection over TLSv1 even though TLS 1.2 is explicitly enabled on server as well as on Java 8. The openssl command throws SSL handshake error. We tried with 2 versions of OpenSSL, 1.0.1e and 1.0.2k, but same behavior. Please find the logs below:
Code:

[06:24 AM root@s822-aix01p1 /opt]: openssl s_client -tls1_2 -connect 10.225.120.125:8443
CONNECTED(00000003)
804401144:error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error:s3_pkt.c:1259:SSL alert number 80
804401144:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:599:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 0 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg  : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1550489753
    Timeout  : 7200 (sec)
    Verify return code: 0 (ok)
---

It seems there is no cipher suites on common which can work for TLS 1.2. Kindly let me know if you need more information to root cause this issue.

Also, is there any way to enable TLS 1.1 & 1.2 in AIX as I have read few articles and got to know that these are not enabled by default on AIX.

Thanks,
Naina

AIX LPAR FC connection to SAN

$
0
0
Hi all,

In my system, I have HMC 7 with Power Machine 6 & 7. On the managed system, we have many lpars.
In some lpars, I can see they are using virtual fiber channel to connect to DS8K storage. In search with google, I understand that it is configured with VIOS server to share the physical FC channel with NPIV method.

But the situation is, in the same managed system, there are other lpars have physical FC, the WWpN not starting with C.
So my concern is, what method these lpars use to connect to SAN? How can they can "share/use" the physical FC without VIOS virtual FC?

lpar has virtual FC channel
Code:

[root@xxxxxx] / > lsdev -Cc adapter | grep fcs
fcs0    Available 02-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1    Available 02-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2    Available 04-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3    Available 04-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4    Available 06-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5    Available 06-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Lpar has "physical" FC channel
Code:

[root@xxxxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Both lpars below belongs to 1 power machine 6.

Please advise me on this situation.

Moderator's Comments:
Mod Comment edit by bakunin: Please use CODE-tags for data and terminal output as well as code. Thank you.

Furthermore i am transferring this thread to the AIX board.

PING to AIX works but TELNET FTP SSH doesn't work

$
0
0
Code:

root@PRD /> rsh DR
KFAFH_DR: protocol failure due to unexpected closure from server end

root@PRD /> telnet DR
Trying...
Connected to DR.
Escape character is '^]'.
Connection closed.

root@PRD /> ftp DR
Connected to KFAFH_DR.
421 Service not available, remote server has closed connection
ftp> bye

root@PRD /> ssh 10.10.10.42
ssh_exchange_identification: Connection closed by remote host

root@PRD /> telnet 10.10.10.42
Trying...
Connected to 10.10.10.42.
Escape character is '^]'.

#1 It was working: no services were taken down

#2 Suddenly couldn't connect

#3 After 1 hour, was able to telnet

How to identify the problem?

AIX hard disk failure

$
0
0
Hi all,

I have encountered the issue with the hard disk, the disk is failed and need to replace by the new one.

As my understanding, this is just to take out the failed disk and insert the new ones, and that's all.

But the third party hardware vendor said, there should be another procedure in AIX for this activity.
I have attached the screenshot for disk checking.

Please advise if I miss something.

Attached Thumbnails
Click image for larger version

Name:	aix-disk1.png
Views:	N/A
Size:	46.7 KB
ID:	7724
Click image for larger version

Name:	aix_disk2.png
Views:	N/A
Size:	18.3 KB
ID:	7725

[ASK] - AIX Fibre Channel behavior

$
0
0
Hello all,

Let me introduce about the context and my environment.
We have an AIX 6.1 system, it has 4 FC channels
Code:

[root@xxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 23-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 23-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 23-T1 Virtual Fibre Channel Client Adapter
fcs3 Available 23-T1 Virtual Fibre Channel Client Adapter

- 2 virtual FC fcs0, fcs2 comes from VIOS_A --> mapped to the only 1 physical FC
- 2 virtual FC fcs1, fcs3 comes from VIOS_B --> mapped to the only 1 physical FC

--> We can say we have 2 physical FC path.


There is a chance that I reboot the machine, and it cannot boot up. It said that the boot partition is not found. In the SMS mode, I have checked and found that the fcs2 is failed, and fcs3 is partially worked

Code:

WorldWidePortName: c050760941350104
 1.  202700a0b86e87a4,0                0 MB Disk drive - reserved
 2.  202700a0b86e87a4,1000000000000    107 GB Disk drive
 3.  202700a0b86e87a4,2000000000000    0 MB Disk drive - reserved
 4.  202700a0b86e87a4,3000000000000    0 MB Disk drive - reserved
 5.  202700a0b86e87a4,4000000000000    0 MB Disk drive - reserved
 6.  202700a0b86e87a4,5000000000000    0 MB Disk drive - reserved
 7.  202700a0b86e87a4,6000000000000    0 MB Disk drive - reserved
 8.  202700a0b86e87a4,7000000000000    0 MB Disk drive - reserved
 9.  202700a0b86e87a4,8000000000000    107 GB Disk drive
10.  202700a0b86e87a4,9000000000000    107 GB Disk drive
11.  202700a0b86e87a4,a000000000000    107 GB Disk drive
12.  202700a0b86e87a4,b000000000000    0 MB Disk drive - reserved

First action, I have asked the storage guy to remove the fcs3 WWPN from the mapping, try to detect the boot device, then asked again to remove fcs2 WWPN, the both case didn't help.

Second action, I asked the storage guy to map back the fcs2 & fcs3 WWPN back to the machine. Try to detect and get the positive results. Now fcs3 can see all the LUN and detect the boot device.
Code:

Select Attached Device
  Pathname: /vdevice/vfc-client@300001a7
  WorldWidePortName: c050760941350104
 1.  202700a0b86e87a4,0                107 GB Disk drive - bootable
 2.  202700a0b86e87a4,1000000000000    107 GB Disk drive
 3.  202700a0b86e87a4,2000000000000    107 GB Disk drive
 4.  202700a0b86e87a4,3000000000000    107 GB Disk drive
 5.  202700a0b86e87a4,4000000000000    107 GB Disk drive
 6.  202700a0b86e87a4,5000000000000    107 GB Disk drive
 7.  202700a0b86e87a4,6000000000000    107 GB Disk drive
 8.  202700a0b86e87a4,7000000000000    107 GB Disk drive
 9.  202700a0b86e87a4,8000000000000    107 GB Disk drive
10.  202700a0b86e87a4,9000000000000    107 GB Disk drive
11.  202700a0b86e87a4,a000000000000    107 GB Disk drive
12.  202700a0b86e87a4,b000000000000    107 GB Disk drive

At the end I can boot up the AIX machine back to normal.

Check further with multipath to verify fcs2, found that the LUN are missing on fcs2. This is matched with fcs2 is failed from the beginning.
Code:

Enabled hdisk7  fscsi1
Enabled hdisk8  fscsi1
Enabled hdisk9  fscsi1
Enabled hdisk10 fscsi1
Enabled hdisk11 fscsi1
Enabled hdisk12 fscsi1
Missing hdisk2  fscsi2
Missing hdisk3  fscsi2
Missing hdisk4  fscsi2
Missing hdisk5  fscsi2
Missing hdisk6  fscsi2
Missing hdisk7  fscsi2
Missing hdisk8  fscsi2

So my concern here is:
I repeat:
Code:

- 2 virtual FC fcs0, fcs2 comes from VIOS_A  --> mapped to the only 1 physical FC
- 2 virtual FC fcs1, fcs3  comes from VIOS_B  --> mapped to the only 1 physical FC

With the first action, the fcs2 & fcs3 were removed. We still have fcs0 & fcs1 (mapped to 2 different physical FCs) can see the LUN, but not see the bootable partition.

With the second action, fcs2 & fcs3 were re-added, this action makes fcs3 refreshed and see the LUN with bootable partition.

Why in the first action, the LUN & boot partition is not detected? we still have the full visibility to the LUN.
Why in the second action, we can see the LUN and boot partition?

As I know, FC card has 2 ports. if 1 port failed, the rest can continue to work. Please correct me if I'm wrong.

Here in reality, we have 2 physical FCs with 1 port failure per each, and still not boot the server until 1 port failure come up again.

Please advise.

IBM AIX console pseries

$
0
0
Hi,

when I boot I get an E1DC error code. I've looked it up and it says that this error occurs during the firmware check. But the error is called "Dynamic Console Selection" .

1- Machine stopped at LCD led display = E1DC = CA00E1DC
E1DC Dynamic console selection. (maybe cable or keyboard)

Corrected hang at Firmware Checkpoint E1DC when processors numbered 0, 1, 2, 3, 4 and 5 are all deconfigured at the same time.

Quote:


E1DC Description: Dynamic console selection.

Action/Possibly Failing FRU
1. If a console is attached, but nothing is displayed on it, go to All display problems in
the Entry MAP.
2. If selection screens can be seen on the terminals and the appropriate key on the
input device is pressed within 60 seconds but there is no response to the keystroke:
a. If selecting the console with a keyboard attached to the system, replace the
keyboard, then replace the CEC backplane, Location: U0.1-P1.
b. If selecting the console with an ASCII terminal, suspect the terminal. Use the
problem determination procedures for the terminal.
Note: Terminal setting should be:
v 9600 baud
v no parity
v 8 data bits
v 1 stop bit

IBM Knowledge Center Error

CA00E1DC
Explanation
On a Linux or AIX system or partition, the partition firmware (the System Management Services, or SMS) is waiting for a firmware console to be selected. If the system is managed by a management console, open a VTERM and select it as the console. If the system is not managed by a management console, insure that a console is attached, then select that console when prompted.
Response
No repair action steps prior to working the failing item list.
Problem determination
No additional problem determination.

Look here for information about FWCONS symbolic FRU.

Perform the following.

If your server has an attached console, but the console display is not working, go to one of the following:
All display problems in AIX® server or AIX partition symptoms
All display problems in Linux® server or Linux partition symptoms
If you can see selection screens on the terminals, press the appropriate key on the input device within 60 seconds. If the console does not respond to the keystroke:
If you are selecting the console with a keyboard attached to the system, replace the keyboard, then replace the service processor (see Finding part locations).
If you are selecting the console with an ASCII terminal, suspect the terminal. Use the problem determination procedures for the terminal.
Note
The ASCII terminal settings should be: (**NOTE THE BELOW DID NOT WORK**)
19,200 baud
No parity
8 data bits
1 stop bit

----
After a period of time, the older machines will either display a series of icons
depicting keyboard, memory, network, SCSI, and speaker on the graphical
screen. As the speaker icon appears, if the machine has a speaker, it will emit a
beep. If you are using an ASCI console or graphical screen on newer PCI
machines, from IBM ^ pSeries 620 (7025 F80), instead of seeing
graphical icons, you will see the words keyboard, memory, network, SCSI, and
speaker. Throughout the rest of this redbook, this startup screen will be referred
to as the PCI icons screen.
For example, the IBM ^ pSeries 620 (7025 F80) boot sequence starts
with OK shown in the screen. Pressing the power on button causes the power
LED to flash; 20 seconds later, the fans start and the power LED comes on solid.
9xxx codes appear in the screen, these change to Exxx with location codes
appearing on the second LED row. When E1DC appears, the LFT display is
turned on. Very soon afterwards, E1F1 appears, and the PCI icons screen
appears on the display and the speaker sounds.
Before the speaker icon or word appears, a keyboard response must be received
if you want to do anything other than boot the machine in Normal mode.
Note: If you are using an LFT graphics display, you may miss the icons
screen while the display is warming up. You must press the required key
before the speaker icon or word appears or the machine will start a normal
boot and you will have to shutdown and start again.

Doing a google search:
[quote]
The solution to that (and perhaps your problem) is to remove the battery
from the F50 for at least 20 minutes, put it back again, and reboot the
F50. The NVRAM will clear, and get rebuilt on reboot.
--------
Once this problem occurs, the only way to correct the condition is to power
the system off, unplug the battery for approximately 10 minutes, plug in the
battery and power the system back on.
--------------
the E1DC step is the point where the display console is
determined, and the E1F1 step is where the prompts appear on the
display console. Since you see nothing on your graphics display at
this point, it would appear that the first serial port is set as your
display console (system console). There are two simple approaches you
can follow at this point:
(1) Hook up a serial terminal (or a PC emulating a serial terminal) to
the first serial port. A "LapLink" or "Serial Data Transfer" cable is
a good choice to make the connection, since each end of the cable has
both 9-pin and 25-pin connectors, and the "null modem" wiring
configuration is correct for the RS/6000. IBM 3151 emulation would be
ideal, but the more common VT52/VT100 emulation will work almost as
well -- it's more than adequate for the task at hand. Boot up the 43P
and when E1DC appears, start tapping on the "1" key of your "serial
terminal". When you get the menu, pick Utilities (3), then pick Select
Console (7). A prompt should appear on both the "serial terminal" and
your graphics display, hit the key that appears on the graphics display
on your PS/2 keyboard, and the system will restart. When you reach the
E1DC/E1F1 step this time around, press F1 on your PS/2 keyboard and
you'll be able to set up to boot from CD.

(2) With the power cord unplugged, remove the backup battery from it's
holder, and leave it removed for 15-20 minutes. Put everything back
and boot the 43P, at the E1DC step you should get the display prompt on
your graphics display, and you would proceed as I described in the
previous paragraph. *HOWEVER*, there have been reports of 43Ps going a
bit "crazy" when the backup battery has been removed, and sometimes it
is difficult to get the system back into an operational state once this
has been done. If you are someone who always seems to have "bad luck",
I'd recommend using the serial terminal approach -- it takes longer to
set up, but it's "safer".

----


then: goes to : 40670ea0 = 4067 0EA0
Quote:

0EA0 MOPS service processor code error. 1. Check for system firmware updates.



Solution:
1- Did a battery reset
2- Powered on the system
3- connected via Serial Null Modem Cable at port T1
v 9600 baud
v no parity
v 8 data bits
v 1 stop bit
4- When the machine is booting, you should see some garbled up text on the Putty Terminal
5- admin / admin
6- Clear all logs
7- power down and power up
8- should be working

Attached Thumbnails
Click image for larger version

Name:	aix.png
Views:	N/A
Size:	703.6 KB
ID:	7736

issue AIX MPIO path closed

$
0
0
Hello,
I have encountered the issue on my AIX 6.1. As you can see below, the hdisk1 & hdisk8 are not recognized by the system

Code:

[root@xxx] / > lspv
hdisk0          00fa6d1288c820aa                    rootvg          active
hdisk1          00fa6d1288c8213c                    None
hdisk2          00c1cc14d6de272b                    vg_3            active
hdisk3          00c1cc14d6de27e5                    vg_3            active
hdisk4          00c1cc14d6de2898                    vg_3            active
hdisk5          00c1cc14d6de2958                    vg_3            active
hdisk6          00c1cc14d6de2a07                    vg_3            active
hdisk7          00c1cc14716beb5c                    vg_3            active
hdisk8          00c1cc14816d37d0                    None
hdisk9          00c1cc14816d38a0                    vg_3            active
hdisk10        00c1cc14816d396c                    vg_3            active
hdisk11        00c1cc14716beb98                    vg_3            active
hdisk12        00c1cc14716bebd9                    vg_3            active

Futher checking on MPIO, I can see that the path(fcs0, fcs1, fcs3) for hdisk1 & hdisk8 are closed while for another hdisks are still working.

Code:

[root@xxx] / > lsmpio
name    path_id  status  path_status  parent  connection

hdisk0  0        Enabled  Pas          fscsi0  201600a0b86e87a4,0
hdisk0  1        Enabled  Pas          fscsi1  202600a0b86e87a4,0
hdisk0  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,0
hdisk1  0        Enabled  Clo          fscsi0  201600a0b86e87a4,1000000000000
hdisk1  1        Enabled  Clo          fscsi1  202600a0b86e87a4,1000000000000
hdisk1  3        Enabled  Clo          fscsi3  202700a0b86e87a4,1000000000000

hdisk2  0        Enabled  Pas          fscsi0  201600a0b86e87a4,2000000000000
hdisk2  1        Enabled  Pas          fscsi1  202600a0b86e87a4,2000000000000
hdisk2  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,2000000000000
hdisk3  0        Enabled  Pas          fscsi0  201600a0b86e87a4,3000000000000
hdisk3  1        Enabled  Pas          fscsi1  202600a0b86e87a4,3000000000000
hdisk3  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,3000000000000
hdisk4  0        Enabled  Pas          fscsi0  201600a0b86e87a4,4000000000000
hdisk4  1        Enabled  Pas          fscsi1  202600a0b86e87a4,4000000000000
hdisk4  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,4000000000000
hdisk5  0        Enabled  Pas          fscsi0  201600a0b86e87a4,5000000000000
hdisk5  1        Enabled  Pas          fscsi1  202600a0b86e87a4,5000000000000
hdisk5  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,5000000000000
hdisk6  0        Enabled  Pas          fscsi0  201600a0b86e87a4,6000000000000
hdisk6  1        Enabled  Pas          fscsi1  202600a0b86e87a4,6000000000000
hdisk6  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,6000000000000
hdisk7  0        Enabled  Pas          fscsi0  201600a0b86e87a4,7000000000000
hdisk7  1        Enabled  Pas          fscsi1  202600a0b86e87a4,7000000000000
hdisk7  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,7000000000000
hdisk8  0        Enabled  Clo          fscsi0  201600a0b86e87a4,8000000000000
hdisk8  1        Enabled  Clo          fscsi1  202600a0b86e87a4,8000000000000
hdisk8  2        Enabled  Clo          fscsi3  202700a0b86e87a4,8000000000000

hdisk9  0        Enabled  Sel,Act      fscsi0  201600a0b86e87a4,9000000000000
hdisk9  1        Enabled  Act          fscsi1  202600a0b86e87a4,9000000000000
hdisk9  3        Enabled  Pas          fscsi3  202700a0b86e87a4,9000000000000
hdisk10  0        Enabled  Sel,Act      fscsi0  201600a0b86e87a4,a000000000000
hdisk10  1        Enabled  Act          fscsi1  202600a0b86e87a4,a000000000000
hdisk10  3        Enabled  Pas          fscsi3  202700a0b86e87a4,a000000000000
hdisk11  0        Enabled  Pas          fscsi0  201600a0b86e87a4,b000000000000
hdisk11  1        Enabled  Pas          fscsi1  202600a0b86e87a4,b000000000000
hdisk11  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,b000000000000
hdisk12  0        Enabled  Pas          fscsi0  201600a0b86e87a4,c000000000000
hdisk12  1        Enabled  Pas          fscsi1  202600a0b86e87a4,c000000000000
hdisk12  3        Enabled  Sel,Act      fscsi3  202700a0b86e87a4,c000000000000

Can someone advise how to do and is there a way to manually change the state of the paths?

IBM VIOS AIX HMC Error

Create shared libs on AIX (with certain libs which are statically linked)

$
0
0
I want to create a shared lib with certain libs statically linked to it. I can generate a fully shared lib as follows:

Code:

gcc -maix64 -DHAVE_CONFIG_H -I. -I./src -DHAVE_OPENSSL -I/usr/include/openssl -I/usr/include -I/usr/include/apr-1 -D_LARGEFILE64_SOURCE -I/usr/java8_64/include -shared -o libnetty_tcnative.so src/jnilib.c src/bb.c src/error.c src/native_constants.c src/ssl.c src/sslcontext.c src/sslutils.c  -lc -L/opt/freeware/lib64 -lapr-1 -lssl -lcrypto -lpthread -Wl,-bnoentry -maix64 -O3 -pthread -Wl,-bnoquiet
If I do ldd on this lib, I get:
Code:

libnetty_tcnative.so needs:
        /opt/freeware/lib64/libgcc_s.a(shr.o)
        /opt/freeware/lib64/libssl.a(libssl.so.1.1.0)
        /opt/freeware/lib64/libcrypto.a(libcrypto.so.1.1.0)
        /usr/lib/libpthread.a(shr_xpg5_64.o)
        /usr/lib/libc.a(shr_64.o)
        /unix
        /usr/lib/libcrypt.a(shr_64.o)

Now, let's say I want to remove the dependency from libs in the folder /opt/freeware. For this, I am thinking to statically link libgcc_s.a, libssl.a and libcrypto.a. What flags can I pass to gcc so that it links these libs statically? It might also be okay to link everything statically so there is no dependence on any external libs.
Viewing all 373 articles
Browse latest View live