Arquivo

Archive for abril \26\UTC 2013

Ver os Paths

MPIO : Forma fácil de verificar se os paths estão ok

Sometimes on a server which had some fiber channel difficulties, I always check if there are some missing or failed paths by issuing this command (sometimes the numbers are not equal, and we have to reconfigure missing paths) :
root@lpar:/root# lspath | awk ‘{print $1,$NF}’ |sort |uniq -c
18 Enabled fscsi0
6 Enabled fscsi1
12 Failed fscsi1

If there are some failed paths, maybe you should try to re-enable them (quick and painless, can’t do no harm) with this one-liner :
root@lpar:/root# lspath|grep Failed | awk ‘{print “chpath -l “$2” -s enable -p “$3}’|ksh
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
paths Changed
root@lpar:/root# lspath | awk ‘{print $1″ ” $NF}’ |sort |uniq -c
18 Enabled fscsi0

18 Enabled fscsi1

 

You can also delete some paths before re-discovering them if you have some « missing » or « defined » paths :
lspath -F “name:connection:parent:path_status:status” | egrep “Defined|Missing” | awk -F : ‘{print “rmpath -l “$1” -p “$3” -w “$2″ -d”}’ | ksh

Fonte:  http://nixys.fr/blog/?tag=lspath

Anúncios
Categorias:AIX Tags:

Pegar wwwn no AIX

lscfg -vl fcs5 | grep ” Network Address”

Categorias:AIX Tags:

Como aumentar um volume usando veritas volume manager

Ver se tem espaço no DG

#vxassist -g DGGroup maxsize

1. Verify that there is enough space available to grow the volume.

vxassist maxgrow

example:
vxassist maxgrow dadb1-db15

2. Verify the filesystem type by checking /etc/vfstab

3. Grow the filesystem:

cd /usr/lib/vxvm/bin/
./vxresize -F -g +

example:
./vxresize -F vxfs -g dadbdg-hds voldb00 +16g

ssh lento

Solaris

# echo “GSSAPIAuthentication no” >> /etc/ssh/sshd_config
# echo “LookupClientHostnames no” >> /etc/ssh/sshd_config

svcadm restart ssh

Linux

add “UseDNS no” to /etc/ssh/sshd_config

service ssh restart

Categorias:Uncategorized Tags:

adiconar swap no AIX

para listar o uso de swap no AIX
lsps -a

para adicionar swap no AIX
smit chps

Categorias:AIX