16 junio 2008

RCP, RSH

En el /root/.rhosts
NODOA

En Yast, Network Services:
RSYNC, TELNET, EXEC, LOGIN, SHELL

En /etc/hosts.equiv:
NODOA root

En /etc/hosts
IP NODOA.DOMINIO NODOA

Con esto ya podemos tener acceso remoto al equivo

21 abril 2008

Clonado disk to disk

Para clonar un disco en linux...

dd if=/dev/hda of=/dev/hdb bs=1M

--> De disco HDA a HDB

dd if=/dev/hda of=imagen.iso bs=1M

--> De disco a imagen

dd if=imagen.iso of=/dev/hdb bs=1M

--> De imagen a disco

15 abril 2008

Heartbeat 1

Heartbeat v1
----------------------------------

/etc/ha.d/ha.cf
^^^^^^^^^^^^^^^^^^^^^^^^

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 15
warntime 5
initdead 60
udpport 694
bcast eth2
auto_failback on
watchdog /dev/watchdog
# ^- modprobe softdog
node Debian1
node Debian2


/etc/ha.d/haresources
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Debian1 \
IPaddr::192.168.100.1 \
Filesystem::/dev/sda4::/test::ext3::rw


/etc/ha.d/authkeys
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

auth 1
1 md5 password



** Dispositivo watchdog con insmod softdog
** authkeys necesita tener 600 (RO)

Configuración red Debian

/etc/network/interfaces


auto eth0
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
dns-search xxx