Descobrindo a data de instalação do servidor ( Não oficial)

novembro 4, 2016 Deixe um comentário

Descobrindo a data de instalação do servidor ( Não oficial)

rpm -q –qf “%{INSTALLTIME:date}\n” basesystem

o Pacote basesystem não é atualizado.

Categorias:Uncategorized

migrando dados no AIX com dd e rsync

novembro 4, 2016 Deixe um comentário

desmontar FS
varyoffvg
exportvg

nohup dd if=/dev/rhdiskpower0 bs=100M | ssh -T -c arcfour root@x.x.x. “dd of=/dev/vpath13 bs=100M” >> /tmp/migr/rsynchdisk0.log &

Categorias:AIX

VMWare balloon driver linux

novembro 4, 2016 Deixe um comentário

VMWare balloon driver
Command:

vmware-toolbox-cmd stat balloon

or

lsmod | grep balloon
vmw_balloon 12542 0

mount -t debugfs none /sys/kernel/debug
cat /sys/kernel/debug/vmmemctl

Nota:
https://access.redhat.com/solutions/445113

Categorias:LINUX, VMWARE

mapeando o Device mapping sem o dmsetup

novembro 4, 2016 Deixe um comentário

lvdisplay|awk ‘/LV Name/{n=$3} /Block device/{d=$3; sub(“.*:”,”dm-“,d); print d,n;}’

Categorias:LINUX, LVM

Linux SWAP usage per process

setembro 28, 2016 Deixe um comentário

https://access.redhat.com/solutions/33375

script:

ps ax -o pid,args | grep -v ‘^ PID’|sed -e ‘s,^ *,,’ > /tmp/ps_ax.output
echo -n >/tmp/results

for swappid in $(grep -l Swap /proc/[1-9]*/smaps ); do
swapusage=0
for x in $( grep Swap $swappid 2>/dev/null |grep -v ‘\W0 kB’|awk ‘{print $2}’ ); do
let swapusage+=$x
done
pid=$(echo $swappid| cut -d’ ‘ -f3|cut -d’/’ -f3)
if ( [ $swapusage -ne 0 ] ); then
echo -ne “$swapusage kb\t\t” >>/tmp/results
egrep “^$pid ” /tmp/ps_ax.output |sed -e ‘s,^[0-9]* ,,’ >>/tmp/results
fi
done

echo “top swap using processes which are still running:”
sort -nr /tmp/results | head -n 10

Categorias:Uncategorized

Cpu usage diagnose

Top 10 processes most recently on the CPU, generally this is USer time
# ps -fe | sort -nk4 | tail

Top 20 kernel processes most recently on the CPU, generally this is SYstem time
# ps -fk | sort -nk4 | grep -v -e wait -e sched -e swapper | tail -22

Biggest Kernel offenders I see are generally, lrud, j2pg, vtiol.
LRUD = Scanning for free memory and freeing pages. Can be tuned.
J2PG = I think is something to do with JFS2 pages. Maybe something to do
with seaching the JFS2 cache for pages and/or reading JFS2 pages (pageIn/Out).
VTIOL = Something to do with offloading iodones from the adapter to the CPU.

# Top 20 Kernel and User processes who have consumed the most CPU since process started.
# ps guw | head -22

Categorias:AIX, Miscelânea, Performance

gerenciamento de discos solaris.

março 22, 2016 Deixe um comentário

Solaris – How to Scan FC LUNS and SCSI Disks ?

Categorias:Solaris