Buscador

martes, 11 de enero de 2011

Ampliar un fs con HACMP

  •  Tenemos estos fs y queremos ampliar o hacer más pequeño uno de ellos.

/dev/sapdata1_lv    100.00     18.66   82%       26     1% /oracle/PRO/sapdata1
/dev/sapdata2_lv    100.00      4.69   96%       29     1% /oracle/PRO/sapdata2
/dev/sapdata3_lv    100.00      2.33   98%       24     1% /oracle/PRO/sapdata3
/dev/sapdata4_lv    100.00     14.53   86%       24     1% /oracle/PRO/sapdata4
/dev/sapdata5_lv     99.75     17.26   83%       29     1% /oracle/PRO/sapdata5
/dev/sapdata6_lv     99.88     11.00   89%       32     1% /oracle/PRO/sapdata6
/dev/sapdata7_lv     99.88     19.26   81%       35     1% /oracle/PRO/sapdata7
/dev/sapdata8_lv     99.88     11.91   89%       32     1% /oracle/PRO/sapdata8
/dev/sapdata9_lv     99.88     26.37   74%       27     1% /oracle/PRO/sapdata9


Move cursor to desired item and press Enter.

  Initialization and Standard Configuration
  Extended Configuration -> Necesita expandir configuracion
  ***System Management (C-SPOC) -> No lo necesita

  Problem Determination Tools

Move cursor to desired item and press Enter.

  Manage HACMP Services
  HACMP Communication Interface Management
  HACMP Resource Group and Application Management
  HACMP Log Viewing and Management
  HACMP File Collection Management
  HACMP Security and Users Management
  ****HACMP Logical Volume Management
  HACMP Concurrent Logical Volume Management
  HACMP Physical Volume Management
  Configure GPFS

  Open a SMIT Session on a Node

Move cursor to desired item and press Enter.

  Shared Volume Groups
  Shared Logical Volumes
  ****Shared File Systems
  Synchronize Shared LVM Mirrors
  Synchronize a Shared Volume Group Definition

  Move cursor to desired item and press Enter.

  Journaled File Systems
  ****Enhanced Journaled File Systems

Move cursor to desired item and press Enter.

  Add an Enhanced Journaled File System
  Add an Enhanced Journaled File System on a Previously Defined Logical Volume
  List All Shared File Systems
  ****Change / Show Characteristics of a Shared Enhanced Journaled File System
  Remove a Shared File System

  Change/Show Characteristics of a Shared Enhanced Journaled File System

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Resource Group Name                                 PEC_resourcegrp
  File system name                                    /oracle/PRO/sapdata2
  NEW mount point                                    [/oracle/PRO/sapdata2]
  SIZE of file system (in 512-byte blocks)           [209715200]
  Mount GROUP                                        []
  Mount AUTOMATICALLY at system restart?
  PERMISSIONS                                         read/write             +
  Mount OPTIONS                                      []                      +
  Start Disk Accounting?                              no                     +
  Block Size (bytes)                                  4096
  Inline Log?                                         no
  Inline Log size (MBytes)                            0


esc+9 -> ir a la linea de comandos

#(PEC_A) />bc
209715200/2
104857600
104857600/1024
102400
102400/1024
100
114*1024*1024*2 (ampliamos en 14 gigas)
239075328

Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Resource Group Name                                 PEC_resourcegrp
  File system name                                    /oracle/PRO/sapdata2
  NEW mount point                                    [/oracle/PRO/sapdata2]
  SIZE of file system (in 512-byte blocks)           [239075328]
  Mount GROUP                                        []
  Mount AUTOMATICALLY at system restart?
  PERMISSIONS                                         read/write             +
  Mount OPTIONS                                      []                      +
  Start Disk Accounting?                              no                     +
  Block Size (bytes)                                  4096
  Inline Log?                                         no
  Inline Log size (MBytes)                            0


control+d -> Volver al smitty


FAlla en el 6, 7, 8 y 9. (hay que ampliar el numero de lp's)

# lslv sapdata6_lv
LOGICAL VOLUME:     sapdata6_lv            VOLUME GROUP:   sapexp2_vg
LV IDENTIFIER:      00c5f35d00004c000000011f656e56bd.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            799                    PP SIZE:        128 megabyte(s)
COPIES:             2                      SCHED POLICY:   parallel
LPs:                799                    PPs:            1598
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    8
MOUNT POINT:        /oracle/PRO/sapdata6   LABEL:          /oracle/PRO/sapdata6
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO
# man chlv
#
#
# set -o vi
# man chlv
# chlv -x 1300 sapdata6_lv
# chlv -x 1300 sapdata7_lv
# chlv -x 1300 sapdata8_lv
# chlv -x 1300 sapdata9_lv


k# lslv sapdata6_lv
LOGICAL VOLUME:     sapdata6_lv            VOLUME GROUP:   sapexp2_vg
LV IDENTIFIER:      00c5f35d00004c000000011f656e56bd.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            1300                   PP SIZE:        128 megabyte(s)
COPIES:             2                      SCHED POLICY:   parallel
LPs:                799                    PPs:            1598
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    8
MOUNT POINT:        /oracle/PRO/sapdata6   LABEL:          /oracle/PRO/sapdata6
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO

No hay comentarios:

Publicar un comentario