Buscador

Mostrando entradas con la etiqueta Solaris. Mostrar todas las entradas
Mostrando entradas con la etiqueta Solaris. Mostrar todas las entradas

miércoles, 9 de febrero de 2011

Herramienta SAR


En primer lugar, tenemos una herramienta para poder interpretar todos los resultados. Esta herramienta se llama: ksar.

El nombre sar proviene de las siglas de "system activity report" (informe de la actividad del sistema). En Linux se encuentra normalmente en el paquete sysstat. El paquete sysstat incluye programas y scripts para recopilar y mostrar información sobre el rendimiento del sistema, generando informes detallados. Este conjunto de programas puede resultar de mucha utilidad a la hora de detectar cuellos de botella y para hacernos una idea de cómo se utiliza el sistema a lo largo del día

Recopilar datos sobre el rendimiento

El programa que se ocupa de recopilar la información se llama sadc (system activity data collector o recolector de datos de la actividad del sistema). Obtiene su información, principalmente, del kernel, a través del sistema de archivos virtual en /proc. Después guarda los datos en un fichero (uno por día con nombre /var/log/sa/saDD donde DD es el día del mes.
El paquete incluye dos shell scripts. El primer script, sa1, recopila datos de forma regular, mientras que el script sa2 se utiliza para crear los informes resumidos (uno por día en /var/log/sa/sarDD. Ambos scripts se ejecutan usando cron. En Red Hat Enterprise estos scripts se añaden automáticamente a las tareas de cron de la siguiente forma:
# ejecuta la herramienta de recopilación de datos cada 10 minutos
*/10 * * * * root /usr/lib/sa/sa1 1 1
# genera un informe diario del rendimiento de los procesos a las 23:53
53 23 * * * root /usr/lib/sa/sa2 -A

  • Cubre la mayoría de las áreas del sistema, podemos cargar algún día concreto con la opción –f /var/log/sa/saxx :
    • Uso de la CPU (opción -u, opción por defecto)
[root@xxx~]# sar -u 2 5
Linux 2.6.20.21-default (lvcpd1lx)      02/09/2011

12:29:01 PM       CPU     %user     %nice   %system   %iowait    %steal     %idle
12:29:03 PM       all      0.31      0.00      0.16      0.00      0.00     99.53
12:29:05 PM       all      0.91      0.00      0.37      0.03      0.00     98.69
12:29:07 PM       all      0.81      0.00      0.37      0.00      0.00     98.81

12:29:07 PM       CPU     %user     %nice   %system   %iowait    %steal     %idle
12:29:09 PM       all      0.56      0.00      0.22      0.00      0.00     99.22
12:29:11 PM       all      0.12      0.00      0.09      0.00      0.00     99.78
Average:          all      0.54      0.00      0.24      0.01      0.00     99.21
[root@xxx ~]# sar -u
Linux 2.6.20.21-default (lvcpd1lx)      02/09/2011

12:00:01 AM       CPU     %user     %nice   %system   %iowait    %steal     %idle
12:10:01 AM       all      0.10      0.01      0.07      0.70      0.00     99.12
12:20:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
12:30:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
12:40:01 AM       all      0.09      0.01      0.06      0.00      0.00     99.84
12:50:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
01:00:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
01:10:02 AM       all      0.09      0.01      0.06      0.01      0.00     99.83
01:20:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
01:30:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
01:40:01 AM       all      0.19      0.01      0.13      0.09      0.00     99.59
01:50:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
02:00:01 AM       all      0.07      0.01      0.06      0.00      0.00     99.86
02:10:01 AM       all      0.09      0.01      0.06      0.02      0.00     99.82
02:20:01 AM       all      2.90      0.01      0.53      0.58      0.00     95.98
02:30:02 AM       all      6.14      0.01      1.02      1.34      0.00     91.48
02:40:01 AM       all      6.03      0.01      0.72      1.50      0.00     91.74
02:50:01 AM       all      4.48      0.01      0.63      1.03      0.00     93.84
03:00:01 AM       all      0.17      0.01      0.22      0.53      0.00     99.07
03:10:01 AM       all      0.90      0.01      0.29      1.01      0.00     97.79
03:20:01 AM       all      0.08      0.01      0.18      0.05      0.00     99.68
03:30:01 AM       all      0.08      0.01      0.19      0.02      0.00     99.70
03:40:01 AM       all      0.10      0.01      0.18      0.03      0.00     99.68
    • Colas de procesos y carga del sistema (opción -q)
    • Estadísticas por proceso (opción-x [PID | ALL])
    • Uso de memoria y espacio de swap (opción -r)
[oracle@m9 ~]$ sar -r
Linux 2.6.27.25-78.2.56.fc9.x86_64 (m9)         07/06/2010
 
12:00:01 AM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad
12:10:01 AM     34860   4029104     99.14     32620   1324864  10026080    215256      2.10     10328
12:20:01 AM     40468   4023496     99.00     34092   1324428  10026460    214876      2.10     10292
12:30:01 AM     53092   4010872     98.69     37300   1301612  10026096    215240      2.10     10520
12:40:01 AM     57340   4006624     98.59     40412   1298040  10026004    215332      2.10     10580
12:50:01 AM     53336   4010628     98.69     42880   1299500  10025988    215348      2.10     10564
01:00:01 AM     84828   3979136     97.91     43588   1263016  10026028    215308      2.10     10224
01:10:01 AM    237544   3826420     94.15     13268   1156804  10017812    223524      2.18     10268

    • Estadísticas de memoria (-R), de paginación (-B) y de swapping (-W)
[oracle@m9 ~]$ sar -B -f /var/log/sa/sa01
Linux 2.6.27.25-78.2.56.fc9.x86_64 (m9)         07/01/2010
 
12:00:01 AM  pgpgin/s pgpgout/s   fault/s  majflt/s  pgfree/s pgscank/s pgscand/s pgsteal/s    %vmeff
12:10:01 AM    282.97   1637.97   2605.06      1.03   1127.19    230.42      2.24    220.26     94.67
12:20:01 AM     85.98   2227.14   2435.13      0.05   1127.23    220.21      1.49    211.45     95.38
12:30:01 AM     43.20   1812.33   2220.57      0.02    986.01    167.66      2.39    155.49     91.44
12:40:01 AM     38.19    174.71   2520.40      0.13    974.44     39.01      0.16     33.15     84.65
12:50:01 AM     33.05    126.10   2526.58      0.00    939.17     19.81      0.26     19.49     97.08
01:00:01 AM      0.94    117.49   2297.94      0.00    842.23      7.13      0.00      6.75     94.68
01:10:01 AM   8517.81   7054.91   2831.65      4.23   5114.19   3894.75     10.41   3802.94     97.38
01:20:01 AM    109.02    129.82   2514.74      0.18    920.41      0.00      0.00      0.00      0.00
01:30:01 AM      3.95    116.88   2320.21      0.02    857.86      0.00      0.00      0.00      0.00
 
 [oracle@m9 ~]$  sar -W -f /var/log/sa/sa01
Linux 2.6.27.25-78.2.56.fc9.x86_64 (m9)         07/01/2010
 
12:00:01 AM  pswpin/s pswpout/s
12:10:01 AM      2.25      0.17
12:20:01 AM      0.11      0.38
12:30:01 AM      0.06      0.95
12:40:01 AM      0.26      0.11
12:50:01 AM      0.01      0.14
01:00:01 AM      0.00      0.07
01:10:01 AM     15.60     33.04
01:20:01 AM      0.72      0.00
01:30:01 AM      0.13      0.00
01:40:01 AM      1.57      0.00
01:50:01 AM      1.22      0.00
02:00:01 AM      1.87      3.22
02:10:01 AM     12.91      0.06
    • Estadísticas de interrupciones (-I)
    • Estadísticas de red (-n)
 

martes, 1 de febrero de 2011

Gestores de Volumenes (2)



- Si queremos crear una nueva softpartition en MIRROR entre hard partitions, hacemos: 

root@ctm-inet2 # metainit d95 -p c1t2d0s0 4g =>el primer slide del disk
d95: Soft Partition is setup
root@ctm-inet2 # metattach d95 +16768b  => Ampliamos hasta un valor.
d95: Soft Partition has been grown
root@ctm-inet2 # metainit d96 -p c1t3d0s0 4g =>el primer slide del disk
d96: Soft Partition is setup
root@ctm-inet2 # metattach d96 +16768b (ampliamos el fs)
d96: Soft Partition has been grown
root@ctm-inet2 # metainit d97 1 1 d95 => creamos la primera pata
d97: Concat/Stripe is setup
root@ctm-inet2 # metainit d98 1 1 d96 => creamos la segunda pata
d98: Concat/Stripe is setup
root@ctm-inet2 # metainit d99 -m d97 => la opcion m marca que es mirror
d99: Mirror is setup
root@ctm-inet2 # metattach d99 d98 & => crea el mirror
[1] 10464
root@ctm-inet2 # d99: submirror d98 is attached

-Si queremos CONCATENAR o STRIPEAR dos soft partitions para tener mas espacio:

Creating a concatenated Metadevice :

#metainit    d0   3    1    /dev/dsk/c0t0d0s4 1 /dev/dsk/c0t0d0s4 1 /dev/dsk/c0t0d0s4 d0 – metadevice name
3 – Total Number of Slices
1 – Number of Slices to be added followed by slice name.
Creating a stripe of 32k interleave:
# metainit d10     1     2     c0t1d0s2     c0t2d0s2     -i   32k


          d0 – metadevice name
          1 – Total Number of Stripe
          2- Number of Slices to be added to stripe followed by slice name .
          -i chunks of data written alternatively on stripes 

-Creamos los fs:

root@xxx # newfs /dev/md/rdsk/d99
/dev/md/rdsk/d99: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/rdsk/d99: (y/n)? y
/dev/md/rdsk/d99:       8405376 sectors in 413 cylinders of 24 tracks, 848 sectors
        4104,2MB in 83 cyl groups (5 c/g, 49,69MB/g, 6016 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 102640, 205248, 307856, 410464, 513072, 615680, 718288, 820896, 923504,
 7436144, 7538752, 7641360, 7743968, 7846576, 7949184, 8051792, 8154400,
 8257008, 8359616

- Y montamos los fs y los ponemos en el arranque.

root@xxx # vi /etc/vfstab
"/etc/vfstab" 20 lines, 838 characters
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/md/dsk/d5  /dev/md/rdsk/d5 /var    ufs     1       no      -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/md/dsk/d30 /dev/md/rdsk/d30        /opt/web_apps   ufs     1       yes
/dev/md/dsk/d92 /dev/md/rdsk/d92        /exports        ufs     1       yes
/dev/md/dsk/d82 /dev/md/rdsk/d82       /metrosur       ufs     1       yes     -
/dev/md/dsk/d62 /dev/md/rdsk/d62        /opt/tivoli/TWS ufs     1       yes
/dev/md/dsk/d52 /dev/md/rdsk/d52        /opt/tivoli/tsm ufs     1       yes
sharefs         -       /etc/dfs/sharetab       sharefs -       no      -
/dev/md/dsk/d41 /dev/md/rdsk/d41        /glassfish ufs     1       yes     -
/dev/md/dsk/d99 /dev/md/rdsk/d99       /webstack1.5b ufs     1       yes     -                                                                               /dev/md/dsk/d89 /dev/md/rdsk/d89       /opt/webstackb ufs     1       yes     -
~

"/etc/vfstab" 21 lines, 996 characters

root@xxx # mkdir /webstack1.5b
root@xxx # mkdir /opt/webstackb
root@xxx # mount /opt/webstackb
root@xxx # mount /webstack1.5b



2) /dev/vx/dsk...   -> Veritas Volumen Manager (xxxx)

Los discos son cxtxdx, siendo controladora, target y lun. Tiene un software de multipath llamado DMP que aporta un unico camino de disco al filesystem.

Tenemos diferentes entornos:
      - Vea & ->  entorno gráfico
      Arranque automaticamente el script etc/rc2.d/S50isisd.
      Los comandos estan en la ruta /opt/VRTSob/bin/vxsvc
      Los logs residen en /var/vx/isis/vxisis.log
      Para confirmar que este corriendo y la versión: vxsvc -m / -v.
      - Linea de comandos
      - vxdiskadm -> menu de texto

- Para instalar, listar y testeo de las licencias: vxlicinst / vxlicrep / vxlictest. http://vlicense.veritas.com
- Para poder tener un disco con veritas volumen manager tenemos primero que inicializarlo, luego podremos  asignarle grupo de discos y por ultimo definir volumenes virtuales.(Se suele realizar con el menu de texto, opción 1).
- Para ver informacion de un grupo de Discos tales como espacio disponible en el vg o el espacio maximo que se puede ampliar un fs:

      bash-2.05# vxdg -g oracledg free
      DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
      oracledg01   c0t2d0s2     c0t2d0       47923200  23201664  -
      oracledg02   c0t3d0s2     c0t3d0       56311808  14813056  -
Nos dice el espacio libre en cada disco en bloque de 512. Hacemos que:
23201664 / 2 y /1024 = 11328,9375 mb libres!!!
- Para ampliar el fs si tenemos espacio:vxresize -g oracledg <volumen> +100m o +1g




- Para ver informacion del disco: vxdisk list
      root@xxx> vxdisk list
      DEVICE       TYPE            DISK         GROUP        STATUS
      c0t0d0s2     auto:sliced     y01          y            online
      c0t1d0s2     auto:sliced     y02          y            online
      c0t2d0s2     auto:cdsdisk    oracledg01   oracledg     online
      c0t3d0s2     auto:cdsdisk    oracledg02   oracledg     online
      c1t0d0s2     auto:sliced     -            -            online
      c1t1d0s2     auto:sliced     -            -            online
      c2t0d0s2     auto:sliced     -            -            online
      c2t1d0s2     auto:sliced     -            -            online

bash-2.05# vxdisk -s list
      Disk:   c0t0d0s2
      type:   auto
      flags:  online ready private autoconfig autoimport imported
      diskid: 1261152983.13.cajar
      dgname: y
      dgid:   1143540213.16.cajar
      hostid: cajar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3

      Disk:   c0t1d0s2
      type:   auto
      flags:  online ready private autoconfig autoimport imported
      diskid: 1213213076.13.cajar
      dgname: y
      dgid:   1143540213.16.cajar
      hostid: cajar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3

      Disk:   c0t2d0s2
      type:   auto
      flags:  online ready private autoconfig autoimport imported
      diskid: 1143446516.26.cajar
      dgname: oracledg
      dgid:   1143542211.26.cajar
      hostid: cajar
      info:   format=cdsdisk,privoffset=256,pubslice=2,privslice=2
     
      Disk:   c0t3d0s2
      type:   auto
      flags:  online ready private autoconfig autoimport imported
      diskid: 1143446509.23.cajar 
      dgname: oracledg
      dgid:   1143542211.26.cajar
      hostid: cajar
      info:   format=cdsdisk,privoffset=256,pubslice=2,privslice=2
     
      Disk:   c1t0d0s2
      type:   auto
      flags:  online ready private autoconfig noautoimport
      diskid: 1080902309.1200.gojar
      dgname: arraydg
      dgid:   1080902309.1203.gojar
      hostid: gojar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3

      Disk:   c1t1d0s2
      type:   auto
      flags:  online ready private autoconfig noautoimport
      diskid: 1080902357.1207.gojar
      dgname: arraydg
      dgid:   1080902309.1203.gojar
      hostid: gojar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3

      Disk:   c2t0d0s2
      type:   auto
      flags:  online ready private autoconfig noautoimport
      diskid: 1080902380.1211.gojar
      dgname: arraydg
      dgid:   1080902309.1203.gojar
      hostid: gojar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3

      Disk:   c2t1d0s2
      type:   auto
      flags:  online ready private autoconfig noautoimport
      diskid: 1080902404.1215.gojar
      dgname: arraydg
      dgid:   1080902309.1203.gojar
      hostid: gojar
      info:   format=sliced,privoffset=1,pubslice=4,privslice=3


- Ademas tenemos un script en /home/ieci que nos muestra en espacio libre de cada disco.
bash-2.05# ./mapadisco.ksh y01

    MAPA DEL DISCO y01
   ===========================
   +-----------------------------------------------------------------------------------+
   | SUBDISCO      | VOLUMEN        | OFFSET         | LENGTH (Blocks)|   LENGTH (MB)  |
   +-----------------------------------------------------------------------------------+
             y01-02|         rootvol|               0|        20973111|         10240.8|
             y01-01|         swapvol|        20973111|         6295232|         3073.84|
             y01-03|             var|        27268343|         4198392|            2050|
             y01-04|          patrol|        31466735|         2101552|         1026.15|
   ----- GAP ------|----------------|        33568287|         1790560|         874.297|
             y01-B0|         rootvol|        35358847|               1|     0.000488281|
   ----- GAP ------|----------------|        35358848|            4712|         2.30078|
   +-----------------------------------------------------------------------------------+


      Espacio ocupado en disco: 16.00 Gb
      Tamano del disco: 16.86 Gb
      Porcentaje de ocupacion: 94.00

- Los filesystems los podemos ver con un df -h.
- Para crear / borrar un volumen: vxassist -g <name_dg> make volume/ (remove volume) <tamaño>

- Para ver los caminos que tiene cada path:
bash-2.05# vxdisk path
      SUBPATH                     DANAME               DMNAME       GROUP        STATE
      c0t0d0s2                    c0t0d0s2             y01          y            ENABLED
      c0t1d0s2                    c0t1d0s2             y02          y            ENABLED
      c0t2d0s2                    c0t2d0s2             oracledg01   oracledg     ENABLED
      c0t3d0s2                    c0t3d0s2             oracledg02   oracledg     ENABLED
      c1t0d0s2                    c1t0d0s2             -            -            ENABLED
      c1t1d0s2                    c1t1d0s2             -            -            ENABLED
      c2t0d0s2                    c2t0d0s2             -            -            ENABLED
      c2t1d0s2                    c2t1d0s2             -            -            ENABLED

Solo una camino tenemos, y lo comprobamos con:

bash-2.05# vxdisk list c0t0d0s2
      Device:    c0t0d0s2
      devicetag: c0t0d0
      type:      auto
      hostid:    cajar
      disk:      name=y01 id=1261152983.13.cajar
      group:     name=y id=1143540213.16.cajar
      info:      format=sliced,privoffset=1,pubslice=4,privslice=3
      flags:     online ready private autoconfig autoimport imported
      pubpaths:  block=/dev/vx/dmp/c0t0d0s4 char=/dev/vx/rdmp/c0t0d0s4
      privpaths: block=/dev/vx/dmp/c0t0d0s3 char=/dev/vx/rdmp/c0t0d0s3
      version:   2.1
      iosize:    min=512 (bytes) max=2048 (blocks)
      public:    slice=4 offset=0 len=35363560 disk_offset=4712
      private:   slice=3 offset=1 len=4711 disk_offset=0
      update:    time=1261153026 seqno=0.6
      ssb:       actual_seqno=0.1
      headers:   0 248 
      configs:   count=1 len=3448
      logs:      count=1 len=522
      Defined regions:
       config   priv 000017-000247[000231]: copy=01 offset=000000 enabled
       config   priv 000249-003465[003217]: copy=01 offset=000231 enabled
       log      priv 003466-003987[000522]: copy=01 offset=000000 enabled
      Multipathing information:
      numpaths:   1
      c0t0d0s2        state=enabled

3)local1      -> ZFS (xxx -> tienen ambos tipos debido a que las antiguas 
maquinas necesitan la version de Solaris Volumen manager)

La idea es tener pooles de discos en los que se hacen zfs, estos zfs se disputan el espacio a no ser, que se establezcan quotas. Por lo tanto, ne es necesario ampliar.


root@xxx # zfs list
      NAME                      USED  AVAIL  REFER  MOUNTPOINT
      local0                   6.24G  32.9G  2.56G  /export
      local0/rman              3.69G  32.9G  3.69G  /local0/rman
      local1                    105G  28.8G    19K  none
      local1/explorers          322M  28.8G   322M  /local1/explorers
      local1/incoming          38.1G  28.8G  38.1G  /local1/incoming
      local1/software          64.4G  28.8G  64.4G  /local1/software
      local1/xvm               2.30G  28.8G  2.30G  /var/opt/sun/xvm
      local2                   73.2G  60.7G    18K  none
      local2/exports           73.2G  60.7G  73.2G  /local2/exports
      local3                   3.01G   265G    18K  none
      local3/exports           3.01G   265G    18K  none
      local3/exports/benasque  3.01G   265G  3.01G  /local3/exports/benasque

Sun Cluster 3.2(1)

La lista de comandos basicos son:

 ADMINISTRACIÓN DEL QUÓRUM (Para evitar la inconsistencia de los datos)
  • Agregar un dispositivo quórum SCSI # clquorum add device
  • Agregar un dispositivo quórum NAS # clquorum add -t netapp_nas -p filer=nasdevicename,lun_id=IDnumdevice\Nasdevice
  • Agregar un servidor al quórum # clquorum add -t quorumserver -p qshost=IPaddress, port=portnumber \quorumservername
  • Quitar un dispositivo del quórum # clquorum remove device 
Ejemplos:

root@bxxx1 # cldev list -v | grep d14
d14                 bxxx3:/dev/rdsk/c5t60060E800565B100000065B100000113d0
d14                 bxxx2:/dev/rdsk/c4t60060E800565B100000065B100000113d0
d14                 bxxx1:/dev/rdsk/c4t60060E800565B100000065B100000113d0
d14                 bxxx6:/dev/rdsk/c4t60060E800565B100000065B100000113d0

root@bxxx1 # clquorum list -v -> clquorum show + (vemos más información)
Quorum              Type
------              ----
d14                 shared_disk
bxxx1          node  -> servidor
bxxx2          node  -> servidor
bxxx3          node  -> servidor
bxxx6          node  -> servidor 

root@bxxx1 # clquorum status d14
=== Cluster Quorum ===
--- Quorum Votes by Device (current status) ---
Device Name       Present      Possible      Status
-----------       -------      --------      ------
d14                         3            3             Online 
Podemos pasar un quorum a disable (en modo manenimiento).

 ADMINISTRACIÓN DEL INTERCONECT (Para el heartbeat)
-          Añadir/Borrar interconnect:
#clinterconnect add/remove node1:ce0
#clinterconnect add/remove node1:ce1
 
-          Como lo tenemos switcheado tendremos que:
#clinterconnect add switch0
#clinterconnect add node1:ce0,switch0
#clinterconnect add switch1
#clinterconnect add node1:ce1,switch1
 
-         Hemos configurado el interconect, ahora tenemos que activarlo:
#clinterconnect enable node1:ce0,switch0@1
#clinterconnect enable node1:ce1, switch0@2

Lo hariamos por cada nodo, lo normal propagar la configuración:
#claccess allow -h node2


-         Para listar las interconect:

root@bxxx1 # clinterconnect status
=== Cluster Transport Paths ===
Endpoint1                Endpoint2                Status
---------                ---------                ------
bxxx1:nxge2028007   bxxx2:nxge2028007   Path online
bxxx1:nxge2028007   bxxx6:nxge2028003   Path online
bxxx1:nxge2029000   bxxx2:nxge2029000   Path online
bxxx1:nxge2029000   bxxx6:nxge2029007   Path online
bxxx1:nxge2028007   bxxx3:nxge2028003   Path online
bxxx1:nxge2029000   bxxx3:nxge2029007   Path online
bxxx2:nxge2029000   bxxx6:nxge2029007   Path online
bxxx2:nxge2028007   bxxx3:nxge2028003   Path online
bxxx2:nxge2029000   bxxx3:nxge2029007   Path online
bxxx2:nxge2028007   bxxx6:nxge2028003   Path online
bxxx3:nxge2029007   bxxx6:nxge2029007   Path online
bxxx3:nxge2028003   bxxx6:nxge2028003   Path online
root@bxxx1 # clinterconnect show

=== Transport Cables ===

Transport Cable: bxxx1:nxge2029000,switch1@1
  Endpoint1:                          bxxx1:nxge2029000
  Endpoint2:                          switch1@1
  State:                                           Enabled

Transport Cable: bxxx1:nxge2028007,switch2@1
  Endpoint1:                          bxxx1:nxge2028007
  Endpoint2:                          switch2@1
  State:                                           Enabled

Transport Cable: bxxx2:nxge2029000,switch1@2
  Endpoint1:                          bxxx2:nxge2029000
  Endpoint2:                          switch1@2
  State:                                           Enabled

Transport Cable: bxxx2:nxge2028007,switch2@2
  Endpoint1:                          bxxx2:nxge2028007
  Endpoint2:                          switch2@2
  State:                                           Enabled

Transport Cable: bxxx3:nxge2029007,switch1@3
  Endpoint1:                          bxxx3:nxge2029007
  Endpoint2:                          switch1@3
  State:                                           Enabled

Transport Cable: bxxx3:nxge2028003,switch2@3
  Endpoint1:                          bxxx3:nxge2028003
  Endpoint2:                          switch2@3
  State:                                           Enabled

Transport Cable: bof-sapci6:nxge2029007,switch1@6
  Endpoint1:                          bof-sapci6:nxge2029007
  Endpoint2:                          switch1@6
  State:                                           Enabled

Transport Cable: bxxx6:nxge2028003,switch2@6
  Endpoint1:                          bxxx6:nxge2028003
  Endpoint2:                          switch2@6
  State:                                           Enabled


=== Transport Switches ===

Transport Switch:                               switch1
  State:                                           Enabled
  Type:                                            switch
  Port Names:                                      1 2 3 6
  Port State(1):                                   Enabled
  Port State(2):                                   Enabled
  Port State(3):                                   Enabled
  Port State(6):                                   Enabled

Transport Switch:                               switch2
  State:                                           Enabled
  Type:                                            switch
  Port Names:                                      1 2 3 6
  Port State(1):                                   Enabled
  Port State(2):                                   Enabled
  Port State(3):                                   Enabled
  Port State(6):                                   Enabled


--- Transport Adapters for bof-sapci1 ---

Transport Adapter:                              nxge2029000
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 0
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  vlan_id:                                         2029
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled

Transport Adapter:                              nxge2028007
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 7
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  vlan_id:                                         2028
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled


--- Transport Adapters for bof-sapci2 ---

Transport Adapter:                              nxge2029000
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 0
  vlan_id:                                         2029
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled

Transport Adapter:                              nxge2028007
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 7
  vlan_id:                                         2028
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled


--- Transport Adapters for bof-sapci3 ---

Transport Adapter:                              nxge2029007
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 7
  vlan_id:                                         2029
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled

Transport Adapter:                              nxge2028003
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 3
  vlan_id:                                         2028
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled


--- Transport Adapters for bof-sapci6 ---

Transport Adapter:                              nxge2029007
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 7
  vlan_id:                                         2029
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled

Transport Adapter:                              nxge2028003
  State:                                           Enabled
  Transport Type:                                  dlpi
  device_name:                                     nxge
  device_instance:                                 3
  vlan_id:                                         2028
  lazy_free:                                       1
  dlpi_heartbeat_timeout:                          10000
  dlpi_heartbeat_quantum:                          1000
  nw_bandwidth:                                    80
  bandwidth:                                       70
  ip_address:                                      x.x.x.x
  netmask:                                         255.255.255.128
  Port Names:                                      0
  Port State(0):                                   Enabled


ADMINISTRACIÓN DE LOS TIPOS DE RECURSOS

·         Registrar un tipo de recurso # clresourcetype register type

·         Quitar un tipo de recurso # clresourcetype unregister type

Ejemplos:

root@bxxx1 # clresourcetype list
SUNW.LogicalHostname:3 -> ip de servicio
SUNW.SharedAddress:2 ->
SUNW.HAStoragePlus:8 -> replicación de grupo de recurso
SUNW.nfs:3.2
SUNW.sap_ci_v2
SUNW.sap_as_v2
SUNW.sapenq
SUNW.sapscs:2
SUNW.sapwebas:5
SUNW.gds:6
root@bxxx1 # clresourcetype show SUNW.LogicalHostname:3

=== Registered Resource Types ===

Resource Type:                                  SUNW.LogicalHostname:3
  RT_description:                                  Logical Hostname Resource Type
  RT_version:                                      3
  API_version:                                     2
  RT_basedir:                                      /usr/cluster/lib/rgm/rt/hafoip
  Single_instance:                                 False
  Proxy:                                           False
  Init_nodes:                                      All potential masters
  Installed_nodes:                                 <All>
  Failover:                                        True
  Pkglist:                                         SUNWscu
  RT_system:                                       True
  Global_zone:                                     True


Ver Sun Cluster 3.2(2).