This post show installation of MegaCli (ServeRAID MR 10 k SAS/SATA Controller client) and two basic commands
1. Installation
Get ServeRAID CD and extract the file MegaCli-X.XX.XX-Y.i386.rpm.
Install using the rpm command
# rpm -ivh rpms/MegaCli-3.00.07-1.i386.rpm
Preparing... ########################################### [100%]
1:MegaCli ########################################### [100%]
Listing the installed files with rpm command
# rpm -ql MegaCli
/opt/MegaRAID/MegaCli/MegaCli
/opt/MegaRAID/MegaCli/MegaCli64
2. Basic commands
Continue Reading »
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
A algum tempo atrás fiz um post aqui sobre como realizar o pvmove.
Existe uma dúvida comum que ocorre quando tenta-se fazer o pvmove de um disco maior para discos menores conforme o exemplo abaixo:
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 rootvg lvm2 a- 68.12G 46.09G
/dev/sdh1 datavg lvm2 a- 100.00G 5.36G
/dev/sdj1 datavg lvm2 a- 200.00G 49.16G
/dev/sdk1 datavg lvm2 a- 200.00G 49.37G
/dev/sdl1 datavg lvm2 a- 200.00G 26.00G
/dev/sdm1 datavg lvm2 a- 200.00G 24.94G
/dev/sdn1 datavg lvm2 a- 200.00G 51.54G
/dev/sdo1 datavg lvm2 a- 200.00G 60.00G
No exemplo abaixo estou tentando movimentar o PV /dev/sdh1 para os demais PVs (/dev/sdj1, /dev/sdk1, /dev/sdl1, /dev/sdm1, /dev/sdn1 e /dev/sdo1), porém quando executo o comando abaixo ele retorna:
# pvmove /dev/sdh1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1
Insufficient suitable contiguous allocatable extents for logical volume pvmove0: 17920 more required
Unable to allocate temporary LV for pvmove.
Isso ocorre porque ele não tem blocos continuos que suportem todo o tamanho do volume.
Para isto o comando pvmove suporta mover por partes, desta forma faremos assim:
pvmove /dev/sdh1:1-17920 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1
Desta forma movimentaremos até o tamanho informado que é suportado. E continuaremos a movimentar por partes.
Dica: Você pode tentar movimentar totalmente o restante, comigo na maioria das vezes ele ja atinge o tamanho disponível.
pvmove /dev/sdh1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1
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
I’m committing a new package for Fedora Project.
procbench – Multiplatform information tool and CPU benchmark for x86 procs
$ procbench -h
Procbench v0.8.2a, Peter Kuscsik, 2008
Use -h flag to display help.
Usage: procbench [options]
List information about (current) x86 processor
Options are:
-h display this help and exit
-c show CPUID information
-d dump CPUID
-i instruction latency meter (experimental)
-m memory transfer speed test
-f display best optimisation flags for GCC
More output examples:
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
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
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
Cygwin is a Linux-like environment for Windows.
Official website: http://www.cygwin.com
Looking for Cygwin ISO I find this script (actually modified by me)
http://kairo.freeshell.org/cygwin/mkcygwiniso.sh
Script functions:
1. Get setup.exe
2. Create a cygwinlist file with package list and you can customize removing packages from list
3. Get packages
4. Create a ISO file (Full packages: Size > 800MB)
5. Clean files
Utilization
1. Run script
# sh mkcygwiniso.sh
You can now edit cygwinlist, remove unwanted files (e.g XFree86)
Press Enter when ready to start download
A. ENTER for full download — size are > 800MB
B. CTRL+C for edit cygwinlist and customize
2. Customize list in cywinlist file
3. Run script again
# sh mkcygwiniso.sh
You can now edit cygwinlist, remove unwanted files (e.g XFree86)
Press Enter when ready to start download
Press ENTER
4. In the end your cygwin.iso can be generated
Suggest:
Run script in the background
# nohup sh mkcygwiniso.sh > mkcygwiniso.log &
For look the status you can use:
# tail -f mkcygwiniso.log
Source
The originally script are here: http://linux.ensimag.fr/iso/cygwin/20041020/mkcygwiniso.sh