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

HMC Upgrade Question

$
0
0
I have an HMC that I'm looking to upgrade from V7.3.4.0 SP2 to the latest version V7.7.6.0. I'm looking at the firmware levels of the systems attached to this HMC, and all of the systems have compatible firmware revisions but there are two that have been update recently and the platform IPL level is still showing the older/incompatible revision. However the Activated level is showing a compatible revision.

My question is, can I still upgrade the HMC software to the newest version? Or do I have to re-IPL the 2 systems in question?

GPFS initial setup, but perhaps this is a SAN/VIO question

$
0
0
I'm having some trouble getting a POC of GPFS up and running. I've read a couple install guides including a couple IBM pdfs but I'm getting stumped on something I think is fairly fundamental.... I'm trying to do this all on a single 795, right now only the VIOs have HBAs so all LUNs are pointed to those HBAs. Can I simply go into the HMC and double allocate the LUN (assign the slot to two or more LPARs) and expect that to work? Do I need to install a few more HBAs, allocate them to the individual LPARs and then have the SAN folks double or triple assign the LUNs to corresponding HBAs that way?
I tried the first way and received an error, but I'm not sure if that was because of something I'm doing wrong, or if the HMC will try to make sure I'm not doing something it thinks I don't want to do.

Thanks for your help all!

Problem in Emailing all .sh_history entries

$
0
0
Hi,

I can't get all the enties of AIX .sh_history in email. only first entry of the history is emailed after executing the below code.

Code:

mail -s "History `date +%d-%m-%Y`" myemail@xyz.com <$HOME/.sh_history
Can anyone help?

0403-027 The parameter list is too long on AIX 5.3

$
0
0
Hi we are using AIX 5.3 64bit
I have near about 79000 log file having naming convention like "IFTMBCSun Aug 14 07:45:00 PAKST 2011".
This naming convention was created by a script error, now we need to rename these log file by removing extar spaces and (:) colon for that we wrote below script
Code:

ls * | while read file
do
echo $file
echo "$file" | sed "s/[ \:]//g"
mv "$file" $( echo "$file" | sed "s/[ \:]//g" )
done

This script is working fine for limited files but is not working in folder where 79000 files exist and receiving error "0403-027 The parameter list is too long on AIX 5.3"

Regards,

Hassan

Performance issue

$
0
0
Hi

We have an AIX5.3 server with application which is written in C. We are facing server (lpar) hangs intermediately. If we open new telnet window prompts for user and takes hell of a time to authenticate, not only that if we run ps -aef then also it takes lot of time. surprisingly there is no cpu bottleneck as cpu is almost 80% idle, there is o memory or paging, there are no errors on network card. The only thing we observed is there were so many errors of core dump for the application.
Code:

                          Kbps      tps    Kb_read  Kb_wrtn  time
                        585.2      14.8        288    17264  09:57:51
Adapter:                      xfers              time
-------------------- --------------------------- ---------
                        bps    tps  bread  bwrtn
sissas0              598.9K  14.7    9.8K 589.1K  09:57:51

Disks:                          xfers                                read                                write                                  queue                    time
-------------------- -------------------------------- ------------------------------------ ------------------------------------ -------------------------------------- ---------
                      %tm    bps  tps  bread  bwrtn  rps    avg    min    max time fail  wps    avg    min    max time fail    avg    min    max  avg  avg  serv
                      act                                    serv  serv  serv outs              serv  serv  serv outs        time  time  time  wqsz  sqsz qfull
hdisk0                3.1 302.1K  7.9  7.5K 294.6K  1.5  4.5    2.6    7.9    0    0  6.5  5.4    1.9    7.9    0    0  0.0    0.0    0.0    0.0  0.0  0.0  09:57:51
hdisk1                2.8 296.9K  6.8  2.3K 294.6K  0.4  6.8    3.4  11.8    0    0  6.5  5.5    2.5  11.3    0    0  0.0    0.0    0.0    0.0  0.0  0.0  09:57:51

HTML Code:

                          Kbps      tps    Kb_read  Kb_wrtn  time
                        369.8      68.2        64    11030  09:58:21
Adapter:                      xfers              time
-------------------- --------------------------- ---------
                        bps    tps  bread  bwrtn
sissas0              378.7K  68.2    2.2K 376.5K  09:58:21

Disks:                          xfers                                read                                write                                  queue                    time
-------------------- -------------------------------- ------------------------------------ ------------------------------------ -------------------------------------- ---------
                      %tm    bps  tps  bread  bwrtn  rps    avg    min    max time fail  wps    avg    min    max time fail    avg    min    max  avg  avg  serv
                      act                                    serv  serv  serv outs              serv  serv  serv outs        time  time  time  wqsz  sqsz qfull
hdisk0                14.9 190.9K  34.4  2.0K 188.9K  0.4  4.2    0.0    0.0    0    0  34.0  19.2    1.5    8.5    0    0  22.8    0.0    0.0    0.5  0.3  10.6  09:58:21
hdisk1                14.5 187.8K  33.8 136.5  187.6K  0.0  17.1    0.0    0.0    0    0  33.8  18.4    1.3    4.6    0    0  20.8    0.0    0.0    0.5  0.3  10.2  09:58:21

"vmstat output"

Code:

System configuration: lcpu=2 mem=5376MB

  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  3  0  0    1213172      14247    30    0    0    0    0      0  3710 115624 11911 53 31 13  3 09:57:13
  2  0  0    1213960      13119    65  256    0    0    0      0  1819 223286  7149 34 59  5  3 09:57:14
  2  0  0    1224245      2788    46  704    0    0  723  1716  3080 938143 11432 52 43  4  0 09:57:15
  4  0  0    1227928      1085    16    32    0    0  2081  4502  2285  96142 15999 28 66  5  0 09:57:16
  2  1  0    1236307      1531    0    13    0    0  9000  24997  1031  14441  3713  9 37 53  1 09:57:17
  0  0  0    1224268      14239    12    1    0    0  508  1319  3107  56542 12801 24 29 46  1 09:57:18
  2  0  0    1236983      2272    0    0    0    0  923  3437  2748  54970 10001 24 22 54  0 09:57:19
  1  0  0    1217684      21522    45  737    0    0  256  1375  3546 155013 13750 31 34 34  0 09:57:20
  4  0  0    1214541      24604    8    64    0    0    0      0  4082  86059 17777 30 44 21  5 09:57:21
  0  1  0    1211946      27162    0    36    0    0    0      0  4236  36690 14955 27 18 47  7 09:57:22
  1  0  0    1211769      27338    0    0    0    0    0      0  3716  26524 14050 22 20 58  0 09:57:23
  1  0  0    1211963      27143    0    0    0    0    0      0  3645  47245 14894 24 23 53  0 09:57:24
  0  0  0    1212044      27029    17    0    0    0    0      0  5092  42021 18800 34 26 39  0 09:57:25
  3  0  0    1212056      27026    1    0    0    0    0      0  7440  70306 29180 36 26 38  0 09:57:26
  0  0  0    1212064      27018    0    0    0    0    0      0  4734  37139 18375 28 25 47  0 09:57:27
  2  0  0    1212146      26936    0    15    0    0    0      0  4068  22927 14339 25 18 57  0 09:57:28
  0  0  0    1212149      24933    0  1984    0    0    0      0  4928  34577 17412 36 25 39  0 09:57:29
  0  0  0    1212147      24936    0    0    0    0    0      0  5531  32206 19008 40 18 42  0 09:57:30
  0  0  0    1212149      24933    0    0    0    0    0      0  3785  26694 13758 23 22 55  0 09:57:31
  0  0  0    1212141      24940    1    0    0    0    0      0  3908  21671 14132 23 15 62  0 09:57:32
  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  1  0  0    1212152      24933    0    0    0    0    0      0  3858  37512 14007 24 22 54  0 09:57:33
  2  0  0    1212697      24379    10    1    0    0    0      0  3921  28358 13789 26 18 56  1 09:57:34
  1  0  0    1212706      24370    0    0    0    0    0      0  4285  31408 15405 35 17 49  0 09:57:35
  2  0  0    1212711      24364    1    0    0    0    0      0  3454  29837 12735 52 22 27  0 09:57:36
  0  0  0    1212772      24302    0    0    0    0    0      0  4121  27853 15377 28 16 56  0 09:57:37
  6  0  0    1212978      24095    0    1    0    0    0      0  3263  26979 14024 35 18 47  0 09:57:38
  1  0  0    1213111      23960    2    0    0    0    0      0  3877  31711 13522 24 16 60  0 09:57:39
  1  0  0    1213119      23952    0    0    0    0    0      0  3350  24652 13280 20 20 60  0 09:57:40
  1  0  0    1213191      23880    0    0    0    0    0      0  3833  21134 13018 23 15 62  0 09:57:41
  1  0  0    1213193      23874    0    0    0    0    0      0  4033  30411 14517 29 22 49  0 09:57:42
  1  0  0    1213195      23868    1    0    0    0    0      0  4117  25976 14614 29 18 52  0 09:57:43
  1  0  0    1213199      23828    55    0    0    0    0      0  3979  38583 14675 27 22 50  1 09:57:44
  0  0  0    1213316      23711    0    0    0    0    0      0  3930  90174 13890 25 18 57  0 09:57:45
  1  0  0    1213311      23713    0    0    0    0    0      0  3793  27332 13836 29 21 50  0 09:57:46
  0  0  0    1213362      23654    5    0    0    0    0      0  3891  31158 13841 28 16 56  0 09:57:47
  2  0  0    1213537      23480    0    1    0    0    0      0  3290  54229 11802 28 21 51  0 09:57:48
  0  0  0    1213579      23437    0    0    0    0    0      0  3894  30331 14546 23 16 61  0 09:57:49
  0  0  0    1213423      23589    2    1    0    0    0      0  4031  32409 15190 32 22 45  0 09:57:50
  1  0  0    1211081      25922    8    0    0    0    0      0  4285  24381 15064 29 17 54  1 09:57:51
  3  0  0    1212575      24427    0    0    0    0    0      0  4033  27862 14775 28 19 53  0 09:57:52
  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  0  0  0    1211471      25528    24    0    0    0    0      0  4032  26727 15380 25 18 57  0 09:57:53
  0  0  0    1211471      25528    0    0    0    0    0      0  3678  20203 12995 23 15 63  0 09:57:54
  0  0  0    1211483      25514    0    0    0    0    0      0  3284  32100 14016 21 21 58  0 09:57:55
  2  0  0    1212630      24364    0    0    0    0    0      0  2705  23693 11065 18 13 69  0 09:57:56
  1  0  0    1212788      24210    0    0    0    0    0      0  4169  32903 15619 28 24 48  0 09:57:57
  0  0  0    1213009      23986    14    1    0    0    0      0  1806  12979  7245 11  8 80  0 09:57:58
  2  0  0    1213014      23981    0    0    0    0    0      0  949  12599  4039 10 13 78  0 09:57:59
  0  0  0    1213116      23878    0    0    0    0    0      0  2181  13214  7538 19  9 72  0 09:58:00
  0  0  0    1213232      23761    0    0    0    0    0      0  2380  21901  9532 19 17 63  0 09:58:01
  0  0  0    1213277      23716    0    0    0    0    0      0  1350  9198  4559 15  6 78  0 09:58:02
  0  0  0    1213284      23708    0    23    0    0    0      0  1517  14331  5235 14 15 61 10 09:58:03
  0  0  0    1213410      23577    0    60    0    0    0      0  4688  29454 16426 38 22 26 14 09:58:04
  2  1  0    1213430      23555    0  222    0    0    0      0  3169  28903 11793 24 21 39 16 09:58:05
  1  0  0    1213428      23557    0  176    0    0    0      0  3979  21043 13045 26 18 36 20 09:58:06
  1  0  0    1213429      23555    0    10    0    0    0      0  4348  29102 14229 24 25 49  3 09:58:07
  0  1  0    1213437      23547    0    1    0    0    0      0  3016  45648  9699 23 14 58  5 09:58:08
  0  0  0    1212750      24232    0    0    0    0    0      0  1601  23978  8712 20 16 64  0 09:58:09
  0  0  0    1212478      24503    0    0    0    0    0      0  628  43858  4317 15 19 67  0 09:58:10
  1  0  0    1213179      23797    1    0    0    0    0      0  2568  50097  9130 28 20 51  0 09:58:11
  0  0  0    1214633      22342    0    0    0    0    0      0  4052  23891 13778 31 17 52  0 09:58:12
  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  0  0  0    1217873      19102    0    0    0    0    0      0  3865  31917 13392 31 18 51  0 09:58:13
  0  0  0    1217676      19289    10    0    0    0    0      0  3464  24873 12013 41 17 42  0 09:58:14
  2  0  0    1218242      18683    0    32    0    0    0      0  3843  35720 14061 29 18 53  0 09:58:15
  0  0  0    1218247      18678    0    0    0    0    0      0  3400  27049 13059 21 19 60  0 09:58:16
  1  0  0    1218229      18696    0    0    0    0    0      0  4125  26827 16139 24 16 60  0 09:58:17
  1  0  0    1218466      18458    0    1    0    0    0      0  5322  76074 20456 35 26 38  0 09:58:18
  0  0  0    1218462      18462    0    0    0    0    0      0  3161  31550 12481 21 15 65  0 09:58:19
  3  0  0    1218486      18435    0    0    0    0    0      0  5019  48378 19111 31 24 45  0 09:58:20
  2  0  0    1218278      18644    0    0    0    0    0      0  5803  68820 21453 38 22 40  0 09:58:21
  2  0  0    1218271      18650    0    0    0    0    0      0  4946  45197 18728 31 23 46  0 09:58:22
  3  0  0    1218326      18596    0    0    0    0    0      0  3750  26586 15387 24 15 61  0 09:58:23
  2  0  0    1218544      18378    0    0    0    0    0      0  2809  29751 12687 26 18 56  0 09:58:24
  0  0  0    1219093      17826    0    0    0    0    0      0  2700  25927 11668 26 14 60  0 09:58:25
  1  0  0    1219730      17185    0    0    0    0    0      0  2939  32015 13081 29 21 50  0 09:58:26
  1  0  0    1219738      17177    0    0    0    0    0      0  2765  21737 11996 23 13 64  0 09:58:27
  0  0  0    1219947      16967    0    5    0    0    0      0  2824  27244 11965 30 20 50  0 09:58:28
  1  0  0    1219943      16967    5    2    0    0    0      0  4182  37190 16750 39 18 43  0 09:58:29
  3  0  0    1220099      16811    0    0    0    0    0      0  5989  44857 22535 38 25 37  0 09:58:30
  2  0  0    1220931      15978    0    0    0    0    0      0  5692  40823 21709 44 21 35  0 09:58:31
  0  0  0    1221438      15470    8    0    0    0    0      0  5537  56461 21453 36 27 37  0 09:58:32
  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  1  0  0    1220941      15966    1    0    0    0    0      0  5946  49800 21525 43 23 34  0 09:58:33
  2  0  0    1221772      15135    0    0    0    0    0      0  6246  58446 23431 37 23 40  0 09:58:34
  6  0  0    1221608      15304    0    0    0    0    0      0  4981  77505 19651 38 28 35  0 09:58:35
  3  0  0    1221741      15158    18    1    0    0    0      0  4802 229972 18775 36 31 33  0 09:58:36
  3  0  0    1222282      14616    0    2    0    0    0      0  4094 173709 16648 35 30 34  0 09:58:37
  2  0  0    1222632      14249    13    4    0    0    0      0  3331 140823 13253 31 26 40  2 09:58:38
  1  0  0    1223227      13652    0    0    0    0    0      0  3093  55930 12104 30 20 50  0 09:58:39
  0  0  0    1223519      13357    0    6    0    0    0      0  5113  39177 18264 35 19 45  1 09:58:40
  1  0  0    1223559      13317    0    6    0    0    0      0  6152  58235 23403 36 27 37  0 09:58:41
  0  0  0    1223652      13222    9    0    0    0    0      0  2011  19324  7381 21 10 69  0 09:58:42
  0  0  0    1223876      12999    0    0    0    0    0      0  2494  40136 10229 23 19 58  0 09:58:43
  1  0  0    1224076      12799    0    0    0    0    0      0  5877  46555 21618 35 20 45  0 09:58:44
  0  0  0    1222992      13879    0    2    0    0    0      0  5951  49562 23099 34 28 38  0 09:58:45
  0  0  0    1223136      13663    74    10    0    0    0      0  5127  32905 18769 30 18 51  0 09:58:46
  1  0  0    1222404      14397    0    0    0    0    0      0  5520  84529 21312 33 27 39  0 09:58:47
  0  0  0    1222452      14347    0    1    0    0    0      0  5349  89317 20386 29 22 48  0 09:58:48
  0  0  0    1222120      14652    26    0    0    0    0      0  3896  32365 16100 24 21 54  1 09:58:49
  1  0  0    1222142      14618    12    0    0    0    0      0  6049  48556 22919 34 21 45  0 09:58:50
  1  0  0    1222304      14454    0    0    0    0    0      0  6668  73227 26926 36 30 34  0 09:58:51
  1  0  0    1221187      15567    8    2    0    0    0      0  6228  94519 24593 36 29 34  0 09:58:52
  kthr            memory                        page                      faults          cpu      time 
----------- --------------------- ------------------------------------ ------------------ ----------- --------
  r  b  p        avm        fre    fi    fo    pi    po    fr    sr    in    sy    cs us sy id wa hr mi se
  1  0  0    1222168      14582    0    0    0    0    0      0  5800 165168 23250 36 30 34  0 09:58:53
  2  0  0    1220658      16094    0    0    0    0    0      0  4652 214673 18782 34 35 30  0 09:58:54
  0  0  0    1220683      16067    0    0    0    0    0      0  4089  49429 16681 25 18 57  0 09:58:55
  0  0  0    1220683      16067    0    0    0    0    0      0  5573  43567 22323 29 25 46  0 09:58:56
  1  0  0    1220729      16008    22    0    0    0    0      0  3380  25609 12853 24 13 62  1 09:58:57
  3  0  0    1220932      15803    0    1    0    0    0      0  3531  41507 13943 24 21 54  0 09:58:58
  4  0  0    1218686      18047    0    0    0    0    0      0  3117  22044 11402 26 14 60  0 09:58:59
  2  0  0    1215429      21302    0    3    0    0    0      0  3148  27815 12031 25 21 54  0 09:59:00
  3  0  0    1215424      21307    0    0    0    0    0      0  4444  27695 16145 30 16 54  0 09:59:01
  1  0  0    1216411      20314    0    0    0    0    0      0  3855  33125 14212 34 21 44  0 09:59:02
  1  0  0    1216850      19875    0    0    0    0    0      0  4572  51358 17211 34 18 48  0 09:59:03
  2  0  0    1217038      19684    16    0    0    0    0      0  3853  31791 14190 36 21 43  0 09:59:04
  2  0  0    1216973      19656    3    32    0    0    0      0  5064  40493 19548 42 19 39  0 09:59:05
  0  0  0    1217087      19374    0  192    0    0    0      0  5531  45886 22204 42 25 33  0 09:59:06
  1  1  0    1217172      19120    0  214    0    0    0      0  6359  47394 24709 42 24 25 10 09:59:07
  2  1  0    1217169      18952    12  249    0    0    0      0  4963  39831 19332 39 26 21 13 09:59:08
  2  1  0    1217172      18779    0  228    0    0    0      0  6391  44199 24828 41 25 24 10 09:59:09
  2  0  0    1217357      18437    0  191    0    0    0      0  6586  62367 26637 46 28 26  0 09:59:10
  1  0  0    1217362      18257    8  128    0    0    0      0  5587  59916 24099 39 27 34  0 09:59:11
  0  0  0    1217441      17991    0  224    0    0    0      0  3815  26898 16012 34 17 49  0 09:59:12

please suggest.

How to change core path on AIX?

$
0
0
How can I change core path from current directory to a desired folder on AIX 6.1 which should be only applicable to the shell in which my program is running.

I know that chcore with -l option can be used to do that but it will change the core path either at system level or for a particular user. But my requirement is to restrict it to the shell in which my program is running.

On Solaris it can be achieved by setting following in to the shell :

Code:

coreadm -e process
coreadm -p <Core File Path WithName> $$

e.g.
Code:

coreadm -e process
coreadm -p /tmp/crahses/%f[%p]_Crash-%t.core $$

The $$ symbols represent a placeholder for the process ID of the currently running shell on Solaris.

Is there any equivalent on AIX as well where I can do core settings related to path only limited to currently running shell?

How to create core through program at the time of crash by handling signals?

$
0
0
I am in process of writing a library which can make any application of my product capable of creating core in the application's log folder with a product friendly core file name programatically. In my library I am registering for certain signals e.g. SIGILL, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGABRT and in the handler routine of my signal I am forking gcore to create dump of the current process.

I am able to successfully create the core in this manner if any application which uses my library runs a faulty code e.g. Illegal Memory Access (Segmentation Violation) etc. However the core created in this manner does not take me to the faulty code location and displays the Signal Handler routine stack.

On windows this can be done through registering handler by calling SetUnhandledExceptionFilter. When OS calls the handler in case of any unhandled exception it also passes _EXCEPTION_POINTERS which is used for dump creation. The dump created in this manner contains the correct information of faulty code.

Through AIX signal handling I am only getting signal number in the handler routine. How can create correct core in the given situation on AIX programatically. Forking gcore is not working here as correct core is not getting generated. If any sample program is available then that would be great.

I am using AIX 6.1

Copying LVs from disk1 to disk0

$
0
0
Dear i have two internal disks in one production system some LVs are created in hdisk0 and the remaining are created in hdisk1 i want to move all this LVs to hdisk0 and make the hdisk1 free to install my application .

Code:

lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd4 16 16 00..04..12..00..00 /
hd8 1 1 00..00..01..00..00 N/A
hd5 1 1 01..00..00..00..00 N/A
hd10opt 16 16 00..08..08..00..00 /opt
hd3 24 24 00..00..24..00..00 /tmp
hd9var 4 4 00..00..04..00..00 /var
hd2 32 32 00..00..32..00..00 /usr
#######################
lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd6 16 16 00..16..00..00..00 N/A
hd1 4 4 00..03..01..00..00 /home
hd9var 12 12 00..08..04..00..00 /var
livedump 2 2 00..02..00..00..00 /var/adm/ras/livedump
lg_dumplv 12 12 00..12..00..00..00 N/A
hd11admin 1 1 00..00..01..00..00 /admin


PowerHA with 3rd node for communication

$
0
0
Looking to find PowerHA with 3rd node used for communication (voting node) only. Does anyone use such configuration with IBM products?

Set LD_LIBRARY_PATH to empty issue

$
0
0
I have a question on setting environmental variable LD_LIBRARY_PATH.
The case is that, i cannot execute wget on my AIX machine.
It return the following error:
Code:

exec(): 0509-036 Cannot load program wget because of the following errors:
        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-150  Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152  Member libiconv.so.2 is not found in archive
        0509-022 Cannot load module wget.
        0509-150  Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
        0509-022 Cannot load module .

After I unset the environmental variable LD_LIBRARY_PATH using "unset" command, wget can working properly.
Then I set the variable to "1", wget also working properly.
Finally, I set it to "", wget prompt the above error message again.
So, would you tell me what going on? and why wget can working even $LD_LIBRARY_PATH="1"?

thank you very much

Difference between ps -ef and ps aux

$
0
0
Hi,

Can someone tell me what the difference is between ps -ef and ps aux. I was under the assumption that both commands would list ALL processes currently running on the system.

But on my server I find the following:

Code:


# ps
 -ef | wc -l
    519
# ps aux | wc -l
    571

What are these 52 processes found by aux? Can I identifty these processes with ps -ef as well?

Greetings,
Peter

Set LD_LIBRARY_PATH to 1 or empty

$
0
0
I have a question on setting environmental variable LD_LIBRARY_PATH.
The case is that, i cannot execute wget on my AIX machine.
It return the following error:
Code:

exec(): 0509-036 Cannot load program wget because of the following errors:
        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-150  Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152  Member libiconv.so.2 is not found in archive
        0509-022 Cannot load module wget.
        0509-150  Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
        0509-022 Cannot load module .

After I unset the environmental variable LD_LIBRARY_PATH using "unset" command, wget can working properly.
Then I set the variable to "1", wget also working properly.
Finally, I set it to "", wget prompt the above error message again.
So, would you tell me what going on? and why wget can working even $LD_LIBRARY_PATH="1"?

thank you very much

Difference between rmlv and rmfs

$
0
0
Hello everyone,

The rmfs command deletes the filesystem and the lv. the rmlv deletes only the lv. Is that correct ?

For what need we should use either rmfs or rmlv ?

Can you give examples?

Thank you.

AIX6: Getting Out of memory error during SFTP

$
0
0
Hi all the gurus out there, I am trying to SFTP about 30000 small files (4MB each at most) but I'm getting "xrealloc: out of memory" error. Anyone encountered this before? I'm on AIX6.

Calling functions from main program from dlopened library function

$
0
0
Hello All,

I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and really appreciate your help on this.

Code:

# cat main.c
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <errno.h>
typedef void (*FP)(void);

void printme (void) {
 printf ("printed me hurray!!!\n");
}


int
main( int argc, char** argv )
{
 void* handle;
 void* symptr;
 FP fp;
 /*** Load the shared object containing the definition of the ***/
 /*** function . defsym(). ***/
 if ( NULL == ( handle = dlopen( "./libdefsym.so", RTLD_NOW ) ) ){
  perror( dlerror() );
  exit( 1 );
 }
 /**** Obtain the address of the function defsym. ***/
 if ( NULL == ( symptr = dlsym( handle, "defsym" ) ) ) {
  if ( 0 == errno ) {
  fprintf( stderr, "Symbol defsym not found. Exiting\n"
  );
  exit( 1 );
  }
  perror( dlerror() );
  exit( 1 );
 }
 fp = ( FP )symptr;
 /*** Call the function via the obtained function address. ***/
 fp();
 /*** Unload the previously loaded shared object. ***/
 if ( 0 != ( dlclose( handle ) ) ) {
  perror( dlerror() );
  exit( 1 );
 }
 exit( 0 );
}

defsym.c
#include <stdio.h>
#include <stdlib.h>
void
defsym()
{
 printf( "defsym called.\n" );
 printme();
}

cat toexp.exp
#!.
printme

Makefile
CC=gcc
CFLAGS= -g -maix64
all: main libdefsym.so
main: main.o
    $(CC) -maix64 -o main main.o
main.o: main.c
    $(CC) $(CFLAGS) -c main.c
libdefsym.so: defsym.o
    ld -G -bnoentry -bexpall -bE:toexp.exp -o libdefsym.so defsym.o -lc
defsym.o: defsym.c
    $(CC) $(CFLAGS) -c defsym.c
.PHONY: clean
clean:
    rm *.o *.so main


# dbx ./main core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...internal error: 1283-228 expected char ',', found ';-31,448,256;;'
internal error: 1283-228 expected char ';', found ',256;;'
internal error: 1283-232 index("256;;", ':') failed
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found 's__LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: 1283-228 expected char ',', found '__LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: 1283-228 expected char ';', found '_LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: unexpected value 44 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found '1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found 's_LC_locale_objhdl:,128,64;;'
internal error: 1283-228 expected char ',', found '_LC_locale_objhdl:,128,64;;'
internal error: 1283-228 expected char ';', found 'LC_locale_objhdl:,128,64;;'
internal error: unexpected value 44 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found '128,64;;'
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c


Illegal instruction (illegal opcode) in . at 0x0
warning: Unable to access address 0x0 from core
(dbx) where
.() at 0x0
internal error: 1283-228 expected char ',', found ';-31,448,256;;'
internal error: 1283-228 expected char ';', found ',256;;'
internal error: 1283-232 index("256;;", ':') failed
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found 's__LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: 1283-228 expected char ',', found '__LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: 1283-228 expected char ';', found '_LC_locale:,1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: unexpected value 44 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found '1088,64;__meth_ptr:13,1152,64;__data_ptr:13,1216,64;;'
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found 's_LC_locale_objhdl:,128,64;;'
internal error: 1283-228 expected char ',', found '_LC_locale_objhdl:,128,64;;'
internal error: 1283-228 expected char ';', found 'LC_locale_objhdl:,128,64;;'
internal error: unexpected value 44 at line 5176 in file stabstring.c
internal error: 1283-228 expected char ',', found '128,64;;'
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
internal error: unexpected value 120 at line 5176 in file stabstring.c
defsym(), line 8 in "defsym.c"
main(argc = 1, argv = 0x0ffffffffffff9e0), line 36 in "main.c"
(dbx)


Ssh connection timed out

$
0
0
Hello,

I have two AIX6.1 machines that can communicate with each other through ssh.
The problem is that one of them somehow closes the connection after some time and i don't know the reason of that.
For example today i send through rsync command 7 files from one server to the other. It send successfully the first 6 files but the last one failed with the following error:
Code:

ssh: connect to host <server_name> port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(342)
FAILURE <file_name> at SERVER <server_name>

I never experienced this kind of problem before. Why it loses the connection?

Thank you for your attention

Maxuproc vs ulimit -u [processes(per user)]

$
0
0
Morning,

Somebody can tell me in AIX 6.1 what is the different between the maxuproc (lsattr -El sys0 | grep max) and the [processes(per user)] for a user.

Example:
Oracle is limited by :
#ulimit -u
processes(per user) unlimited


But lsattr -El sys0| grep maxuproc show me :
maxuproc 16384

So oracle is limited (number of process) or not ?

which of these command can i believe ? What is the real difference between these parameters ?

Thanks.

Profile Max CPU Setting

$
0
0
I have a system with the following settings:
min:0.10
Assigned: 2.0
Max: 6.0

Partition is uncapped weight is 128.
I would like to know if even if this is uncapped, is the max it can use 6?
The actual pool has 16.
I remember reading about this somewhere but I don't remember can anyone clearify if I am actually allowing the system to use the 16 processors available?
If someone has a link to some kind of document to explain this a bit better would be great!

AIX: Shell request failed on channel 0

$
0
0
Hi everyone,

I'm trying to ssh from AIX to window servers using freeSSHD(on window) via PKI authentication. When i try to connect from aix, I get this message "shell request failed on channel 0" If i try sftp
"subsystem request failed on channel 0Connection closed"
I tried to fix this problem by debugging mode but I don't know how i can fix this. Can anyone tell me what i did wrong?

Code:

OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): Could not load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
System error: No such file or directory
debug1: Error loading Kerberos, disabling Kerberos auth.
debug2: ssh_connect: needpriv 0
debug1: Connecting to 11.11.1.111 [11.11.1.111] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/sssmp/.ssh/id_rsa type 1
debug1: identity file /home/sssmp/.ssh/id_rsa-cert type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/sssmp/.ssh/id_dsa type 2
debug1: identity file /home/sssmp/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3
debug1: no match: WeOnlyDo 2.1.3
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,none
debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,none
debug2: kex_parse_kexinit: zlib,none
debug2: kex_parse_kexinit: zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug2: dh_gen_key: priv key bits set: 129/256
debug2: bits set: 1041/2048
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '11.111.1.11' is known and matches the RSA host key.
debug1: Found key in /home/sssmp/.ssh/known_hosts:5
debug2: bits set: 1050/2048
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/sssmp/.ssh/id_rsa (20046808)
debug2: key: /home/sssmp/.ssh/id_dsa (2003fc68)
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/sssmp/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp 93:f2:4d:36:52:e3:1c:03:91:c5:93:de:f7:75:50:d3
debug1: read PEM private key done: type RSA
***Build Server***debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 131072 rmax 98304
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel_input_status_confirm: type 100 id 0
shell request failed on channel 0

sshd_config file

Code:

#      $OpenBSD: sshd_config,v 1.81 2009/10/08 14:03:41 markus Exp $
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# The default requires explicit activation of protocol 1
#Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile    .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none
# no default banner path
#Banner none
Banner /etc/motd
# override default of no subsystems
Subsystem      sftp    /usr/sbin/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      ForceCommand cvs server

From above result, i can see that i was able to make connection...not sure what is the meaning of channel....

Thanks in advance, let me know if i have to provide more info...

Console redirect to xmanager in AIX ?

$
0
0
Hello,

Oracle PDF reports run only when you run the command
# xhost +

from the console,

but if you run from the xmanager session , then report doesn't work

running from windows pc using xmanager

Code:


# xhost +
access control disabled, clients can connect from any host
# echo $DISPLAY
10.1.1.100:0.0
#
# lscons
/dev/lft0
#
# echo "tesaaaaaaaaat" > /dev/console
#
# lscons -a
 current = /dev/lft0
 console_logname = /var/adm/ras/conslog
 console_logsize = 32768
 console_logverb = 1
 console_tagverb = 0

Can we redirect the console to Xmanager ?
Viewing all 373 articles
Browse latest View live