Показаны сообщения с ярлыком aix. Показать все сообщения
Показаны сообщения с ярлыком aix. Показать все сообщения

суббота, 20 января 2018 г.

Запуск tomcat на AIX из под пользователя на 80-том порту.

----------------------------
POWER AIXperiences
1. [root@aix dists]# tracepriv -f /usr/java8_64/jre/bin/java
...
7602316: Used privileges for /usr/java8_64/jre/bin/java:
  PV_DAC_O                           PV_FS_CHOWN                      
  PV_PROC_SIG                        PV_NET_CNTL                      
  PV_NET_PORT 

2. [root@aix dists]# lsdom ALL

3. [root@aix dists]# mkdom "id=1" dfltmsg="TCP Port 80" java_80

4. [root@aix dists]# lsdom ALL
 java_80 id=1 dfltmsg=TCP Port 80

5. [root@aix dists]# setsecattr -o domains=java_80 objtype=netport secflags=FSF_DOM_ANY TCP_80

6. [root@aix dists]# setsecattr -c accessauths=ALLOW_ALL innateprivs=PV_NET_PORT inheritprivs=PV_NET_PORT secflags=FSF_EPS /usr/java8_64/jre/bin/java

7. [root@aix dists]# chuser "domains=java_80" tomcat

8. [root@aix dists]# setkst
Successfully updated the Kernel Authorization Table.
Successfully updated the Kernel Role Table.
Successfully updated the Kernel Command Table.
Successfully updated the Kernel Device Table.
Successfully updated the Kernel Object Domain Table.
Successfully updated the Kernel  Domains Table.
Successfully updated the Kernel RBAC log level. 

9. cat /etc/security/domains
java_80:
        id = 1
        dfltmsg = "TCP Port 80"


пятница, 24 марта 2017 г.

HMC in vmware/virtualbox


подкат номер раз:
$ VBoxManage setextradata "vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "IBM CORPORATION"
$ VBoxManage setextradata "vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "7042CR5"
$ VBoxManage setextradata "vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "06AAAAB"

https://sites.google.com/site/rhdisk0/unix/aix/hmc-in-virtualbox#TOC-Requisites


подкат номер два:
/mnt/initrd/opt/hmc/bin/GetVPD
    replace /usr/sbin/dmidecode --string bios-version | sed -e 's/-\[//g' | sed -e 's/\]-//g' line with echo "2AKT51A"
    replace sn=`/usr/sbin/dmidecode --string system-serial-number` with sn="7042CR7*10-1234A"
    replace echo "$cmodel$mtype" with echo "7042CR7"

/opt/hsc/bin/getHMCVPD
replace /usr/sbin/dmidecode --string bios-version | sed -e 's/-\[//g' | sed -e 's/\]-//g' with echo "2AKT51A"
replace echo "$cmodel$mtype*$sn" with echo "7042CR7*10-1234A"

replace echo "$cmodel$mtype" with echo "7042CR7"
http://emmanuel.iffly.free.fr/doku.php?id=aix:hmc_virtual

пятница, 21 октября 2016 г.

GROWS TOO LARGE /var/ct//log/mc/IBM.MgmtDomainRM/default

Ну прямо философы

Problem conclusion
Size checking is now done periodically while the subsystem
is running, so growth will be controlled.

позиция ibm - само рассосется, в смысле лог /var/ct/XXXXXXXX/log/mc/IBM.MgmtDomainRM/default  отстегнется сам по достижению 256К, однако нет.

файл прибиваем, проверяем subsystem
[root@cisdev IBM.MgmtDomainRM]# lssrc -s IBM.MgmtDomainRM
Subsystem         Group            PID          Status
 IBM.MgmtDomainRM rsct_rm          6225938      active

и закрываем
[root@dev IBM.MgmtDomainRM]# stopsrc -s IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.

[root@dev IBM.MgmtDomainRM]# startsrc -s IBM.MgmtDomainRM
0513-059 The IBM.MgmtDomainRM Subsystem has been started. Subsystem PID is 6225940.

проверяем
[root@dev IBM.MgmtDomainRM]# lssrc -s IBM.MgmtDomainRM 
Subsystem         Group            PID          Status
 IBM.MgmtDomainRM rsct_rm          6225940      active

пятница, 6 ноября 2015 г.

AIX and VIOS Disk And Fibre Channel Adapter Queue Tuning

samba on aix

Some features that are not provided in the AIX version of Samba are:

    Samba as LDAP server or client
    Samba as Active Directory server
    Kerberos server support
    DCE/DFS support
    DNS Updates support
    Automount / smbmount support
    PAM support
    NISPLUS support
    Cluster support


http://www.ibm.com/developerworks/aix/library/au-aix_samba/

вторник, 19 мая 2015 г.

Windows на Power

Однако:
----------------------------------------------------------------
да, и это теперь возможно. Michael Perzl сумел собрать qemu для AIX - http://www.perzl.org/aix/index.php?n=Main.Qemu. Теоретически теперь можно запустить Windows Server в виртуальной машине под AIX, а учитывая, что QEMU умеет Live Mobility, а AIX - WLM, можно построить решение для x86 на Power не хуже VMware :) Практически - у меня не удалось запустить ничего больше FreeDOS в qemu. Но я спишу это на свои кривые руки, потому как заслуживающий доверия источник (Pierre Zelnicek - главный европейский специалист по безопасности AIX, который мне и рассказал об этом) утверждал, что ему удалось в живую смигрировать Windows XP с одного LPAR'а на другой.
----------------------------------------------------------------

Отсюда: http://sysadminslife.livejournal.com/66407.html

суббота, 21 марта 2015 г.

backup/restore aix

7100-03-03

Создать архив: smitty mksysb

* Backup DEVICE or FILE                              [/oradb/zfra]                                                                   +/
  Create MAP files?                                   no                                                                  +
  Create backup using snapshots?                      no                                                                  +
  EXCLUDE files?                                      no                                                                  +
  Exclude WPAR file systems?                          no                                                                  +
  Location of File System Exclusion List             []                                                                    /
  List files as they are backed up?                   no                                                                  +
  Verify readability if tape device?                  no                                                                  +
  Generate new /image.data file?                      yes                                                                 +
  EXPAND /tmp if needed?                              yes                                                                 +
  Disable software packing of backup?                 no                                                                  +
  Backup extended attributes?                         yes                                                                 +
  Number of BLOCKS to write in a single output       []                                                                    #
     (Leave blank to use a system default)
  Location of existing mksysb image                  []                                                                    /
  File system to use for temporary work space        []                                                                    /
     (If blank, /tmp will be used.)
  Back up encrypted files?                            yes                                                                 +
  Back up DMAPI filesystem files?                     yes  



Список файлов в бэкапе.
listvgbackup -cf /oradb/zfra/mksysb.img 

Восстановить:
restore -xdvqf /oradb/zfra/mksysb.img ./opt/u0
restore -xdvqf /oradb/zfra/mksysb.img ./home/orion ./home/oracle

точка вначале пути значащая.


Правильно бэкапить на магнитофон, тогда возможно загрузка с ленточки: http://nirmalesh-aix.blogspot.ru/2011/06/mksysb-and-savevg-backup-restore.html

четверг, 23 октября 2014 г.

aix: переходная timezone

[root@cisdev /]# cat /etc/environment | grep TZ
TZ=STD-6STD-7,M3.5.0,M10.5.0


четверг, 10 июля 2014 г.

aix 6.1 filesize limit exceeded.


150 Opening BINARY mode data connection for LINUX_TOOLS_4AIX.tar (3592151040 bytes)
LINUX_TOOLS_4AIX.tar: short write
No space left on device/filesize limit exceeded.
426 Transfer aborted. Data connection closed.
226 Abort successful



# cat /etc/security/limits | grep fsize
* fsize      - soft file size in blocks
* fsize_hard - hard file size in blocks
*   fsize_hard    set to fsize
        fsize = 2097151


# vi /etc/security/limits
default:
        fsize = 2097151
        core = 2097151
        cpu = -1
        data = 262144
        rss = 65536
        stack = 65536
        nofiles = 2000

root:
       fsize = -1


четверг, 20 сентября 2012 г.

AIX oslevel

# oslevel -s
6100-05-07-1140
4 цифры AIX base level 6100, т.е. 6.1
2 цифры Technology level, т.е. 05
2 цифры Service pack level, т.е. SP 7
4 цифры дата релиза YYWW, т.е. SP выпущен на 40 неделе 2011 года


четверг, 26 июля 2012 г.

NPIV and the IBM Virtual I/O Server (VIOS)

NPIV Overview
► N_Port ID Virtualization (NPIV) is a fibre channel industry standard
method for virtualizing a physical fibre channel port.

► NPIV allows one F_Port to be associated with multiple N_Port IDs,
so a physical fibre channel HBA can be shared across multiple guest
operating systems in a virtual environment.

► On POWER, NPIV allows logical partitions (LPARs) to have
dedicated N_Port IDs, giving the OS a unique identity to the SAN,
just as if it had a dedicated physical HBA(s).


http://www.ibm.com/developerworks/wikis/download/attachments/53871900/NPIV+-+VUG+12-18-2008.pdf

Moving an active AIX LPAR between two physical JS22 Blade servers, without an outage

Chris Gibson, AIX Specialist, Australia Post


Summary: This article focuses on performing Live Partition Mobility between two JS22 Blades. It provides insight into what to expect before, during, and after a live migration in a real-world environment with SAP and Oracle on AIX®.


http://www.ibm.com/developerworks/aix/library/au-js22lpm/

воскресенье, 8 июля 2012 г.

What is LV state "Stale"?

hd4 jfs2 6 12 2 open/syncd /
hd2 jfs2 24 48 2 open/stale /usr


The LV's concerned are mirrored, but the mirrors are out of sync. You need
to run syncvg against them to correct the problem.

четверг, 28 июня 2012 г.

гомосятина

Подходит сын к отцу и говорит: -Папа а кто такие педерасты? -Ммм, эээммгммм... Ну как бы тебе сказать? Помниш 2 года назад я сидел в лагере? -Помню папа. -Ну вот как то раз подходит ко мне мужик такой здоровый и говорит: Слыш, кореш, дай засажу на пол-Федора. Сгущенки тебе дам, чая, печенья. -Папа, ну а что дальше то было? -Ну а что дальше, сынок?Засадил на полного Федора и не чая не сгущенки. Так кто он после этого?






Собсно к чему:


Oracle Database Smart Flash Cache is a feature that was first introduced with Oracle Database 11g Release 2. Only available on Oracle Linux and Oracle Solaris, this feature increases the size of the database buffer cache without having to add RAM to the system. In effect, it acts as a second level cache on flash memory and will especially benefit read-intensive database applications.

Available at no additional cost, Database Smart Flash Cache on Oracle Solaris and Oracle Linux has the potential to offer considerable benefit to users of Oracle Database 11g Release 2 with disk-bound read-mostly or read-only workloads, through the simple addition of flash storage such as the Sun Storage F5100 Flash Array or the Sun Flash Accelerator F20 PCIe Card.

https://blogs.oracle.com/linux/entry/oracle_database_smart_flash_cache_only_on_oracle_linux_and_oracle_solaris

четверг, 21 июня 2012 г.

aix swap

# lsps -a
Page Space  Physical Volume  Volume Group  Size %Used Active Auto Type Chksum
hd6   hdisk0    rootvg    20480MB   1  yes   yes    lv     0
# extendlv hd6 +8G
# lsps -a
Page Space  Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6    hdisk0    rootvg    28672MB   1   yes   yes    lv     0

пятница, 8 июля 2011 г.

veritas netbackup и отрыжка aix

Warning FREEZING media id 088AAI, it contains MTF1-format data and cannot be used for backups
Warning FREEZING media id 180AAI, it contains ANSI-format data and cannot be used for backups


These are usually tapes written outside of NetBackup that have found their way into the library. By default, NetBackup will only write to a blank media or other NetBackup media. Other media types (DBR, TAR, CPIO, ANSI, MTF1 and recycled Backup Exec BE-MTF1 media) will be frozen as a safety measure. This behavior can be changed with the following procedure:

UNIX

To allow NetBackup to overwrite foreign media, add the following to /usr/openv/netbackup/bp.conf for the media server in question:


ALLOW_MEDIA_OVERWRITE = DBR 

ALLOW_MEDIA_OVERWRITE = TAR
ALLOW_MEDIA_OVERWRITE = CPIO

ALLOW_MEDIA_OVERWRITE = ANSI ALLOW_MEDIA_OVERWRITE = MTF1
ALLOW_MEDIA_OVERWRITE = BE-MTF1


Stop and restart the NetBackup daemons for the changes to take effect
 



PS
и заодно уже: 


Warning FREEZING media id 160AAI, it contains NetBackup database backup data and cannot be used for backups
Warning FREEZING media id 190AAI, it contains NetBackup database backup data and cannot be used for backups
 

How to reuse or recycle unnecessary NetBackup database catalog tapes for normal backups with NetBackup 4.5 or later 

Step 2. Unassign the tapes you wish to re-use:

Example:
# /usr/openv/volmgr/bin/vmquery -deassignbyid 000101 1 0x1

Step 3. Overwrite the tape label:

NOTE: This will effectively erase any previous information on the tape.

Example for robotic volume:
# /usr/openv/netbackup/bin/admincmd/bplabel -m 000101 -d dlt -o -p NetBackup