Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

miércoles, 14 de julio de 2010

Cambio de Storage/Mirror/Unmirror con Veritas

La finalidad es cambiar el Storage SAN de Ibm Tipo Shark y cambiarlo por Ibm DS8000.
Para realizarlo, voy a agregar al DiskGRoup ya existente, de nombre BGT, 4 discos de igual capacidad.
Primero los voy a labelear con el Format, luego un vxdctl enable para que los vea Veritas.
Luego con el vxdiskadm voy a agregar esos discos al DG existente BGT.
Despues Mirroreo los volumenes con el vxassist, chequeo el status con vxtask list.
Cuando finalize, corto el mirror y saco las referencias a los discos viejos dentro del veritas.
Toda la tarea me Llevo 40 minutos aproximadamente, eltotal ocupado de los vol/fs era de 120 gb.
[SKOL] /usr/scripts # format
Searching for disks...done

c10t6005076306FFC600000000000000F203d0: configured with capacity of 65.98GB
c10t6005076306FFC600000000000000F204d0: configured with capacity of 65.98GB
c10t6005076306FFC600000000000000F205d0: configured with capacity of 65.98GB
c10t6005076306FFC600000000000000F300d0: configured with capacity of 65.98GB


AVAILABLE DISK SELECTIONS:
0. c0t8d0
/pci@7c,700000/pci@1/pci@1/scsi@2/sd@8,0
1. c0t9d0
/pci@7c,700000/pci@1/pci@1/scsi@2/sd@9,0
2. c0t10d0
/pci@7c,700000/pci@1/pci@1/scsi@2/sd@a,0
3. c0t11d0
/pci@7c,700000/pci@1/pci@1/scsi@2/sd@b,0
4. c2t5006048C52A66167d0
/pci@7c,600000/SUNW,qlc@1/fp@0,0/ssd@w5006048c52a66167,0
5. c3t5005076300C9AF0Dd0
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,0
6. c3t5005076300C9AF0Dd1
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,1
7. c3t5005076300C9AF0Dd2
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,2
8. c3t5005076300C9AF0Dd3
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,3
9. c3t5005076300C9AF0Dd4
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,4
10. c3t5005076300C9AF0Dd5
/pci@7c,600000/SUNW,qlc@1,1/fp@0,0/ssd@w5005076300c9af0d,5
Specify disk (enter its number): 261
selecting c10t6005076306FFC600000000000000F203d0
Disk not labeled. Label it now? y
Specify disk (enter its number): 262
selecting c10t6005076306FFC600000000000000F204d0
Disk not labeled. Label it now? y
Specify disk (enter its number)[262]: 263
selecting c10t6005076306FFC600000000000000F205d0
Disk not labeled. Label it now? y
Specify disk (enter its number)[263]: 264
selecting c10t6005076306FFC600000000000000F300d0
Disk not labeled. Label it now? y
[SKOL] # vxdctl enable
[SKOL] # vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk

1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information

? Display help about menu
?? Display help about the menuing system
q Exit from menus

Select an operation to perform: 1

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
........
.......
Select disk devices to add: [,all,list,q,?] IBM_DS8x000_3
Here is the disk selected. Output format: [Device_Name]

IBM_DS8x000_3

Continue operation? [y,n,q,?] (default: y) y
Which disk group [,none,list,q,?] (default: none) BGT
Use a default disk name for the disk? [y,n,q,?] (default: y) y
Add disk as a spare disk for BGT? [y,n,q,?] (default: n) n
Exclude disk from hot-relocation use? [y,n,q,?] (default: n) n
Add site tag to disk? [y,n,q,?] (default: n) n
The selected disks will be added to the disk group BGT with
default disk names.
IBM_DS8x000_3
Continue with operation? [y,n,q,?] (default: y) y
IBM_DS8x000_3
Encapsulate this device? [y,n,q,?] (default: y) n
IBM_DS8x000_3
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device IBM_DS8x000_3.
Enter desired private region length
[,q,?] (default: 65536)
Adding disk device IBM_DS8x000_3 to disk group BGT with disk
name BGT05.
Add or initialize other disks? [y,n,q,?] (default: n) y
Select disk devices to add: [,all,list,q,?] IBM_DS8x000_4
Here is the disk selected. Output format: [Device_Name]

IBM_DS8x000_4

Continue operation? [y,n,q,?] (default: y)
Which disk group [,none,list,q,?] (default: none) BGT
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for BGT? [y,n,q,?] (default: n)
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
Add site tag to disk? [y,n,q,?] (default: n)
IBM_DS8x000_4
Continue with operation? [y,n,q,?] (default: y)
IBM_DS8x000_4
Encapsulate this device? [y,n,q,?] (default: y) n
IBM_DS8x000_4
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device IBM_DS8x000_4.
Enter desired private region length
[,q,?] (default: 65536)
Adding disk device IBM_DS8x000_4 to disk group BGT with disk
name BGT06.
Add or initialize other disks? [y,n,q,?] (default: n) y
Select disk devices to add: [,all,list,q,?] IBM_DS8x000_5
IBM_DS8x000_5
Which disk group [,none,list,q,?] (default: none) BGT
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for BGT? [y,n,q,?] (default: n)
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
Add site tag to disk? [y,n,q,?] (default: n)
IBM_DS8x000_5
Continue with operation? [y,n,q,?] (default: y)
IBM_DS8x000_5
Encapsulate this device? [y,n,q,?] (default: y) n
IBM_DS8x000_5
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device IBM_DS8x000_5.
Enter desired private region length
[,q,?] (default: 65536)
Adding disk device IBM_DS8x000_5 to disk group BGT with disk
name BGT07.
Add or initialize other disks? [y,n,q,?] (default: n) y
Select disk devices to add: [,all,list,q,?] IBM_DS8x000_6
IBM_DS8x000_6
Continue operation? [y,n,q,?] (default: y)
Which disk group [,none,list,q,?] (default: none) BGT
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for BGT? [y,n,q,?] (default: n)
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
Add site tag to disk? [y,n,q,?] (default: n)
IBM_DS8x000_6
Continue with operation? [y,n,q,?] (default: y)
IBM_DS8x000_6
Encapsulate this device? [y,n,q,?] (default: y) n
IBM_DS8x000_6
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device IBM_DS8x000_6.
Enter desired private region length
[,q,?] (default: 65536)
Adding disk device IBM_DS8x000_6 to disk group BGT with disk
name BGT08.
Add or initialize other disks? [y,n,q,?] (default: n) n
Select an operation to perform: q
Goodbye.
[SKOL] # AHORA VEO LOS DISCOS NUEVOS AGREGADOS AL DG
[SKOL] # vxprint -ht -g BGT
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE

dg BGT default default 49000 1242237191.240.SKOL

dm BGT01 IBM_SHARK0_121 auto 65536 128794368 -
dm BGT02 IBM_SHARK0_122 auto 65536 128794368 -
dm BGT03 IBM_SHARK0_123 auto 65536 128794368 -
dm BGT04 IBM_SHARK0_124 auto 65536 128794368 -
dm BGT05 IBM_DS8x000_3 auto 65536 138313472 -
dm BGT06 IBM_DS8x000_4 auto 65536 138313472 -
dm BGT07 IBM_DS8x000_5 auto 65536 138313472 -
dm BGT08 IBM_DS8x000_6 auto 65536 138313472 -

v vol01 - ENABLED ACTIVE 140392448 SELECT vol01-01 fsgen
pl vol01-01 vol01 ENABLED ACTIVE 140392448 STRIPE 4/128 RW
sd BGT01-01 vol01-01 BGT01 0 35098112 0/0 IBM_SHARK0_121 ENA
sd BGT02-01 vol01-01 BGT02 0 35098112 1/0 IBM_SHARK0_122 ENA
sd BGT03-01 vol01-01 BGT03 0 35098112 2/0 IBM_SHARK0_123 ENA
sd BGT04-01 vol01-01 BGT04 0 35098112 3/0 IBM_SHARK0_124 ENA

v vol02 - ENABLED ACTIVE 374784000 SELECT vol02-01 fsgen
pl vol02-01 vol02 ENABLED ACTIVE 374784000 STRIPE 4/128 RW
sd BGT01-02 vol02-01 BGT01 35098112 93696000 0/0 IBM_SHARK0_121 ENA
sd BGT02-02 vol02-01 BGT02 35098112 93696000 1/0 IBM_SHARK0_122 ENA
sd BGT03-02 vol02-01 BGT03 35098112 93696000 2/0 IBM_SHARK0_123 ENA
sd BGT04-02 vol02-01 BGT04 35098112 93696000 3/0 IBM_SHARK0_124 ENA

[SKOL] /usr/scripts # vxassist -g BGT maxsize BGT05 BGT06 BGT07 BGT08
Maximum volume size: 553252864 (270143Mb)
########## Comienzo el mirror de los volumenes vol01 y vol02
[SKOL] /usr/scripts # vxassist -g BGT mirror vol01 BGT05 BGT06 BGT07 BGT08
[SKOL] /usr/scripts # vxassist -g BGT mirror vol02 BGT05 BGT06 BGT07 BGT08
[SKOL] /usr/scripts # vxprint -ht -g BGT
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE

dg BGT default default 49000 1242237191.240.SKOL

dm BGT01 IBM_SHARK0_121 auto 65536 128794368 -
dm BGT02 IBM_SHARK0_122 auto 65536 128794368 -
dm BGT03 IBM_SHARK0_123 auto 65536 128794368 -
dm BGT04 IBM_SHARK0_124 auto 65536 128794368 -
dm BGT05 IBM_DS8x000_3 auto 65536 138313472 -
dm BGT06 IBM_DS8x000_4 auto 65536 138313472 -
dm BGT07 IBM_DS8x000_5 auto 65536 138313472 -
dm BGT08 IBM_DS8x000_6 auto 65536 138313472 -

v vol01 - ENABLED ACTIVE 140392448 SELECT - fsgen
pl vol01-01 vol01 ENABLED ACTIVE 140392448 STRIPE 4/128 RW
sd BGT01-01 vol01-01 BGT01 0 35098112 0/0 IBM_SHARK0_121 ENA
sd BGT02-01 vol01-01 BGT02 0 35098112 1/0 IBM_SHARK0_122 ENA
sd BGT03-01 vol01-01 BGT03 0 35098112 2/0 IBM_SHARK0_123 ENA
sd BGT04-01 vol01-01 BGT04 0 35098112 3/0 IBM_SHARK0_124 ENA
pl vol01-02 vol01 ENABLED ACTIVE 140392448 STRIPE 4/128 RW
sd BGT05-01 vol01-02 BGT05 0 35098112 0/0 IBM_DS8x000_3 ENA
sd BGT06-01 vol01-02 BGT06 0 35098112 1/0 IBM_DS8x000_4 ENA
sd BGT07-01 vol01-02 BGT07 0 35098112 2/0 IBM_DS8x000_5 ENA
sd BGT08-01 vol01-02 BGT08 0 35098112 3/0 IBM_DS8x000_6 ENA

v vol02 - ENABLED ACTIVE 374784000 SELECT - fsgen
pl vol02-01 vol02 ENABLED ACTIVE 374784000 STRIPE 4/128 RW
sd BGT01-02 vol02-01 BGT01 35098112 93696000 0/0 IBM_SHARK0_121 ENA
sd BGT02-02 vol02-01 BGT02 35098112 93696000 1/0 IBM_SHARK0_122 ENA
sd BGT03-02 vol02-01 BGT03 35098112 93696000 2/0 IBM_SHARK0_123 ENA
sd BGT04-02 vol02-01 BGT04 35098112 93696000 3/0 IBM_SHARK0_124 ENA
pl vol02-02 vol02 ENABLED ACTIVE 374784000 STRIPE 4/128 RW
sd BGT05-02 vol02-02 BGT05 35098112 93696000 0/0 IBM_DS8x000_3 ENA
sd BGT06-02 vol02-02 BGT06 35098112 93696000 1/0 IBM_DS8x000_4 ENA
sd BGT07-02 vol02-02 BGT07 35098112 93696000 2/0 IBM_DS8x000_5 ENA
sd BGT08-02 vol02-02 BGT08 35098112 93696000 3/0 IBM_DS8x000_6 ENA
######### Corto el mirror con los discos Viejos
[SKOL] # vxplex -g BGT -o rm dis vol01-01
[SKOL] # vxplex -g BGT -o rm dis vol02-01
[SKOL] # vxprint -ht -g BGT
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE

dg BGT default default 49000 1242237191.240.SKOL

dm BGT01 IBM_SHARK0_121 auto 65536 128794368 -
dm BGT02 IBM_SHARK0_122 auto 65536 128794368 -
dm BGT03 IBM_SHARK0_123 auto 65536 128794368 -
dm BGT04 IBM_SHARK0_124 auto 65536 128794368 -
dm BGT05 IBM_DS8x000_3 auto 65536 138313472 -
dm BGT06 IBM_DS8x000_4 auto 65536 138313472 -
dm BGT07 IBM_DS8x000_5 auto 65536 138313472 -
dm BGT08 IBM_DS8x000_6 auto 65536 138313472 -

v vol01 - ENABLED ACTIVE 140392448 SELECT vol01-02 fsgen
pl vol01-02 vol01 ENABLED ACTIVE 140392448 STRIPE 4/128 RW
sd BGT05-01 vol01-02 BGT05 0 35098112 0/0 IBM_DS8x000_3 ENA
sd BGT06-01 vol01-02 BGT06 0 35098112 1/0 IBM_DS8x000_4 ENA
sd BGT07-01 vol01-02 BGT07 0 35098112 2/0 IBM_DS8x000_5 ENA
sd BGT08-01 vol01-02 BGT08 0 35098112 3/0 IBM_DS8x000_6 ENA

v vol02 - ENABLED ACTIVE 374784000 SELECT vol02-02 fsgen
pl vol02-02 vol02 ENABLED ACTIVE 374784000 STRIPE 4/128 RW
sd BGT05-02 vol02-02 BGT05 35098112 93696000 0/0 IBM_DS8x000_3 ENA
sd BGT06-02 vol02-02 BGT06 35098112 93696000 1/0 IBM_DS8x000_4 ENA
sd BGT07-02 vol02-02 BGT07 35098112 93696000 2/0 IBM_DS8x000_5 ENA
sd BGT08-02 vol02-02 BGT08 35098112 93696000 3/0 IBM_DS8x000_6 ENA
##### Saco la referencia de los discos viejos al DG BGT, quedando de esta manera solo los nuevos
[SKOL] # vxdg -g BGT rmdisk BGT01
[SKOL] # vxdg -g BGT rmdisk BGT02
[SKOL] # vxdg -g BGT rmdisk BGT03
[SKOL] # vxdg -g BGT rmdisk BGT04
[SKOL] /usr/scripts # vxprint -ht -g BGT
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE

dg BGT default default 49000 1242237191.240.SKOL

dm BGT05 IBM_DS8x000_3 auto 65536 138313472 -
dm BGT06 IBM_DS8x000_4 auto 65536 138313472 -
dm BGT07 IBM_DS8x000_5 auto 65536 138313472 -
dm BGT08 IBM_DS8x000_6 auto 65536 138313472 -

v vol01 - ENABLED ACTIVE 140392448 SELECT vol01-02 fsgen
pl vol01-02 vol01 ENABLED ACTIVE 140392448 STRIPE 4/128 RW
sd BGT05-01 vol01-02 BGT05 0 35098112 0/0 IBM_DS8x000_3 ENA
sd BGT06-01 vol01-02 BGT06 0 35098112 1/0 IBM_DS8x000_4 ENA
sd BGT07-01 vol01-02 BGT07 0 35098112 2/0 IBM_DS8x000_5 ENA
sd BGT08-01 vol01-02 BGT08 0 35098112 3/0 IBM_DS8x000_6 ENA

v vol02 - ENABLED ACTIVE 374784000 SELECT vol02-02 fsgen
pl vol02-02 vol02 ENABLED ACTIVE 374784000 STRIPE 4/128 RW
sd BGT05-02 vol02-02 BGT05 35098112 93696000 0/0 IBM_DS8x000_3 ENA
sd BGT06-02 vol02-02 BGT06 35098112 93696000 1/0 IBM_DS8x000_4 ENA
sd BGT07-02 vol02-02 BGT07 35098112 93696000 2/0 IBM_DS8x000_5 ENA
sd BGT08-02 vol02-02 BGT08 35098112 93696000 3/0 IBM_DS8x000_6 ENA
[SKOL] # df -h|grep BGT
/dev/vx/dsk/BGT/vol01 67G 34G 32G 52% /carga
/dev/vx/dsk/BGT/vol02 179G 96G 82G 54% /interfaz
# exit

No hay comentarios:

Publicar un comentario