A general system error occured: failed to initiate VMotion dest (vim.fault.AlreadyExists)

A general system error occured: failed to initiate VMotion dest (vim.fault.AlreadyExists)

Errore generato quando prova a spostare una virtual machine attraverso il vmotion, generato dal fatto che per un qualsiasi motivo la macchina e’ registrata sia nell’host di provenienza che nell’host di destinazione quindi:

Sull’host di destinazione:

vmware-cmd -l

e a video compare l’elenco delle macchine virtuali registare su quell’host esx.

poi :

vmware-cmd -s unregister /vmfs/volumes/48d14f7b-5940d598-fca4-00151780d741/xxxx/xxxx.vmx

per eliminare la registrazione sull’host di destinazione

A general system error occured: failed to initiate VMotion dest (vim.fault.AlreadyExists)

Log rotate squid

Basandosi su Logrotate:

Assicurarsi che sia settato il paramentro logfile_rotate 0 in squid.conf
Poi andare a modificare/visionare la configurazione sotto :

/etc/logrotate.d/squid

nel mio caso con poco traffico loggato faccio una rotazione mensile :

/var/log/squid/access.log {
monthly
rotate 12
copytruncate
compress
notifempty
missingok
}
/var/log/squid/cache.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}

/var/log/squid/store.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
postrotate
/usr/sbin/squid -k rotate
endscript
}

Log rotate squid

Advanced o Enterprise RedHat 4

Per verificare la versione di Redhat come indicato precendentemente bisogna visulizzare il file :

cat /etc/redhat-release

Mentre per distiguere che se quello che e’ installato e’ una versione advanced o enterprise :

cat /var/lib/supportinfo

In cui andremo a visualizzare i requisiti massimi e minimi della versione di redhat

Per avere uno scheda della situazione:

https://www.redhat.com/rhel/compare/

Bye

Advanced o Enterprise RedHat 4

Send mail with AIX

Configurazione sendmail su AIX per inviare mail utilizzando come smtp EXCHANGE

Inserire l’hostname del server EXCHANGE in /etc/sendmail.cf sul server AIX :

======
# “Smart” relay host (may be null )
DS
=======

Riavviare i servizi di sendmail :

topsrc -s sendmail (to stop it)
startsrc -s sendmail (to start it)

Effettuare una prova :

df -k | mail -s “Stato del file system” xxxx@xxx.xx

Send mail with AIX

Modifica VLAN ID e abilitazione CDP

Con esxcfg-vswitch vSwitch1 -p “Service Console” -v 10
dove per -v = vlan modifico la vlan id del portgroup “Service Console” sullo switch virtuale vSwitch1

Con “esxcfg-vswitch -B both vSwitch0” si abilita il cdp anche in avertise, così dallo switch Cisco è visibile la vm e la vmnic collegata.

formigine_sw_02#sh cdp nei
Capability Codes: R – Router, T – Trans Bridge, B – Source Route Bridge
S – Switch, H – Host, I – IGMP, r – Repeater, P – Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID
GIARDINI-01 Fas 0/12 149 R S I 2801 Fas 0/0
ap-formigine Fas 0/28 149 T AIR-AP123 Fas 0
formigine_sw_01.neg.estense.coop.it
Fas 0/24 129 S I WS-C2950- Fas 0/24
vm9960a Fas 0/17 161 S VMware ES vmnic0
vm9960b Fas 0/16 176 S VMware ES vmnic1

Modifica VLAN ID e abilitazione CDP