miércoles, 27 de enero de 2010

Expandir Zpool - Staging01

1) Actualmente en la maquina se encuentra el siguiente zpool:
root@masterserver # zpool status staging01
pool: staging01
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
staging01 ONLINE 0 0 0
c5t203400A0B829E548d1 ONLINE 0 0 0

//errors: No known data errors

root@masterserver # zfs list
NAME USED AVAIL REFER MOUNTPOINT
staging01 393G 95.7G 28.5K /staging01
staging01/disk01 172G 95.7G 172G /staging01/disk01
staging01/disk02 219G 95.7G 219G /staging01/disk02
staging01/disk03 1.82G 95.7G 1.82G /staging01/disk03

Este es actualmente de 500GB

2) Para expandirlo debemos de dejar el nuevo dispositivo libre con una sola particion:
root@masterserver # format
Searching for disks...done

c5t203400A0B829E548d0: configured with capacity of 499.98GB


AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
1. c5t203400A0B829E548d0
/pci@1f,700000/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b829e548,0
2. c5t203400A0B829E548d1
/pci@1f,700000/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b829e548,1
Specify disk (enter its number): 1
selecting c5t203400A0B829E548d0
[disk formatted]
Disk not labeled. Label it now? y


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> p


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> p
Current partition table (default):
Total disk cylinders available: 63998 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 15 128.00MB (16/0/0) 262144
1 swap wu 16 - 31 128.00MB (16/0/0) 262144
2 backup wu 0 - 63997 499.98GB (63998/0/0) 1048543232
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 32 - 63997 499.73GB (63966/0/0) 1048018944
7 unassigned wm 0 0 (0/0/0) 0

partition> q

### COMO NOS DAMOS CUENTA EN EL NUEVO VOLUMEN VEMOS QUE HAY UNA PARTICION 0, 1, Y 6. VAMOS A LIMPIARLAS Y A DEJAR SOLAMENTE LA 2 "Backup":



FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> disk

AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
1. c5t203400A0B829E548d0
/pci@1f,700000/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b829e548,0
2. c5t203400A0B829E548d1
/pci@1f,700000/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b829e548,1
Specify disk (enter its number)[2]: 1
selecting c5t203400A0B829E548d0
[disk formatted]
format> p


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> p
Current partition table (default):
Total disk cylinders available: 63998 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 15 128.00MB (16/0/0) 262144
1 swap wu 16 - 31 128.00MB (16/0/0) 262144
2 backup wu 0 - 63997 499.98GB (63998/0/0) 1048543232
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 32 - 63997 499.73GB (63966/0/0) 1048018944
7 unassigned wm 0 0 (0/0/0) 0

partition> 6
Part Tag Flag Cylinders Size Blocks
6 usr wm 32 - 63997 499.73GB (63966/0/0) 1048018944

Enter partition id tag[usr]:
Enter partition permission flags[wm]:
Enter new starting cyl[32]:
Enter partition size[1048018944b, 63966c, 63997e, 511728.00mb, 499.73gb]: 0
partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 15 128.00MB (16/0/0) 262144

Enter partition id tag[root]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[262144b, 16c, 15e, 128.00mb, 0.12gb]: 0
partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 16 - 31 128.00MB (16/0/0) 262144

Enter partition id tag[swap]:
Enter partition permission flags[wu]:
Enter new starting cyl[16]:
Enter partition size[262144b, 16c, 31e, 128.00mb, 0.12gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 63998 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 63997 499.98GB (63998/0/0) 1048543232
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

### GUARDAMOS LOS CAMBIOS Y SALIMOS:

partition> label
Ready to label disk, continue? y

partition> q


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> q


3) Ahora ya que dejamos libre el nuevo volumen vamos a adicionarlo en el zpool "staging01", el nuevo volumen tiene por wwn c5t203400A0B829E548d0: Como el nombre del zpool es staging01, le decimos que a ese zpool vamos a adicionarle el dispositivo anteriormente mensionado:

root@bksrv01 # zpool add staging01 c5t203400A0B829E548d0

# VALIDAMOS QUE EL DISPOSITIVO APARESCA EN EL ZPOOL:

root@masterserver # zpool status staging01
pool: staging01
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
staging01 ONLINE 0 0 0
c5t203400A0B829E548d1 ONLINE 0 0 0
c5t203400A0B829E548d0 ONLINE 0 0 0

errors: No known data errors

## VERIFICAMOS QUE REALMENTE SE VEA LA ESPACION A NIVEL DEL STAGING:

root@masterserver # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 17G 8.9G 7.5G 55% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 907M 1.5M 906M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
17G 8.9G 7.5G 55% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
17G 8.9G 7.5G 55% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c0t0d0s3 9.8G 2.5G 7.2G 26% /var
swap 906M 104K 906M 1% /tmp
swap 906M 48K 906M 1% /var/run
/dev/dsk/c0t0d0s4 39G 36G 3.1G 93% /opt
staging01 977G 28K 584G 1% /staging01
staging01/disk01 977G 172G 584G 23% /staging01/disk01
staging01/disk02 977G 219G 584G 28% /staging01/disk02
staging01/disk03 977G 1.8G 584G 1% /staging01/disk03

miércoles, 6 de enero de 2010

Error instalando NB 6.5 sobre RedHat 4 x86

Cuando se esta realizando la instalacion del cliente de veritas netbackup sobre una maquina RedHat 4 (Kernel 2.6) presenta problemas ya que la maquina instala todos los paquetes + binarios pero no instala los demonios de veritas sobre el xinetd. Cuando sucede esto hay que copiar estos archivos (vopied,vnetd,bpjava-msvc,bpcd) de otra maquina asi sea de 64bits y pegarlos en /etc/xinetd.d/, y despues se reinicia el servicio /etc/inet.d/xinedt restart. Ademas hay que crear el archivo de configuracion de NB sobre el cliente. Para esto creamos el siguiente archivo:

#vi /usr/openv/netbackup/bp.conf
SERVER = bksrv01
CLIENT_NAME = omega-bck

OJO: Ademas de agregar estos dos hostname sobre el archivo hosts del cliente.

Alli ya se puede lanzar el JnbSA. Y listo.


NOTA: Cuando una instalacion se un cliente sobre linux o solaris funciona bien, el mismo debe mostrar la version del sistema operativo sobre el cual se esta instalando, si muestra un menu para que el admin escoja la version de sistema operativo este tendra el error que aqui se explica.

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.