Posted by Kairo Araujo on 3 de abril de 2009
Looking my adapters I found fcs0 in diagnose state
# lsdev -Cc adapter
ent0 Available 21-08 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
ent1 Available 1A-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
ent2 Available 14-08 Gigabit Ethernet-SX PCI Adapter (14100401)
ent3 Available 37-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
ent4 Available 27-08 Gigabit Ethernet-SX PCI Adapter (14100401)
ent5 Available 3A-08 Gigabit Ethernet-SX PCI Adapter (14100401)
fcs0 Diagnose 2A-08 FC Adapter
fda0 Available 01-D1 Standard I/O Diskette Adapter
mg20 Available 2D-08 GXT130P Graphics Adapter
ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
sa2 Available 01-S3 Standard I/O Serial Port
sa3 Available 01-S4 Standard I/O Serial Port
scsi0 Available 11-08 Wide/Ultra-2 SCSI I/O Controller
scsi1 Available 11-09 Wide/Ultra-2 SCSI I/O Controller
scsi2 Available 17-08 Wide/Fast-20 SCSI I/O Controller
sioka0 Available 01-K1-00 Keyboard Adapter
siokma0 Available 01-K1 Keyboard/Mouse Adapter
sioma0 Available 01-K1-01 Mouse Adapter
# lsdev -C | grep fsc0
fcs0 Diagnose 2A-08 FC Adapter
Run the ucfgdiag to change this state
# /etc/methods/ucfgdiag -l fcs0
Looking devices
# lsdev -Cc adapter
ent0 Available 21-08 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
ent1 Available 1A-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
ent2 Available 14-08 Gigabit Ethernet-SX PCI Adapter (14100401)
ent3 Available 37-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
ent4 Available 27-08 Gigabit Ethernet-SX PCI Adapter (14100401)
ent5 Available 3A-08 Gigabit Ethernet-SX PCI Adapter (14100401)
fcs0 Defined 2A-08 FC Adapter
fda0 Available 01-D1 Standard I/O Diskette Adapter
mg20 Available 2D-08 GXT130P Graphics Adapter
ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
sa2 Available 01-S3 Standard I/O Serial Port
sa3 Available 01-S4 Standard I/O Serial Port
scsi0 Available 11-08 Wide/Ultra-2 SCSI I/O Controller
scsi1 Available 11-09 Wide/Ultra-2 SCSI I/O Controller
scsi2 Available 17-08 Wide/Fast-20 SCSI I/O Controller
sioka0 Available 01-K1-00 Keyboard Adapter
siokma0 Available 01-K1 Keyboard/Mouse Adapter
sioma0 Available 01-K1-01 Mouse Adapter
# lsdev -C | grep fsc0
fcs0 Defined 2A-08 FC Adapter
Now, I can remove device and your childs for new discover.
ATENTION: This command remove all child and device
# rmdev -dl fcs0 -R
fcnet0 deleted
fscsi0 deleted
fcs0 deleted
For new discover run cfgmgr
# cfgmgr -v
Posted by Kairo Araujo on 17 de dezembro de 2008
For check disk reservation
lquerypr -Vvh /dev/diskNN
Sample:
With reservation
lquerypr -Vvh /dev/vpath78
open device /dev/vpath78
setkey.compcode = 0
setkey.returncode = 1
cd1dfb02
Reserved with different key cd1dfb02, current host key cd1dfb03
Without reservation
# lquerypr -Vvh /dev/vpath78
open device /dev/vpath78
setkey.compcode = 0
setkey.returncode = 0
Not reserved.
For clear disk reservation (CAUTION with command)
lquerypr -ch /dev/diskNN
Sample:
lquerypr -ch /dev/disk31
Posted by Kairo Araujo on 17 de dezembro de 2008
Como identificar usuários com senhas em status lock
LINUX
Verificando status do usuário
# passwd -S kairo
kairo LK 2008-10-31 0 99999 7 -1 (Password locked.)
Retirando lock do usuário
# passwd -u kairo
Unlocking password for user kairo.
passwd: Success.
o status fica normal
# passwd -S kairo
kairo PS 2008-10-31 0 99999 7 -1 (Password set, MD5 crypt.)
Fazendo lock de senha do usuário
# passwd -l kairo
Locking password for user kairo.
passwd: Success
AIX
# lsuser kairo
kairo id=15000 pgrp=staff groups=staff,so home=/home/kairo shell=/usr/bin/ksh gecos=Kairo Araujo login=true su=true rlogin=true daemon=true admin=false sugroups=ALL admgroups= tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 registry=files SYSTEM=compat logintimes= loginretries=0 pwdwarntime=0 account_locked=false minage=0 maxage=0 maxexpired=-1 minalpha=0 minother=0 mindiff=0 maxrepeats=8 minlen=0 histexpire=0 histsize=0 pwdchecks= dictionlist= fsize=-1 cpu=-1 data=262144 stack=65536 core=2097151 rss=65536 nofiles=2000 fsize_hard=-1 time_last_login=1229521872 time_last_unsuccessful_login=1224871660 tty_last_login=/dev/pts/0 tty_last_unsuccessful_login=ssh host_last_login=myserver host_last_unsuccessful_login=127.0.0.1 unsuccessful_login_count=0 roles=
Verifique o item “account_locked”.
Para gerenciar, recomendo utilizar o smitty
smitty user
Posted by Kairo Araujo on 27 de julho de 2008
Este é um erro comum quando tenta-se montar um filesystem exportado por um servidor Linux no AIX
root@serveraix />mount serverlinux:/my/fs/exported /my/mountpint/here
mount: 1831-008 giving up on:
serverlinux:/my/fs/exported
vmount: Operation not permitted.
Solução:
Setar opção de utilização de portas reservadas para desativado
# nfso -o nfs_use_reserved_ports=1
Posted by Kairo Araujo on 21 de julho de 2008
Checking AIX version, ML and service pack
# oslevel -s
Checking LPP (packages)
# lppchk -v -m3
Checking ML and filesets found
# instfix -i | grep ML
Checking missing packages in ML
# instfix -icqk 5300-04_AIXML | grep ":-:"
Tip:
Checking all missing packages in all MLs
for i in $(instfix -i | grep ML | awk '{ print $4 }'); do instfix -icqk $i | grep ":-:"; done
Posted by Kairo Araujo on 19 de julho de 2008
0509-130 Symbol resolution failed for /usr/lib/libc.a[aio_64.o]
This error occurs because the Asynchronous I/O are not available.
# lsattr -El aio0
autoconfig defined STATE to be configured at system restart True
fastpath enable State of fast path True
kprocprio 39 Server PRIORITY True
maxreqs 4096 Maximum number of REQUESTS True
maxservers 10 MAXIMUM number of servers per cpu True
minservers 1 MINIMUM number of servers True
You must make the Asynchronous I/O available using smitty
# smitty chgaio
Change this item
STATE to be configured at system restart available
IMPORTANT: Changes will become effective at next system restart
For configure Asynchronous I/O now use:
# smitty aio
Configure Defined Asynchronous I/O
Checking aio0 again
# lsattr -El aio0
autoconfig available STATE to be configured at system restart True
fastpath enable State of fast path True
kprocprio 39 Server PRIORITY True
maxreqs 4096 Maximum number of REQUESTS True
maxservers 10 MAXIMUM number of servers per cpu True
minservers 1 MINIMUM number of servers True
Posted by Kairo Araujo on 27 de junho de 2008
Reconhecendo devices (serve para reconhecer novos discos)
# cfgmgr -v
Listar discos
# lspv
Listar LUNs e caminhos no DS4000 (detalhes)
# fget_config -Av
Para maiores informações
# man commando
Posted by Kairo Araujo on 25 de junho de 2008
Reconhecendo devices (serve para reconhecer novos discos)
# cfgmgr -v
Listar vpaths
# lsvpcfg
Listar status dos adapters de fibra (a.k.a hba)
# datapath query adapter
Listar status dos discos
# datapath query devices
Verificar se um disco está locked
# lquerypr -vh /dev/vpath[XX]
(CUIDADO) Remover locker do disco
# lquerypr -ch /dev/vpath[XX]
Listar discos
# lspv
Para maiores informações
# man commando
Posted by Kairo Araujo on 24 de junho de 2008
1. Listando efix instalados
# /usr/sbin/emgr -P
PACKAGE INSTALLER LABEL
=================================================================== ==========
bos.rte.odm installp IY97632_05
bos.rte.cron installp IZ00139_05
bos.rte.shell installp IZ01134_05
bos.rte.methods installp IZ01433_05
bos.perf.tools installp IZ00149_05
2. Removendo todos os EFIX
Para remover individualmente utilize
#emgr -r -L [LABEL]
Para remover todos os EFIX instalados pode utilizar o looping abaixo
# for i in $(emgr -P | grep installp | awk '{ print $3 }'); do emgr -r -L $i; done
DICA:
Após atualizar verifique se todos os EFIX foram aplicados, isto garante que seu sistema está com todas vulnerabilidades aplicadas.
Para verificar individualmente
# instfix -i | grep IY97632
Para verificar todos os removido crie um looping conforme exemplo
# for i in IY97632 IZ00139 IZ01134 IZ01433 IZ00149; do instfix -i | grep $i; done
Se você receber essa saida por exemplo:
# for i in IY97632 IZ00139 IZ01134 IZ01433 IZ00149; do instfix -i | grep $i; done
All filesets for IY97632 were found.
All filesets for IZ00139 were found.
No filesets which have fixes for IZ01134 are currently installed.
All filesets for IZ01433 were found.
All filesets for IZ00149 were found.
É necessário que instale o EFIX novamente IZ01134, caso todos estejam presentes seu sistema está OK.
Exemplo:
# for i in IY97632 IZ00139 IZ01134 IZ01433 IZ00149; do instfix -i | grep $i; done
All filesets for IY97632 were found.
All filesets for IZ00139 were found.
All filesets for IZ01134 were found.
All filesets for IZ01433 were found.
All filesets for IZ00149 were found.
Posted by Kairo Araujo on 28 de abril de 2008
Visualize o seguinte senário:
Cenário 1: Você possuí servidor Unix (Linux e AIX) conectados a um Storage Disk. Todo seu ambiente está funcionando perfeitamente em cima de do LVM. O Storage Disk cresceu e será migrado para um novo equipamento. Você precisa migrar seus dados para os discos do novo storage.
Cenário 2: Você tem um disco que está apresentando problemas no seu Volume Group (VG) do sistema operacional, porém seu ambiente ainda não foi afetado e necessita substituir este disco.
Para os dois cenários você tem duas soluções:
- Backup dos dados, substituição dos discos, restore do dados (trabalhaso e arriscado)
- Migração dos dados “on fly” (menos impacto e ainda conta com o backup em caso de problemas)
No artigo abaixo descrevo de forma rápida os passos para migrar no AIX e Linux
(mais…)