martes, 24 de noviembre de 2009

Como solucionar el problema de mediaserver offline



1) La maquina server1 se le expiro la licencia de NB. Se agrego la licencia tanto en el Media server como en el Masterserver, pero la maquina seguia apareciendo como:
server1 654000 OFFLINE

2) Se trato de activar el mediaserver mediante el comando:
#vmoprcmd -activate_host -h server1 //Desde el Master
Pero al generar este comando presento un error en el demonio de VM del media server.

3) Ingrese al media server y active el demonio vmd, y debe quedar asi:


4) Despues de activar el demonio se debe volver a lanzar el comando.

martes, 17 de noviembre de 2009

Como validar el WWN de las hba en un HOST


1. Con el comando #cfgadmin -a
2. Ó en el Switch Brocade puedo encontrar:

jueves, 12 de noviembre de 2009

miércoles, 11 de noviembre de 2009

Como subir o bajar el NOM (Veritas Netbackup Operator Manager)

IMPORTANTE: En el master server se debe encontra activo el demonio "nbsl", para que el NOM se conecte a este y logre gestionar toda la plataforma

1. Ingresamos a la ruta donde se encuentra el demonio que sube todos los servicios del NOM.

root@servidor1 #cd /opt/VRTSnom/bin

2. Miramos el status del demonio.
root@servidor1 #./nom_server status

Veritas NOM processes
---------------------
UID PID PPID C STIME TTY TIME CMD
root 1278 1 0 Oct 02 ? 0:00 /opt/VRTSpbx/bin/pbx_exchange
root 1321 1 0 Oct 02 ? 0:02 /opt/VRTSat/bin/vxatd
root 1526 1 0 Oct 02 ? 515:34 ./NOM_dbsrv -o /opt/VRTSnom/logs/nomdbsrv.log @/opt/VRTSnom/var/global/nomserve
root 1616 1 0 Oct 02 ? 3296:20 /opt/VRTSnom/bin/VRTSnomd -Xmx512m -classpath /opt/VRTSjre/jre1.5/lib/tools.jar
root 1719 1 0 Oct 02 ? 5687:45 /opt/VRTSjre/jre1.5/bin/java -Dvrtsat.libpath=/opt/VRTSat/lib -Dvrtsweb.home=/o

3. Detenemos el servicio
root@servidor1 # ./nom_server stop
Stopping Veritas NOM Web Server
Web application "nom" shutdown successfully
Stopping Veritas NOM Server
Stopping VRTSnomd (15) ...
stopping the NOM Database Server
Adaptive Server Anywhere Stop Engine Utility Version 9.0.2.3323

4. Iniciamos nuevamente el servicio

root@servidor1 # ./nom_server start
Starting Veritas NOM Server
Starting NOM database
NOM Database Server started (pid 3060)
The following users have been Authorized for access in PBX:
Auth User:0 : root
starting VRTSnomd...
VRTSnomd started, pid = 3099
Starting Veritas NOM Web Server
Starting the web server.....done.
Web Application "nom" started successfully

Veritas NOM processes
---------------------
UID PID PPID C STIME TTY TIME CMD
root 1278 1 0 Oct 02 ? 0:00 /opt/VRTSpbx/bin/pbx_exchange
root 1321 1 0 Oct 02 ? 0:03 /opt/VRTSat/bin/vxatd
root 3060 1 0 10:56:29 ? 0:18 ./NOM_dbsrv -o /opt/VRTSnom/logs/nomdbsrv.log @/opt/VRTSnom/var/global/nomserve
root 3099 1 8 10:56:38 pts/2 0:30 /opt/VRTSnom/bin/VRTSnomd -Xmx512m -classpath /opt/VRTSjre/jre1.5/lib/tools.jar
root 3162 1 1 10:56:46 pts/2 0:55 /opt/VRTSjre/jre1.5/bin/java -Dvrtsat.libpath=/opt/VRTSat/lib -Dvrtsweb.home=/o

Como Montar un ISO en Solaris

1. Primero debemos montar el iso y que quede como unidad virtual.

lofiadm -a /image/NBU65/dvd2/NBU65_DVD2.iso

2. Ahora montamos la unidad virtual en una ruta fisica
mount -F hsfs -o ro /dev/lofi/1 /mnt/dvd2/

3. Ahora podemos ingresar al directorio donde quedo montado el dispositivo virtual.
cd /mnt/dvd2

Lo anterior solamente era para que se pueda ver sobre la maquina que tengo el iso. Ahora tengo que compartirlo por NFS para que cualquier maquina lo pueda utilizar. Para ello hacemos lo siguiente:

4. Configurarmos el file system para que pueda ser accedido via NFS:
share -F nfs -o ro /mnt/dvd2/

5. Validamos que si realmente se este compartiendo:
share

RESOURCE SERVER ACCESS TRANSPORT
masterserver2:/backup masterserver2 - -
masterserver2:/backup_proxy masterserver2 - -
masterserver2:/bkOracle masterserver2 - -
masterserver2:/image masterserver2 - -
masterserver2:/pva masterserver2 - -
masterserver2:/export/srt/Solaris_10 masterserver2 - -
masterserver2:/mnt/dvd2 masterserver2 - -

En este momento vemos que si se esta compartiendo por NFS el file system /mnt/dvd2.

Ahora vamos a la maquina cliente donde queremos hacer uso de ese file system compartido (ej: masterserver1).

6. Encontrandonos dentro de la maquina cliente montamos el nfs que se encuentra en masterserver2 asi:
mount -F nfs -o ro masterserver2:/mnt/dvd2 /mnt/dvd2

Teniendo en cuenta que anteriormente debimos haber creado el file system /mnt/dvd2 en la maquina cliente.

7. Listo ya podemos utilizar la informacion que se encuentra actualmente montada sobre masterserver2.

martes, 10 de noviembre de 2009

Instalacion y configuracion OpenVpn Opensolaris

Como Instalar OpenVPN en OpenSolaris x86 b79 32/64 bits

Este es el proceso empleado para instalar openvpn OpenSolaris 11.06

Primero debemos instalar las dependencias:

pkg install SUNWgcc


Descargar las fuentes de tun/tap.

cd /usr/local/src
wget http://www.whiteboard.ne.jp/~admin2/tuntap/source/tuntap/tuntap.tar.gz
tar xvfz tuntap.tar.gz
chown -R root:root tuntap
cd tuntap

Cambiar la configuracion del Makefile.in

LDFLAGS = -melf_x86_64
...
modules: tun.o tap.o
$(LD) $(LDFLAGS) -r -o tun tun.o
$(LD) $(LDFLAGS) -r -o tap tap.o


./configure
make

Configurar tun.

# devfsadm –i tun


Validar los mensajes del syslog.

#dmesg

Instalar LZO para compresion en Tiempo Real:

# wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.03.tar.gz

# gzcat lzo-2.03.tar.gz | tar xvf lzo-2.03.tar.gz

# gzcat lzo-2.03.tar.gz | tar xvf -

# cd lzo-2.03

# ./configure

# make

# make install



Instalar OpenVPN.

wget http://openvpn.net/release/openvpn-2.0.9.tar.gz

# gzcat openvpn-2.0.9.tar.gz | tar xvf –

# cd openvpn-2.0.9

##### ./configure --disable-lzo # Para deshabilitar compresion de lzo

# ./configure --with-lzo-lib=/usr/local/lib

# make

# make install

Crear un archivo de start/stop para subir el servicio automaticamente:

#!/bin/bash
case "$1" in
'start')
echo "Starting Openvpn"
nohup /usr/local/sbin/openvpn --config /etc/openvpn/pegasus.conf --writepid /var/run/openvpnd.pid &
;;

'stop')
echo "Stoping Openvpn"
if [ -f /var/run/openvpnd.pid ]; then
PID=`cat /var/run/openvpnd.pid`
kill -9 $PID
ifconfig tun0 unplumb
fi
;;

*)
echo "Usage: $0 { stop | start }"
exit 1
;;
esac

Crear el archivo de configuracion similiar a:

client
dev tun
# tun-mtu 1500
tun-mtu 1434
proto udp
#remote 201.228.144.5 1194
remote 10.201.136.36 1194

ca /etc/openvpn/ca.crt
cert /etc/openvpn/pegasus.crt
key /etc/openvpn/pegasus.key
ping 30
ping-exit 66
verb 6
mute 20
comp-lzo

viernes, 6 de noviembre de 2009

Aderir una nueva licencia de NB para un cliente

//En el archivo de licencias buscamos la siguiente parte de texto:

NetBackup Eval Keys Hard End Date of 12/31/2009

NetBackup 6.5 Evaluation License (posted 10/22/09)

NetBackup Server,Cross Platform,Enterprise Server,v6.5, 60-Day Evaluation License

OENN-2WDG-TV2N-XPRO-6OCU-8LGK-HM77-HHHP-PP36 //Esta es la licencia

//Ahora aplicamos la licencia estando sobre la maquina: (Ejemplo sg-des-ccol10-bck)
#/usr/openv/netbackup/bin/admincmd/get_license_key


License Key Utility
-------------------

A) Add a License Key
D) Delete a License Key
F) List Active License Keys
L) List Registered License Keys
H) Help
q) Quit License Key Utility


Enter a letter: A

Enter license key: OENN-2WDG-TV2N-XPRO-6OCU-8LGK-HM77-HHHP-PP36

OENN-2WDG-TV2N-XPRO-6OCU-8LGK-HM77-HHHP-PP36:
Evaluation NetBackup Enterprise Server Base product with the following features enabled:
PureDisk Remote Office
PureDisk Option
SAN Client
PureDisk MS Exchange Agent
Enterprise Vault Agent
PureDisk MS SQL Server Agent
Flexible Disk Option
OpenStorage Disk Option
NAS SnapVault Option
Virtual Tape Option
Bare Metal Restore
Encryption
Open File Backup
Remote Client Support
Robotic Library Sharing Support
Remote Media Server Support
Microsoft RSM Robotic Libraries
ADIC DAS/SDLC Robotic Libraries
IBM ATL Robotic Libraries
Fujitsu LMF Robotic Libraries
StorageTek ACS Robotic Libraries
Snapshot Client
MS SharePoint Agent
Inline Tape Copy
Vault
Snapshot Client
GDM Managed Server
Library Based Tape Drives
Additional Drives/Robotics
DataStore
Encryption (Legacy DES 56-bit)
Encryption (Legacy DES 40-bit)
SAP extension
SQL-Backtrack extension
Sybase extension
Informix extension
Oracle extension
Lotus Notes extension
DB2 extension
MS SQL Server extension
MS Exchange extension
Advanced Reporting Option
Shared Storage Option
Global Data Manager
NDMP
EMC
Additional clients
has been registered.



License Key Utility
-------------------

A) Add a License Key
D) Delete a License Key
F) List Active License Keys
L) List Registered License Keys
H) Help
q) Quit License Key Utility


Enter a letter: Q
#

miércoles, 4 de noviembre de 2009

Como validar la licencia de NB instalada en un cliente?

#cd /usr/openv/netbackup/bin/admincmd/
#./bpminlicense -verbose
OENR-9DSF-GEVB-P6C4-PZX6-OG9S-E777-GGEP-PP8P OHN6-PRDN-P3ZO-PD2O-SFGU-N3Z3-WBNK-SO7Y-777S-S6P
file version = 0x05000000
time added = 0x4a9fd672 Thu Sep 03 09:45:06 2009
hostname = sg-des-ccol10-bck
product ID = 6 NetBackup Enterprise Server
serial number = 0
key version = 0x05000000
count = 0
server platform = 0 Any platform
client platform = 0 Any platform
server tier = 10 NetBackup Enterprise Server
client tier = 0 No tier
license type = 0 Time limited demonstration
Site ID = 4095 Unknown site: 4095
Expiration = Expired Tue Nov 03 00:00:00 2009 ///OJO: EXPIRO LA LICENCIA!!!!
Firm Expiration = Not expired Mon Nov 30 00:00:00 2009
Feature ID = 86 PureDisk Remote Office -
Feature ID = 85 PureDisk Option -
Feature ID = 84 SAN Client -
Feature ID = 83 PureDisk MS Exchange Agent -
Feature ID = 81 Enterprise Vault Agent -
Feature ID = 80 PureDisk MS SQL Server Agent -