Buscador

martes, 11 de enero de 2011

Retirada de disco de arranque tras actualizacion

 Tenemos dos discos, el hdisk1 (disco nuevo y que contiene el nuevo so actualizado) y el hdisk8 (disco con el so antiguo). Lo que haremos será, pasar todo al hdisk8 y quitar el 1 de la maquina.


Old_rootvg (viene de la creación de un disco de arranque con el comando alt_diskcopy (el nimadm tb).
  • exportvg old_rootvg
  • quitar el disco de TSM
#TSM:/>lspv
hdisk2          00c5f36d51b6af19                    tsmvg           active
hdisk3          00c5f36dca20c051                    tsm2vg          active
hdisk4          00c5f36dd467eccc                    None
hdisk0          00c5f36d6944c2ba                    tsm2vg          active
hdisk1          00c5f36dc1fcaa6c                    rootvg          active
hdisk5          00c5f36df46f51f3                    tsm2vg          active
hdisk6          00c5f36d2d489237                    tsmvg           active
hdisk7          00c5f36d6c67639b                    swapvg          active
hdisk8          00c5f36d6c604ede                    old_rootvg


  • quitar disco 8 (disco viejo)

#TSM:/>fget_config -Av

---dar0---

User array name = 'CPD1_PROCESO_DATOS'
dac6 ACTIVE dac7 ACTIVE

Disk     DAC   LUN Logical Drive
hdisk2   dac7    0 TSM_DB
hdisk3   dac6    1 TSM_DB_2
hdisk4   dac6    2 RMAN_repositorio_V9i
hdisk0   dac7    7 TSM_DB_5
hdisk1   dac6    8 LUN_TEMPORAL_TSM_61
hdisk5   dac7    3 TSM_DB_3
hdisk6   dac6    4 TSM_DB_4
hdisk7   dac6    5 TSM_swapvg
hdisk8   dac6    6 TSM_rootvg


#TSM:/>extendvg rootvg hdisk8
0516-1398 extendvg: The physical volume hdisk8, appears to belong to
another volume group
Use the force option to add this physical volume
to a volume group.
0516-792 extendvg: Unable to extend volume group.
#TSM:/>extendvg -f rootvg hdisk8
#TSM:/>mirrorvg -S rootvg
0516-404 allocp: This system cannot fulfill the allocation request.
        There are not enough free partitions or not enough physical volumes
        to keep strictness and satisfy allocation requests
 The command
        should be retried with different allocation characteristics.
0516-1517 mklvcopy: Failed to create a valid partition allocation.
0516-842 mklvcopy: Unable to make logical partition copies for
        logical volume.
0516-1199 mirrorvg: Failed to create logical partition copies
        for logical volume hd10opt.

0516-1200 mirrorvg: Failed to mirror the volume group.
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c '
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which ç


  • FALLA POR ESPACIO
  • ASI QUE a HACER MAS PEQUEÑOS LOS FS


#TSM:/tmp>chfs -a size=-128M /usr
Filesystem size changed to 5242880

Al finall

#TSM:/tmp>mirrorvg -S rootvg
0516-1804 chvg: The quorum change takes effect immediately.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
        bosboot of system to initialize boot records
 Then, user must modify
        bootlist to include:  hdisk8 hdisk1.


  • Movemos el dump

#TSM:/tmp>migratepv -l lg_dumplv hdisk1 hdisk8
#TSM:/tmp>lslv -l lg_dumplv
lg_dumplv:N/A
PV                COPIES        IN BAND       DISTRIBUTION
hdisk8            060:000:000   0%            002:000:000:008:050


  • Ponemos arranque

#TSM:/tmp>bosboot -ad /dev/hdisk8

bosboot: Boot image is 43517 512 byte blocks.
#TSM:/tmp>bootlist -m normal hdisk8
#TSM:/tmp>bootlist -m normal -o
hdisk8 blv=hd5
hdisk8 blv=hd5


QUITAMOS EL DISCO Y LO BORRAMOS

#TSM:/tmp>unmirrorvg rootvg hdisk1
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c '
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which this
        logical volume is moved/removed.
0516-1804 chvg: The quorum change takes effect immediately.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
        bosboot of system to reinitialize boot records
 Then, user must modify
        bootlist to just include:  hdisk8.
#TSM:/tmp>reducevg rootvg hdisk1
#TSM:/tmp>fget_config -Av

---dar0---

User array name = 'CPD1_PROCESO_DATOS'
dac6 ACTIVE dac7 ACTIVE

Disk     DAC   LUN Logical Drive
hdisk2   dac7    0 TSM_DB
hdisk3   dac6    1 TSM_DB_2
hdisk4   dac6    2 RMAN_repositorio_V9i
hdisk0   dac7    7 TSM_DB_5
hdisk1   dac6    8 LUN_TEMPORAL_TSM_61
hdisk5   dac7    3 TSM_DB_3
hdisk6   dac6    4 TSM_DB_4
hdisk7   dac6    5 TSM_swapvg
hdisk8   dac6    6 TSM_rootvg
#TSM:/tmp>rmdev -dl hdisk1
hdisk1 deleted
#TSM:/tmp>fget_config -Av

---dar0---

User array name = 'CPD1_PROCESO_DATOS'
dac6 ACTIVE dac7 ACTIVE

Disk     DAC   LUN Logical Drive
hdisk2   dac7    0 TSM_DB
hdisk3   dac6    1 TSM_DB_2
hdisk4   dac6    2 RMAN_repositorio_V9i
hdisk0   dac7    7 TSM_DB_5
hdisk5   dac7    3 TSM_DB_3
hdisk6   dac6    4 TSM_DB_4
hdisk7   dac6    5 TSM_swapvg
hdisk8   dac6    6 TSM_rootvg


  • LA BORRAMOS DE LA CABINA Y VEMOS QUE NO HAY ERRORES

#TSM:/tmp>errpt
#TSM:/tmp>

No hay comentarios:

Publicar un comentario