Sunteți pe pagina 1din 9

Netapp Notas sobre *NIX

Pgina 1 de 9

Notas sobre *NIX

ESPACIO PERDIDO/FANTASMA EN VOLUMEN NETAPP


agosto 28, 2011 a las 10:07 pm | Escrito en Netapp | Deja un comentario Situacin: Agregado que tiene varios volmenes. En uno de ellos hay dos LUNs. Una de 1000GB y otra de 50GB. Total = 1050 GB. Las LUNs son de tipo Space Reserved. El volumen tena inicialmente 1100 GB. (Fractional reserve de 100 %, snapshots habilitados y guarantee volume). A medida que se ha ido llenando la LUN de 1000 GB desde la VM que utiliza esa LUN ha empezado a saltar la alarma de que se estaba llenando el volumen. Por qu? Al tener el fractional por defecto a 100% quiere decir que se reserva el doble del espacio de la LUN para sobreescrituras. Se puede comprobar cunto espacio hay reservado en un volumen mediante: filer_netapp*> df -r Filesystem kbytes used avail reserved Mounted on

Consultando la columna Reserved. Si queremos reducir ese espacio podemos reducir el fractional reserve a 0 con: filer_netapp*> vol options <volumen> fractional_reserve 0 Podemos comprobar el espacio resultante nuevamente con: filer_netapp*> df -r Filesystem kbytes used avail reserved Mounted on

Hay que asegurarse de no tener snapshots habilitados cuando ponemos el fractional a 0. Pginas tiles:

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 2 de 9

http://now.netapp.com/NOW/knowledge/docs/ontap/rel724L1/html/ontap/bsag/4cr-f3.htm http://now.netapp.com/NOW/knowledge/docs/ontap/rel7311/html/ontap/bsag/GUID596042AF-8E9C-4187-969C-633DFDD5A936.html http://wafl.co.uk/fractional-reservation/ http://now.netapp.com/NOW/knowledge/docs/ontap/rel724L1/html/ontap/bsag/4crf8.htm#1339319

ARRANQUE VM LINUX TRAS MBRALIGN


agosto 28, 2011 a las 9:57 pm | Escrito en Netapp, VMware | Deja un comentario Arrancar con una live (si se trata de un Lucid arrancar con un Lucid desktop). Hay que tener en cuenta la versin de GRUB. Montar la particin raiz (p.ej. en /mnt/raiz) Ejecutar: # mount bind /dev /mnt/raiz/dev Hacer un chroot sobre /mnt/raiz: # chroot /mnt/raiz Una vez dentro: # grub grub> root (hd0,0) grub> setup (hd0) grub> quit Salir del chroot. Rebotar y probar.

REALLOCATION EN NETAPP
abril 2, 2010 a las 12:21 am | Escrito en Netapp | 1 comentario Optimiza la distribucin de los bloques/datos en el almacenamiento y por tanto mejora el rendimiento.

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 3 de 9

Tenemos tres tipos de escaneos de reallocation: Escaneos de reallocation en LUN, file o volumen: Lo utilizamos para garantizar que los datos estn en orden secuencial para mejorar las lecturas (y escrituras) de los datos. Cuando aadimos nuevos discos utilizamos este escaneo para distribuir los datos igualmente. Escaneos de reallocation a nivel de agregado: Lo utilizamos para optimizar la localizacin de los bloques fsicos en el agregado. Con esto incrementamos el espacio libre contiguo en el agregado. Escaneos de reallocation fsicos: Reorganiza los bloques fsicos en el agregado pero preserva la posicin de los bloques lgicos en el flexvol.

GESTIN DE VOLMENES EN NETAPP


abril 2, 2010 a las 12:09 am | Escrito en Netapp | 1 comentario Tipos de Volmenes: - FlexVol: - Debilmente acoplado al agregado - Puede compartir agregado con otros FlexVols - Desde tamaos muy pequeos (> 20 MB) - Posibilidad de ampliar o reducir el tamao Crear un FlexVol: vol create vol_name [-l language_code] [-s {volume|file|none}] aggr_name size{k|m|g|t} * vol_name is the name for the new FlexVol volume (without the /vol/ prefix) language_code specifies a language other than that of the root volume. * -s {volume|file|none} specifies the space guarantee setting that is enabled for the specified FlexVol volume. If no value is specified, the default value is volume aggr_name is the name of the containing aggregate for the new FlexVol volume. * size {k | m | g | t} specifies the volume size in kilobytes, megabytes, gigabytes, or terabytes. For example, you would enter 20m to indicate twenty megabytes. If you do not specify a unit, size is taken as bytes and rounded up to the nearest multiple of 4 KB.Example: The following command creates a 200-MB volume called newvol, in the aggregate called aggr1, using the French character set: vol create newvol -l fr aggr1 200M

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 4 de 9

Redimensionar un FlexVol: 1.Check the available space of the containing aggregate by entering the following command: df -A aggr_name 2. If you want to determine the current size of the volume, enter one of the following commands: vol size vol_name df vol_name 3. Enter the following command to resize the volume: vol size vol_name [+|-] n{k|m|g|t} If you include the + or -, n{k|m|g|t} specifies how many kilobytes, megabytes, gigabytes or terabytes to increase or decrease the volume size. If you do not specify a unit, size is taken as bytes and rounded up to the nearest multiple of 4 KB. If you omit the + or -, the size of the volume is set to the size you specify, in kilobytes, megabytes, gigabytes, or terabytes. If you do not specify a unit, size is taken as bytes and rounded up to the nearest multiple of 4 KB. Note: If you attempt to decrease the size of a FlexVol volume to less than the amount of space thatit is currently using, the command fails. 4. You can verify the success of the resize operation by entering the following command: FlexVol volume operations | 161 vol size vol_name Traditional Vol: - Fuertemente acoplado al agregado - Slo puede haber uno por agregado - Si se quiere ampliar el tamao se tiene que hacer con discos completos - No se puede reducir el tamao - FlexCache: - Volumen en local cuyos datos provienen de un volumen remoto posiblemente de otro sistema de almacenamiento. Permite el acceso al volumen remoto sin necesidad de que el volumen local tenga todos los datos del mismo. - FlexClone: Es un clon de un volumen FlexVol. Necesita licencia. Creacin de un volumen FlexVol para ESX: 1.- Asignamos los discos mnimos para crear un agregado con RAID_DP (3 discos): Desde la controladora que queremos: # disk assign 0c.00.10 0c.00.11 0c.00.12 2.- Creamos el agregado aggr1 con RAID_DP y los discos asignados anteriormente:

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 5 de 9

# aggr create aggr1 -r 16 -d 0c.00.10 0c.00.11 0c.00.12 3.- Creamos un volumen FlexVol llamado <VOLUMEN> de 100GB en el agregado creado: # vol create <VOLUMEN> <AGREGADO> 100G 4.- Podemos extender el tamao del volumen otros 20 GB # vol size <VOLUMEN> +20g 5.- Eliminamos la programacin de Snapshots por defecto: # snap sched <VOLUMEN> 0 0 0 6.- Eliminamos la reserva de espacio para snapshots por defecto: # snap reserve <VOLUMEN> 0 7.- Activamos la opcin de aumento automtico del tamao del volumen: # vol autosize <VOLUMEN> on Podemos aadir un lmite de espacio (-m) y el tamao del incremento (-I): # vol autosize <VOLUMEN> [-m size] [-I size] on # vol autosize <VOLUMEN> -m 238123k -i 2g on 8.- Para ver los datos de aumento de tamao automtico del volumen usamos: # vol autosize <VOLUMEN> 9.- Establecemos que se empiecen a borrar snapshots cuando quede un 5% libre de espacio: # snap autodelete <VOLUMEN> commitment try trigger volume target_free_space 5 delete_order oldest_first 10.- Establecemos que se intente aumentar el tamao del volumen antes de borrar snapshots: # vol options <VOLUMEN> try_first volume_grow 11.- Activamos la opcin LUN Fractional Reserve. Es una poltica necesaria cuando se hacen Snapshots de Netapp sobre volmenes que contienen LUNs de VMware. Define la cantidad de espacio adicional reservado para garantizar las escrituras en las LUNs cuando el volumen llega al 100% de su capacidad. Para entornos de VMware donde se ha activado el autodimensionado del volumen y el autoborrado de snapshots Netapp recomienda fijar este valor a 0%. En otro caso dejar el valor por defecto (100%). # vol options <VOLUMEN> fractional_reserve 0 12.- Para ver los datos generales del volumen:

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 6 de 9

# vol status -v

GESTIN DE DISCOS EN NETAPP


abril 2, 2010 a las 12:08 am | Escrito en Netapp | 1 comentario En la cabina tenemos cuatro pools de recursos de discos: el de discos de spares, el de discos en mantenimiento, el de discos rotos y el de discos usados en ese momento (para datos o paridad). Para ver un listado de todos los pools usamos el comando: # aggr status -r Se pueden ver los pools individualmente con los modificadores -s (spares) -m (mantenimiento) y -f (rotos). For system that are not using SnapMirror, the spares pool is always Pool0. Systems that are using SnapMirror have two spares pools: Pool0 and Pool1. El proceso de Sanitization de un disco asegura que no se puedan recupar datos del mismo. (El comando es #disk sanitize) Informacin de propiedad de los discos de la cabina: # disk show Informacin de la cabina: # storage show Informacin de todos los discos: # storage show disk Estadsticas de trfico entrada/salida en la cabina: #sysstat (Ver opciones) Asignacin de discos: # disk assign {disk_list|all|-n count|auto} [-p pool] [-o owner_name] [-s sysid] [-c block|zoned] [-f] - Ejemplo: # disk assign 0b.43 0b.41 0b.39 0b.37 0b.35 0b.33 After you have assigned ownership to a disk, you can add that disk to an aggregate on the storage system that owns it, or leave it as a spare disk on that storage system. Modificacin de asignacin de discos: # disk assign {disk1 [disk2] [...]|-n num_disks} -f {-o owner_name | -s unowned | -s sysid} disk1 [disk2] [...] are the names of the spare disks whose ownership assignment you want to modify. -n num_disks specifies a number of disks, rather than a series of disk names, to assign ownership to.

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 7 de 9

-f forces the assignment of disks that have already been assigned ownership. -o owner_name specifies the host name of the storage system controller to which you want to reassign the disks in question. -s unowned modifies the ownership assignment of the disks in question back to Not Owned. -s sysid is the factory-assigned NVRAM number of the storage system controller to which you want to reassign the disks. It is displayed by using the sysconfig command. Ejemplo: The following command unassigns four disks from the storage system sh1: # disk assign 0b.30 0b.29 0b.28 0b.27 -s unowned -f Para desasignar un disco: 1.- # priv set advanced (Entramos en el modo de comandos privilegiados)

2.- # disk remove_ownership disk_name 3.- # priv set (Volvemos al modo de comandos normales) 4.- # disk show -v Los discos de paridad se utilizan para reconstruir discos que han fallado sobre los discos spare. Se pueden usar dos discos de paridad para aadir redundancia. If there is a data-disk or parity-disk failure in a RAID-DP group, Data ONTAP replaces the failed disk in the RAID group with a spare disk and uses the parity data to reconstruct the data of the failed disk on the replacement disk. If there is a double-disk failure, Data ONTAP replaces the failed disks in the RAID group with two spare disks and uses the double-parity data to reconstruct the data of the failed disks on the replacement disks. La diferencia entre RAID-DP y RAID4 es el nmero de discos de paridad y por tanto la tolerancia a fallos de cada uno. (Mejor en RAID-DP que permite el fallo de dos discos frente a uno del RAID4).

MONITORIZACIN Y RENDIMIENTO NETAPP


abril 2, 2010 a las 12:03 am | Escrito en Netapp | Deja un comentario Estadsticas de uso las LUNS en tiempo real en intervalos de un segundo durante cinco segundos > lun stats -i 1 -c 5

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 8 de 9

Histrico de estadsticas de uso de las LUNS > lun stats -o Estadsticas en tiempo real del sistema orientado a iSCSI con resumen al terminar > sysstat -s -i 1 Listar objetos que se pueden monitorizar: > stats list objects Listar instancias de los anteriores objetos que se pueden monitorizar: > stats list instances Listar instancias de un objeto determinado: > stats list instances disk Listar contadores de los objetos que se pueden monitorizar: > stats list counters Estadsticas discos en modo columna: > stats show -c disk:*:user_reads disk:*:user_writes disk:*:user_read_latency disk:*:user_write_latency Estadsticas de uso y nmero de transferencias en los discos. Se muestrea una vez durante cinco minutos: > stats show -n 1 -i 300 -c disk:*:disk_busy disk:*:total_transfers

CREAR TRUNK LACP ENTRE INTERFACES CISCO Y NETAPP


abril 1, 2010 a las 11:32 pm | Escrito en Cisco, Netapp | Deja un comentario En el lado de Netapp: vif create lacp <vif name> -b ip {interface list} En el lado del Cisco: s3(config)#int port-channel1 s3(config-if)#description LACP multimode VIF for netapp1

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

Netapp Notas sobre *NIX

Pgina 9 de 9

s3(config-if)#int gi0/23 s3(config-if)#channel-protocol lacp s3(config-if)#channel-group 1 mode active Esto se repetir para cada puerto del switch.

BLOG DE WORDPRESS.COM. | TEMA: POOL POR BORJA FERNANDEZ. ENTRADAS Y COMENTARIOS: FEEDS. Seguir

Follow Notas sobre *NIX


Powered by WordPress.com

http://ruddiger.wordpress.com/category/netapp/

26/07/2012

S-ar putea să vă placă și