Buscador

miércoles, 12 de enero de 2011

Añadir disco a rootvg y swapvg en AIX

  • Vemos el disco
#(PEC_A) />cfgmgr
cfgmgr: 0514-621 WARNING: The following device packages are required for
        device support but are not currently installed.
devices.fcp.changer
#(PEC_A) />lspv
hdisk2          00c5f36d4d43ebce                    oravg           concurrent
hdisk3          00c5f36d4d4484ff                    sapvg           concurrent
hdisk4          00c5f36d4d43ecc6                    oravg           concurrent
hdisk5          00c5f36d4d448617                    sapvg           concurrent
hdisk6          00c5f35d0d2a5251                    swapvg          active
hdisk7          00c5f35d5aa1ef13                    diskhbvg1
hdisk8          00c5f35d5aa1f179                    diskhbvg2
hdisk9          00c5f35d43643411                    sapexp_vg       concurrent
hdisk10         00c5f35d433d711a                    sapexp_vg       concurrent
hdisk11         00c5f35dca19c036                    rootvg          active
hdisk12         00c5f35d65519749                    sapexp2_vg      concurrent
hdisk13         00c5f35d6551829e                    sapexp2_vg      concurrent
hdisk14         none                                None
hdisk15         none                                None

#(PEC_A) />bootinfo -s hdisk14
32768
#(PEC_A) />bootinfo -s hdisk15
39936
  • Vemos los tamaños de los disco existentes.
#(PEC_A) />lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk11           active            511         62          00..00..00..00..62
#(PEC_A) />lspv hdisk11
PHYSICAL VOLUME:    hdisk11                  VOLUME GROUP:     rootvg
PV IDENTIFIER:      00c5f35dca19c036 VG IDENTIFIER     00c5f35d00004c000000011eca19c2c0
PV STATE:           active
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            64 megabyte(s)           LOGICAL VOLUMES:  14
TOTAL PPs:          511 (32704 megabytes)    VG DESCRIPTORS:   2
FREE PPs:           62 (3968 megabytes)      HOT SPARE:        no
USED PPs:           449 (28736 megabytes)    MAX REQUEST:      1 megabyte
FREE DISTRIBUTION:  00..00..00..00..62
USED DISTRIBUTION:  103..102..102..102..40
  • Añadimos el disco al vg
#(PEC_A) />extendvg rootvg hdisk14
0516-1254 extendvg: Changing the PVID in the ODM.
  • Hacemos mirror con el otro disco
#(PEC_A) />mirrorvg -S rootvg
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
        bosboot of system to initialize boot records.  Then, user must modify
        bootlist to include:  hdisk14 hdisk11.
#(PEC_A) />bosboot -ad /dev/hdisk14

bosboot: Boot image is 37889 512 byte blocks.
#(PEC_A) />bootlist -m normal hdisk11 hdisk14
#(PEC_A) />bootlist -m normal -o
hdisk11 blv=hd5
hdisk11 blv=hd5
hdisk14 blv=hd5
hdisk14 blv=hd5
  • Lo mismo para el swapvg.
#(PEC_A) />extendvg swapvg hdisk15
0516-1254 extendvg: Changing the PVID in the ODM.
#(PEC_A) />mirrorvg -S swapvg
0516-1804 chvg: The quorum change takes effect immediately.

No hay comentarios:

Publicar un comentario