FAQ sobre filers NetApp y Data ONTAP
Recopilatorio de preguntas frecuentes sobre filers de NetApp y del sistema operativo Data ONTAP.
Cambiar el tamaño y/o mover el root volume en Data ONTAP
Antes de realizar cualquier cambio sobre el
root volume es importante saber que:
- El
root volume contiene información vital para ONTAP: ficheros del sistema (directorios /etc y /home), logs, ficheros core, etc.. todos los sistemas de almacenamiento NetApp necesitan obligatoriamente este volumen.
- Se recomienda dedicar un volumen al
root volume y tenerlo aislado de aquellos que contienen datos (para obtener el máximo rendimiento NetApp recomienda crearlo sobre un RAID-4 de 2 discos). Es importante saber que
cualquier volumen puede contener el root.
- Según el modelo de FAS existe un
tamaño mínimo para el root volume, consultar la tabla en:
Minimum size for root FlexVol volumes∞. De todas formas, Data ONTAP bloqueará cualquier acción que pudiera implicar dejar al volumen con menos del tamaño mínimo garantizado/necesario (activar la opción del volumen
guarantee=volume).
- Por defecto, el
root volume se crea sobre
/vol/vol0.
- Si el
root volume está sobre un volumen tradicional (no flexible) no es posible reducir/aumentar su tamaño, tendremos que crear uno nuevo, mover allí el contenido y marcarlo como root. El artículo
How to move or rename the root volume on a filer∞, de la KB de NetApp explica como hacer paso a paso. A partir de la versión 7.0 de Data ONTAP el
root volume se crea siempre sobre un FlexVol.
- Al hacer root un volumen su agregado se convierte también en root.
- Para mas información sobre como Data ONTAP utiliza el volumen
root consultar la documentación de oficial de NetApp:
Understanding the Root Volume∞
Si quieres seguir adelante, estas son las instrucciones para mover/renombrar el
root a otro volumen:
netapp1> vol options vol1 root
vol options: Volume 'vol1' cannot become the root volume after a reboot because it is not volume space guaranteed.
netapp1> vol options vol1 guarantee volume
netapp1> vol options vol1 root
Volume 'vol1' will become root at the next boot.
Así el volumen
root quedará asignado a
vol1, ahora nos queda copiar los datos que contenía el anterior volumen al nuevo utilizando
ndmpcopy :
netapp1> ndmpd status
ndmpd ON.
netapp1> ndmpcopy /etc /vol/vol1/etc
Ndmpcopy: Starting copy [ 1 ] ...
Ndmpcopy: netapp1: Notify: Connection established
Ndmpcopy: netapp1: Notify: Connection established
Ndmpcopy: netapp1: Connect: Authentication successful
Ndmpcopy: netapp1: Connect: Authentication successful
Ndmpcopy: netapp1: Log: DUMP: creating "/vol/vol0/../snapshot_for_backup.2" snapshot.
Ndmpcopy: netapp1: Log: DUMP: Using subtree dump
Ndmpcopy: netapp1: Log: DUMP: Date of this level 0 dump: Wed Apr 8 16:35:21 2009.
Ndmpcopy: netapp1: Log: DUMP: Date of last level 0 dump: the epoch.
Ndmpcopy: netapp1: Log: DUMP: Dumping /vol/vol0/etc to NDMP connection
Ndmpcopy: netapp1: Log: DUMP: mapping (Pass I)[regular files]
Finalmente reiniciamos el filer y comprobamos que el volumen root se ha migrado correctamente:
netapp1> reboot
Wed Apr 8 16:44:30 CEST [kern.shutdown:notice]: System shut down because : "reboot".
Wed Apr 8 16:44:30 CEST [perf.archive.stop:info]: Performance archiver stopped.
(..)
netapp1> aggr status
Aggr State Status Options
aggr0 online raid0, aggr
aggr1 online raid_dp, aggr root
netapp1> vol status vol1
Volume State Status Options
vol1 online raid_dp, flex root, create_ucode=on, convert_ucode=on