Hoy vamos a crear un entorno de pruebas para cabinas de almacenamiento Netapp. Se trata de un simulador de Data ONTAP (Sistema operativo de Netapp) con el cual podremos disponer de una cabina 100% funcional sobre la que hacer pruebas y modificaciones sin necesidad de utilizar las cabinas de producción.
El simulador se puede descargar desde el sitio web oficial (con registro). Esta es la dirección.
Vamos a proceder a la instalación, es realmente sencilla. Descomprimimos el fichero descargado y ejecutamos el setup (como root) del simulador:
# gunzip 7.3.4-tarfile-v22.tgz # tar -xvf 7.3.4-tarfile-v22.tar # sudo ./setup.sh
La salida de la instalación es similar a lo siguiente, veréis que os hace una serie de preguntas. Tenemos la posibilidad de añadir los discos que estimemos necesarios, crear un cluster, etc.
Script version 22 (18/Sep/2007) Where to install to? [/sim]: Would you like to install as a cluster? [no]: Would you like full HTML/PDF FilerView documentation to be installed [yes]: Continue with installation? [no]: yes Creating /sim Unpacking sim.tgz to /sim Configured the simulators mac address to be [00:50:56:10:a8:fe] Please ensure the simulator is not running. Your simulator has 3 disk(s). How many more would you like to add? [0]: 9 The following disk types are available in MB: Real (Usable) a - 43 ( 14) b - 62 ( 30) c - 78 ( 45) d - 129 ( 90) e - 535 (450) f - 1024 (900) If you are unsure choose the default option a What disk size would you like to use? [a]: e Disk adapter to put disks on? [0]: Use DHCP on first boot? [yes]: Ask for floppy boot? [no]: Checking the default route... Which network interface should the simulator use? [default]: How much memory would you like the simulator to use? [512]: 256 Create a new log for each session? [no]: Overwrite the single log each time? [yes]: Adding 9 additional disk(s). Complete. Run /sim/runsim.sh to start the simulator.
Procedemos a arrancar el simulador:
sudo /sim/runsim.sh
En el primer arranque, se ejecutará el asistente al igual que en una cabina real, donde configuraremos la red, hostname y demás configuraciones iniciales:
NetApp Release 7.3.4: Thu May 27 15:43:26 PDT 2010 System ID: 0099929383 () System Serial Number: 987654-32-0 () System Storage Configuration: Multi-Path System ACP Connectivity: NA Model Name: Simulator Processors: 1 slot 0: NetApp Virtual SCSI Host Adapter v0 12 Disks: 5.0GB 1 shelf with LRC slot 1: NetApp Virtual SCSI Host Adapter v1 slot 2: NetApp Virtual SCSI Host Adapter v2 slot 3: NetApp Virtual SCSI Host Adapter v3 slot 4: NetApp Virtual SCSI Host Adapter v4 12 Disks: 5.0GB 1 shelf with LRC slot 5: NetApp Virtual SCSI Host Adapter v5 slot 6: NetApp Virtual SCSI Host Adapter v6 slot 7: NetApp Virtual SCSI Host Adapter v7 slot 8: NetApp Virtual SCSI Host Adapter v8 4 Tapes: VT-100MB VT-100MB VT-100MB VT-100MB Please enter the new hostname []: filer1 Do you want to enable IPv6? [n]: Do you want to configure virtual network interfaces? [n]: Please enter the IP address for Network Interface ns0 []: 192.168.0.199 Please enter the netmask for Network Interface ns0 [255.255.255.0]: Please enter media type for ns0 {100tx-fd, auto} [auto]: Please enter the IP address for Network Interface ns1 []: Would you like to continue setup through the web interface? [n]: Please enter the name or IP address of the IPv4 default gateway: The administration host is given root access to the filer's /etc files for system administration. To allow /etc root access to all NFS clients enter RETURN below. Please enter the name or IP address of the administration host: Please enter timezone [GMT]: Where is the filer located? []: What language will be used for multi-protocol files (Type ? for list)?: language not set Do you want to run DNS resolver? [n]: Do you want to run NIS client? [n]: The Shelf Alternate Control Path Management process provides the ability to recover from certain SAS shelf module failures and provides a level of availability that is higher than systems not using the Alternate Control Path Management process. Do you want to configure the Shelf Alternate Control Path Management interface for SAS shelves [n]: Setting the administrative (root) password for filer1 ... . Do you want to configure the filer's DNS resolver service? [y]: What is the filer's DNS domain name? []: CIFS local server is running. .... .... ....
Tras la configuración, accederemos directamente al login de la cabina y podremos comenzar a trabajar con el simulador:
filer1> sysconfig -r Aggregate aggr0 (online, raid0) (zoned checksums) Plex /aggr0/plex0 (online, normal, active) RAID group /aggr0/plex0/rg0 (normal) RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks) --------- ------ ------------- ---- ---- ---- ----- -------------- -------------- data v4.16 v4 1 0 FC:B - FCAL N/A 120/246784 127/261248 data v4.17 v4 1 1 FC:B - FCAL N/A 120/246784 127/261248 data v4.18 v4 1 2 FC:B - FCAL N/A 120/246784 127/261248 Spare disks RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks) --------- ------ ------------- ---- ---- ---- ----- -------------- -------------- Spare disks for zoned checksum traditional volumes or aggregates only spare v4.19 v4 1 3 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.20 v4 1 4 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.21 v4 1 5 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.22 v4 1 6 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.24 v4 1 8 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.25 v4 1 9 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.26 v4 1 10 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.27 v4 1 11 FC:B - FCAL N/A 520/1065984 527/1080448 spare v4.28 v4 1 12 FC:B - FCAL N/A 520/1065984 527/1080448
En futuros artículos comenzaremos a modificar configuraciones en el simulador para ver todas sus posibilidades.