Javier Barber
Senior Sysadmin Freelancer
GESTIÓN DE DISCOS EN NETAPP
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)
Información de propiedad de los discos de la cabina: # disk show
Información de la cabina: # storage show
Información de todos los discos: # storage show disk
Estadísticas de tráfico entrada/salida en la cabina: #sysstat (Ver opciones)
Asignación 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.
Modificación de asignación 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.
- -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:
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 añadir 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 número 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).