HW clock

Ecco alcuni comandi per gestire l'HW clock di un server LINUX :

hwclock –show

Visualizza l'hwclock del server

hwclock –hctosys

sincronizza l'ora del sistema operativo con l'HW clock

hwclock –systohc

sincronizza l' hw clock con l'ora del sistema operativa

HW clock

Ip alias su AIX

Come vedere se e' presente un IP Alias

root@candy>lsattr -El en5 -a netaddr
netaddr 10.56.x.5 Internet Address True
root@candy>lsattr -El en5 -a netaddr -a alias4
netaddr 10.56.x.5 Internet Address True
alias4 10.56.x.100,255.255.252.0 IPv4 Alias including Subnet Mask True
root@candy>

Come aggiungere un ip alias :

ifconfig en5 130.35.13x.xx netmask 255.255.252.0 alias

Come rimuovere un ip alias :

ifconfig en5 delete <ip alias>

Per chi vuole utilizzare smitty :

smitty inetalias

Ip alias su AIX

Allargare un file system su un Logical Volume Linux

– Aggiungere un HD al server
– Riavviare il server in maniere che veda il disco
– fdisk -l verficare il nome del device nel mio caso /dev/sdc
– vgdisplay e verficare il nome del volume group nel mio caso VolGroup00
– pvcreate /dev/sdc
– vgextend VolGroup00 /dev/sdc

Con il seguente commando estendo il logical volume

[root@xxxxxx ~]# lvextend -L+10G /dev/VolGroup00/LogVol01
Extending logical volume LogVol01 to 33.81 GB
Logical volume LogVol01 successfully resized

E con il seguente commando allargo il file system senza fare l'umount

ext2online -d -v /var

Allargare un file system su un Logical Volume Linux