Bienvenidos
Todos estos pasos descriptos fueron probados en ambientes productivos
martes, 23 de noviembre de 2010
Error : No se puede asignar Recursos a los proyectos
Problema : No se puede asignar recursos a los proyectos.
Ejemplo de error mostrado:
project.max-shm-memory resource control assignment failed for project "user.oracle"
su:
unable to set credentials
Releases en lo que se presento el problema :
Solaris 10
Release 01/06 y 06/06
.
Solucion :
Requiere el siguiente patch instalado 120473-12 .
El problema es que dicho parche tiene muchas dependencias, entonces conviene instalar el cluster recomended and security patches.
Si se opta por este ultimo, se debe correr el install_patches, rebootear y volver a ejecutar la instalacion del install_patches con su posterior reboot.
miércoles, 6 de octubre de 2010
lunes, 4 de octubre de 2010
Agregar Filesystem al Sun Cluster 3.2
La finalidad es agregar el filesystem /u07 al Cluster ( conviene hacerlo con la BD baja)
1) Descubro los discos en Solaris
cfgadm -f -c configure c(nro de controladora)
devfsadm -C ( -C significa modo Clean Up )
devfsadm ( crea special files en el /devices y logical links en /dev )
scdidadm -C ( remueve todas las referencias DID de todos los dispositivos Detachados )
scdidadm -r ( reconfiguro los DID ) (en ambos nodos )
scgdevs ( updatea el /globaldevices )
scdpm -p all:all ( chequea que este bien el did en ambos nodos del cluster, suele demorar un rato , no menos de 5 minutos dependiendo la cantidad de discos que tenga)
OJO: Los comandos arriba mencionados,Deben ser ejecutados en AMBOS nodos del cluster
vxdctl enable
agrego los discos en el Veritas ( uso por ejemplo el vxdiskadm menu opcion 1 )
# vxdisk list
# vxassist -g CCtdg make vol25 51687m layout=stripe CCtdg16 CCtdg17 CCtdg18
cldevicegroup sync CCtdg
newfs /dev/vx/rdsk/CCtdg/vol25
Poner el NUEVO FILESYSTEM en el /etc/vfstab de AMBOS NODOS
Conviene poner el cluster en modo mantenimiento, para poder bajar y subir la base de datos, las veces que se necesite y que no se migre el cluster.
clrg suspend cct-rg
Ahora puedo agregar el nuevo filesystem al control del cluster
clrs set -g cct-rg -p FileSystemMountPoints="/u04,/u05,/u00,/archive/u01,/u03,/u02\
,/u06,/u07" cct-hastp-rs
En los parametros del FileSystemMountPoints, dentro e las comillas, hay que poner todos los FS, los que habia antes mas los que estamos agregando.
NO DEJAR ESPACIOS EN BLANCO ENTRE LA COMA ( , ) Y EL NOMBRE DE LOS FILESYSTEMS.
Luego , poner el cluster en modo normal
clrg resume cct-rg
~
lunes, 27 de septiembre de 2010
Identificar Modelo y Revision de Firmware en Placas de Fibra
Este comando me muestra el modelo de placa de fibra y la revision de firmware
# luxadm fcode_download -p
Found Path to 0 FC/S Cards
Complete
Found Path to 0 FC100/S Cards
Complete
Found Path to 4 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/pci@9c,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.17 08/09/07
Opening Device: /devices/pci@9c,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.17 08/09/07
Opening Device: /devices/pci@9d,600000/SUNW,qlc@1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06
Opening Device: /devices/pci@9d,600000/SUNW,qlc@1,1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06
Complete
Found Path to 0 JNI1560 Devices.
Complete
Found Path to 0 Emulex Devices.
Complete
#
martes, 21 de septiembre de 2010
Configurar MPXIO en Solaris 10 x86
Para Configurar MPXIO , con discos de NETAPP n5600 se debe.
editar y modificar ( en el caso que existiese) en el archivo /kernel/drv/fp.conf la sig linea
mpxio-disable="no";
y en el archivo /kernel/drv/scsi_vhci.conf las siguientes 3 lineas generalmente al final del archivo.
device-type-scsi-options-list =
"NETAPP LUN", "symmetric-option";
symmetric-option = 0x1000000;
***ES IMPORTANTE RESPETAR LOS ESPACIOS EN BLANCO en LA LINEA "NETAPP LUN", "symmetric-option"; ***
Desencapsular disco de booteo con SVM
Bootear en single user con cd o desde la red
Montar la particion root
# mount /dev/dsk/c0t0d0s0 /a
Hacer backup del /etc/vfstab y del /etc/system
# cp /a/etc/vfstab /a/etc/vfstab.orig
# cp /a/etc/system /a/etc/system.orig
Editar y modificar el vfstab y el system que montamos en /a
# vi /a/etc/vfstab
( Cambiar los metadevices del disco de booteo por las particiones como ser .
donde dice /dev/md/dsk/d10 poner /dev/dsk/c0t0d0s0 idem para los raw device y tanto para root, swap, /var si es que hubiese etc )
/dev/dsk/c0t10d0s0 /dev/rdsk/c0t10d0s0 / ufs 1 no nologging
/dev/dsk/c0t10d0s5 /dev/rdsk/c0t10d0s5 /var/crash ufs 2 yes nologging
/dev/dsk/c0t10d0s1 - - swap - no -
Comentar el resto de los filesystems que sean metadevices y que no correspondan al S.O.
# vi /a/etc/system
( Comentar las lineas de rootdev , recordar que en el /etc/system se comenta con * )
**set md:mirrored_root_flag = 1
** rootdev:/pseudo/md@0:0,0,blk
Desmontar el /a
# init 6 ( reboot del servidor)
Inmediatamente encapsular y rearmar el mirror. dado que las replicas estan vivas todavia y pueden generar algun problema.
Agradecimiento a Charly
jueves, 5 de agosto de 2010
Como Asignar una System Board a un 25k
La tarea solicitada aca, es.. agregar la System Board 6 al dominio B .
OJO, si las CPU son de distintas velocidades entre la SB actual y la que quiero agregar, hay que Rebootear.
Nota: Las IO Boards NO tienen flashprom para ser actualizados.
Una vez que inserte fisicamente la placa, vamos a agregar con Dynamic Reconfiguration la Nueva SB al dominio , con su paso previo de upgrade o downgrade como en este caso, del firmware de la placa.
e25k-sc0:sms-svc:1> showboards -v
Retrieving board information. Please wait.
.............
Location Pwr Type of Board Board Status Test Status Domain
-------- --- ------------- ------------ ----------- ------
SC0 On SC Main - -
SC1 On SC Spare - -
PS0 On PS-A196 - - -
PS1 On PS-A196 - - -
PS2 On PS-A196 - - -
PS3 On PS-A196 - - -
PS4 On PS-A196 - - -
PS5 On PS-A196 - - -
FT0 On FANTRAY - - -
FT1 On FANTRAY - - -
FT2 On FANTRAY - - -
FT3 On FANTRAY - - -
FT4 On FANTRAY - - -
FT5 On FANTRAY - - -
FT6 On FANTRAY - - -
FT7 On FANTRAY - - -
CS0 On CSB - - -
CS1 On CSB - - -
EX0 On EXB - - -
EX1 On EXB - - -
EX2 On EXB - - -
EX3 On EXB - - -
EX4 On EXB - - -
EX5 On EXB - - -
EX6 Off EXB - - -
EX7 Off EXB - - -
EX8 Off EXB - - -
EX9 On EXB - - -
EX10 On EXB - - -
EX11 On EXB - - -
EX12 On EXB - - -
EX13 On EXB - - -
EX14 On EXB - - -
EX15 On EXB - - -
EX16 Off EXB - - -
EX17 Off EXB - - -
IO0/C3V0 On C3V - - e25k-2-A
IO0/C5V0 On C5V - - e25k-2-A
IO0/C3V1 On C3V - - e25k-2-A
IO0/C3V2 On C3V - - e25k-2-A
IO1/C3V0 On C3V - - e25k-2-B
IO1/C5V0 On C5V - - e25k-2-B
IO1/C3V1 On C3V - - e25k-2-B
IO1/C3V2 On C3V - - e25k-2-B
IO2/C3V0 On C3V - - e25k-2-C
IO2/C5V0 On C5V - - e25k-2-C
IO2/C3V1 On C3V - - e25k-2-C
IO2/C3V2 On C3V - - e25k-2-C
IO3/C3V0 On C3V - - e25k-2-D
IO3/C5V0 On C5V - - e25k-2-D
IO1/C3V1 On C3V - - e25k-2-B
IO1/C3V2 On C3V - - e25k-2-B
IO2/C3V0 On C3V - - e25k-2-C
IO2/C5V0 On C5V - - e25k-2-C
IO2/C3V1 On C3V - - e25k-2-C
IO2/C3V2 On C3V - - e25k-2-C
IO3/C3V0 On C3V - - e25k-2-D
IO3/C5V0 On C5V - - e25k-2-D
IO3/C3V1 On C3V - - e25k-2-D
IO3/C3V2 On C3V - - e25k-2-D
IO4/C3V0 On C3V - - e25k-2-J
IO4/C5V0 On C5V - - e25k-2-J
IO4/C3V1 On C3V - - e25k-2-J
IO4/C3V2 On C3V - - e25k-2-J
IO9/C3V0 On C3V - - e25k-2-E
IO9/C5V0 On C5V - - e25k-2-E
IO9/C3V1 On C3V - - e25k-2-E
IO9/C3V2 On C3V - - e25k-2-E
IO10/C3V0 On C3V - - e25k-2-F
IO10/C5V0 On C5V - - e25k-2-F
IO10/C3V1 On C3V - - e25k-2-F
IO10/C3V2 On C3V - - e25k-2-F
IO11/C3V0 On C3V - - e25k-2-G
IO11/C5V0 On C5V - - e25k-2-G
IO11/C3V1 On C3V - - e25k-2-G
IO11/C3V2 On C3V - - e25k-2-G
IO12/C3V0 On C3V - - e25k-2-H
IO12/C5V0 On C5V - - e25k-2-H
IO12/C3V1 On C3V - - e25k-2-H
IO12/C3V2 On C3V - - e25k-2-H
IO13/C3V0 On C3V - - e25k-2-H
IO13/C5V0 On C5V - - e25k-2-H
IO13/C3V1 On C3V - - e25k-2-H
IO13/C3V2 On C3V - - e25k-2-H
IO14/C3V0 On C3V - - I
IO14/C5V0 On C5V - - I
IO14/C3V1 On C3V - - I
IO14/C3V2 On C3V - - I
IO15/C3V0 Off Unknown - - Isolated
IO15/C5V0 Off Unknown - - Isolated
IO15/C3V1 Off Unknown - - Isolated
IO15/C3V2 Off Unknown - - Isolated
SB0 On V3CPU Active Passed e25k-2-A
SB1 On V3CPU Active Passed e25k-2-B
SB2 On V3CPU Active Passed e25k-2-C
SB3 On V3CPU Active Passed e25k-2-D
SB4 On V3CPU Active Passed e25k-2-J
SB5 On V3CPU Active Passed e25k-2-E
SB6 Off V3CPU Available Unknown Isolated
SB7 - Empty Slot Available - Isolated
SB8 - Empty Slot Available - Isolated
SB9 On V3CPU Active Passed e25k-2-E
SB10 On V3CPU Active Passed e25k-2-F
SB11 On V3CPU Active Passed e25k-2-G
SB12 On V3CPU Active Passed e25k-2-H
SB13 On V3CPU (COD) Active Passed e25k-2-H
SB14 On V3CPU Active Passed I
SB15 On V3CPU Active Passed e25k-2-A
SB16 - Empty Slot Available - Isolated
SB17 - Empty Slot Available - Isolated
IO0 On HPCI+ Active Passed e25k-2-A
IO1 On HPCI+ Active Passed e25k-2-B
IO2 On HPCI+ Active Passed e25k-2-C
IO3 On HPCI+ Active Passed e25k-2-D
IO4 On HPCI+ Active Passed e25k-2-J
IO5 - Empty Slot Available - Isolated
IO6 - Empty Slot Available - Isolated
IO7 - Empty Slot Available - Isolated
IO8 - Empty Slot Available - Isolated
IO9 On HPCI+ Active Passed e25k-2-E
IO10 On HPCI+ Active Passed e25k-2-F
IO11 On HPCI+ Active Passed e25k-2-G
IO12 On HPCI+ Active Passed e25k-2-H
IO13 On HPCI+ Active Passed e25k-2-H
IO14 On HPCI+ Active Passed I
IO15 Off HPCI+ Available Unknown Isolated
IO16 - Empty Slot Available - Isolated
IO17 - Empty Slot Available - Isolated
e25k-sc0:sms-svc:2>
Primero Enciendo el Expander, sino falla el encedido de la SB.
Primero Enciendo el Expander, sino falla el encedido de la SB.
e25k-sc0:sms-svc:3> poweron EX6
e25k-sc0:sms-svc:4>
e25k-sc0:sms-svc:4> poweron SB6
e25k-sc0:sms-svc:5> showboards
Retrieving board information. Please wait.
..............................
Location Pwr Type of Board Board Status Test Status Domain
-------- --- ------------- ------------ ----------- ------
SB0 On V3CPU Active Passed e25k-2-A
SB1 On V3CPU Active Passed e25k-2-B
SB2 On V3CPU Active Passed e25k-2-C
SB3 On V3CPU Active Passed e25k-2-D
SB4 On V3CPU Active Passed e25k-2-J
SB5 On V3CPU Active Passed e25k-2-E
SB6 On V3CPU Available Unknown Isolated
SB7 - Empty Slot Available - Isolated
SB8 - Empty Slot Available - Isolated
SB9 On V3CPU Active Passed e25k-2-E
SB10 On V3CPU Active Passed e25k-2-F
SB11 On V3CPU Active Passed e25k-2-G
SB12 On V3CPU Active Passed e25k-2-H
SB13 On V3CPU Active Passed e25k-2-H
SB14 On V3CPU Active Passed I
SB15 On V3CPU Active Passed e25k-2-A
SB16 - Empty Slot Available - Isolated
SB17 - Empty Slot Available - Isolated
IO0 On HPCI+ Active Passed e25k-2-A
IO1 On HPCI+ Active Passed e25k-2-B
IO2 On HPCI+ Active Passed e25k-2-C
IO3 On HPCI+ Active Passed e25k-2-D
IO4 On HPCI+ Active Passed e25k-2-J
IO5 - Empty Slot Available - Isolated
IO6 - Empty Slot Available - Isolated
IO7 - Empty Slot Available - Isolated
IO8 - Empty Slot Available - Isolated
IO9 On HPCI+ Active Passed e25k-2-E
IO10 On HPCI+ Active Passed e25k-2-F
IO11 On HPCI+ Active Passed e25k-2-G
IO12 On HPCI+ Active Passed e25k-2-H
IO13 On HPCI+ Active Passed e25k-2-H
IO14 On HPCI+ Active Passed I
IO15 Off HPCI+ Available Unknown Isolated
IO16 - Empty Slot Available - Isolated
IO17 - Empty Slot Available - Isolated
e25k-sc0:sms-svc:6>
Ahora voy a actualizar el firmware, en este caso voy a hacer un downgrade, porque las placas que ya tenia el dominio estan con un nivel inferior
Ahora voy a actualizar el firmware, en este caso voy a hacer un downgrade, porque las placas que ya tenia el dominio estan con un nivel inferior
e25k-sc0:sms-svc:18> flashupdate -f /opt/SUNWSMS/hostobjs/sgcpu.flash SB6
Current System Board FPROM Information
========================================
V3CPU at SB6, FPROM 0:
POST 05/23/07 08:54:00 Release 5.20.6 Build 2.0 I/F 12
OBP 05/23/07 08:53:00 Release 5.20.6 Build 2.0
Ver 05/23/07 08:56:00 Release 5.20.6 Build 2.0
V3CPU at SB6, FPROM 1:
POST 05/23/07 08:54:00 Release 5.20.6 Build 2.0 I/F 12
OBP 05/23/07 08:53:00 Release 5.20.6 Build 2.0
Ver 05/23/07 08:56:00 Release 5.20.6 Build 2.0
Flash Image Information
==========================
POST 04/04/06 17:32:00 Release 5.20.0 Build 15.1 I/F 12
OBP 04/04/06 17:31:00 Release 5.20.0 Build 15.1
Ver 04/04/06 17:33:00 Release 5.20.0 Build 15.1
Do you wish to update the FPROM (yes/no)? yes
Update V3CPU at SB6, FPROM 0:
Erasing...
Done.
Writing and verifying ...
Done.
Update V3CPU at SB6, FPROM 1:
Erasing...
Done.
Writing and verifying ...
Done.
e25k-sc0:sms-svc:19>
e25k-sc0:sms-svc:23> addboard -d b SB6
assign SB6
.
assign SB6 done
poweron SB6
...
poweron SB6 done
test SB6
.....................
test SB6 done
connect SB6
....................
connect SB6 done
configure SB6
........
configure SB6 done
.
notify online SUNW_cpu/cpu192
notify online SUNW_cpu/cpu196
notify online SUNW_cpu/cpu193
notify online SUNW_cpu/cpu197
notify online SUNW_cpu/cpu194
notify online SUNW_cpu/cpu198
notify online SUNW_cpu/cpu195
notify online SUNW_cpu/cpu199
.
notify add capacity (8 cpus)
notify add capacity (4194304 pages)
notify add capacity SB6 done
e25k-sc0:sms-svc:24>
miércoles, 14 de julio de 2010
Comandos ZONAS
Chequear zona
zoneadm list -cv (lista las zonas y sus estados)
zoneadm -z zona1 ready (de estado install a ready)
zoneadm -z zona1 boot (de estado ready a running)
zlogin -C zona1 (logueo en la zona para levantar servicios ...
..despues de esto , se puede entrar con telnet ssh)
Nota: si es la primera vez,hay que ingresar varios datos de configuracion TZ,hostaname etc)
Otros chequeos zona
zoneadm -z zona1 reboot (funciona si la zona esta running)
zoneadm -z zona1 halt
zoneadm -z zona1 verify
zoneadm -z zona1 uninstall (desinstalar zona)
zoneadm -z zona1 uninstall -F (desinstalar zona)
zonecfg -z zona1 delete (debe estar desinstalada previamente)
zonecfg -z zona1 info
Backup configuracion zona
zonecfg -z zona1 export >zona1.config
Configuracion zona
Restore de Zona
Caso 1 Se perdio la configuracion
zonecfg -z zona1 -f zona1.config
zoneadm list -cv (debe aparecer la zona como configurada)
zoneadm -z zona1 install (debe aparecer la zona como instalada)(Ir a paso 2)
rm /export/zona1/root/etc/.UNCONFIGURED (para evitar preguntas al ingresar por consola)
Caso 2 La zona esta en estado instalada)
ufsrestore -ivf zona1.DMP
mv dev /export/zona1/
mv root /export/zona1/
zoneadm list -cv
zoneadm -z zona1 ready
zoneadm list -cv
zoneadm -z zona1 boot
zoneadm list -cv
telnet 10.71.100.99
ssh -l root 10.71.100.99
zlogin -C zona1
Borrar / Agregar IP en zonas
# zonecfg -z zona1
zonecfg:zona1> info
zonepath: /export/zona1
autoboot: true
net:
address: 10.27.33.43
physical: ce2
zonecfg:zona1> remove net address=10.27.33.43
zonecfg:zona1> info
zonepath: /export/zona1
zonecfg:zona1> add net
zonecfg:zona1:net> set address=10.27.33.49
zonecfg:zona1:net> set physical=ce2
zonecfg:zona1:net> end
Paso a Paso para crear Zonas
1) formatear los discos todo el slice 0
2) crear los metadb
[ SKOL ] / # metainit d60 3 1 c2t50060E800456EE02d0s0 1 c2t50060E800456EE02d1s0 1 c2t50060E800456EE02d2s0
d60: Concat/Stripe is setup
[ SKOL ] / # metastat d60
d60: Concat/Stripe
Size: 100346880 blocks (47 GB)
Stripe 0:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d0s0 0 No Yes
Stripe 1:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d1s0 7680 No Yes
Stripe 2:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d2s0 7680 No Yes
Device Relocation Information:
Device Reloc Device ID
/dev/dsk/c2t50060E800456EE02d0 Yes id1,ssd@n60060e800456ee00000056ee00000020
/dev/dsk/c2t50060E800456EE02d1 Yes id1,ssd@n60060e800456ee00000056ee00000021
/dev/dsk/c2t50060E800456EE02d2 Yes id1,ssd@n60060e800456ee00000056ee00000022
[ SKOL ] / # metainit d61 -p d60 6g
d61: Soft Partition is setup
[ SKOL ] / # metainit d62 -p d60 10g
d62: Soft Partition is setup
[ SKOL ] / # metainit d63 -p d60 30g
d63: Soft Partition is setup
[ SKOL ] / #
LUEGO creo los FS
[ SKOL ] / # newfs /dev/md/rdsk/d61
newfs: construct a new file system /dev/md/rdsk/d61: (y/n)? y
[ SKOL ] / # newfs /dev/md/rdsk/d62
newfs: construct a new file system /dev/md/rdsk/d62: (y/n)? y
[ SKOL ] / # newfs /dev/md/rdsk/d63
newfs: construct a new file system /dev/md/rdsk/d63: (y/n)? y
[ SKOL ] / #
mkdir -p /export/zona1
cd /export/
chmod 700 zona1
mkdir /u00
mkdir /u01
mount /export/zona1
zonecfg -z zona1 -f /usr/scripts/SOL10/CREAR.ZONAS/crea.zona1.SKOL.ksh
[ SKOL ] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- zona1 configured /export/zona1
[ SKOL ] / #
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # chmod 700 /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # ls -ld /export/zona1
drwx------ 3 root root 512 Apr 10 08:53 /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 install
Preparing to install zone
Checking
Checking
Creating list of files to copy from the global zone.
Copying 124550 files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize 1021 packages on the zone.
Initializing package 49 of 1021 : percent complete: 4%
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- zona1 installed /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 ready
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 zona1 ready /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS #
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 boot
Este es el script que uso para crear la zona
create -b
set zonepath=/export/zona1
set autoboot=true
add fs
set dir=/bea
set special=/dev/md/dsk/d92
set raw=/dev/md/rdsk/d92
set type=ufs
end
add fs
set dir=/u01
set special=/dev/md/dsk/d99
set raw=/dev/md/rdsk/d99
set type=ufs
end
add fs
set dir=/u02
set special=/dev/md/dsk/d100
set raw=/dev/md/rdsk/d100
set type=ufs
end
add net
set address=10.67.133.144
set physical=ce2
end
Usando fsnap para backupear zonas
Normalmente uso ufsdump ,pero esta es otra opcion valida.
Aca va un ejemplo.
[asun0001] /space # fssnap -F ufs -o bs=/space /
/dev/fssnap/0
[asun0001] /space # ls -lh /space
total 3442
drwxrwxrwx 2 root root 8.0K Jul 3 12:02 lost+found
-rw------- 1 root root 11G Oct 10 11:47 snapshot0
[asun0001] /space #
[asun0001] /space # fssnap -i
0 /
[asun0001] /space # /usr/lib/fs/ufs/fssnap -i /
Snapshot number : 0
Block Device : /dev/fssnap/0
Raw Device : /dev/rfssnap/0
Mount point : /
Device state : idle
Backing store path : /space/snapshot0
Backing store size : 1472 KB
Maximum backing store size : Unlimited
Snapshot create time : Tue Oct 10 11:45:11 2006
Copy-on-write granularity : 32 KB
[asun0001] / # mount -F ufs -o ro /dev/fssnap/0 /space/KKK
[asun0001] / # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 11G 7.3G 3.1G 71% /
/dev/dsk/c0t0d0s5 5.8G 1.2G 4.5G 22% /var
swap 3.3G 40K 3.3G 1% /tmp
swap 3.3G 72K 3.3G 1% /var/run
/dev/dsk/c0t1d0s0 9.8G 4.4G 5.3G 46% /export/big-zone
/dev/dsk/c0t0d0s7 49G 52M 49G 1% /space
/dev/fssnap/0 11G 7.3G 3.1G 71% /space/KKK
[asun0001] / #
[asun0001] / # zonecfg -z small-zone export >/space/small-zone.config
[asun0001] / # zonecfg -z big-zone export >/space/big-zone.config
asun0001] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 big-zone running /export/big-zone
- small-zone configured /export/small-zone
[asun0001] / #
[asun0001] / # zlogin -S small-zone init 0
[asun0001] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 big-zone running /export/big-zone
- small-zone installed /export/small-zone
[asun0001] / #
[asun0001] /export # zoneadm -z small-zone uninstall -F
[asun0001] /export # zonecfg -z small-zone delete -F
[asun0001] /export #
[asun0001] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 big-zone running /export/big-zone
[asun0001] / #
[asun0001] / # zonecfg -z small-zone -f /space/small-zone.config
[asun0001] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 big-zone running /export/big-zone
- small-zone configured /export/small-zone
[asun0001] / # zoneadm -z small-zone verify
[asun0001] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
4 big-zone running /export/big-zone
- small-zone configured /export/small-zone
[asun0001] / #
[asun0001] / # zoneadm -z small-zone install
Preparing to install zone
Creating list of files to copy from the global zone.
Copying 3186 files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize 1605 packages on the zone.
Initialized 1605 packages on zone.
Zone
Installation of 2 packages was skipped.
Installation of these packages generated warnings:
The file contains a log of the zone installation.
[asun0001] / #
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
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: [
Here is the disk selected. Output format: [Device_Name]
IBM_DS8x000_3
Continue operation? [y,n,q,?] (default: y) y
Which disk group [
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
[
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: [
Here is the disk selected. Output format: [Device_Name]
IBM_DS8x000_4
Continue operation? [y,n,q,?] (default: y)
Which disk group [
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
[
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: [
IBM_DS8x000_5
Which disk group [
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
[
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: [
IBM_DS8x000_6
Continue operation? [y,n,q,?] (default: y)
Which disk group [
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
[
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
Suscribirse a:
Entradas (Atom)