meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
aplicaciones:freenas [2014/09/16 13:10] – [Añadir un volumen de una cabina ISCSI] lc | varios:bicicleta:biomecanica:aplicaciones:freenas [2017/10/10 09:52] – ↷ Page moved from aplicaciones:freenas to varios:bicicleta:biomecanica:aplicaciones:freenas lc | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
+ | {{tag> almacenamiento Freenas}} | ||
===== FreeNas ===== | ===== FreeNas ===== | ||
- | Para instalar el freenas en Vmware lo primero es descargarnos la imagen del disco *.vmdk de la página www.freenas.org. Pulsamos el botón de descargar y dscargamos | + | Para instalar el freenas en Vmware lo primero es descargarnos la imagen del disco *.vmdk de la página www.freenas.org. Pulsamos el botón de descargar y descargamos |
Nos descargará un fichero con extensión xz que tendremos que descomprimir con el 7zip. | Nos descargará un fichero con extensión xz que tendremos que descomprimir con el 7zip. | ||
Línea 22: | Línea 23: | ||
=== Configurar el Iniciador === | === Configurar el Iniciador === | ||
- | In the initiator machine' | + | Entrar por ssh al Freenas y montar **/** como escritura ya que por defecto Freenas lo monta como de sólo lectura. Para ello ejecutamos < |
- | FreeNAS mounts / as read-only; to mount / with write access, enter mount -uw / | + | |
- | The iscsictl command we're going to use to connect to the iSCSI target requires iscsid, which we need to enable. To do this, enter nano /conf/ | + | |
- | The configuration file should open in the nano text editor. Use the arrow keys on the keyboard to move the cursor to the end of the file, then, on a new line, enter iscsid_enable=" | + | |
- | We can set up a configuration file to point the iSCSI initiator to the target. To do this, type nano / | + | |
- | In the empty nano editor add the text indicated below step 17. | + | |
- | Press Control + O, then Return to write out the file. Press Control + X to exit nano. | + | |
- | To set the appropriate permissions on the file, enter chmod 600 / | + | |
- | Enter mount -r / to mount / as read-only, then close the Shell. | + | |
- | Click Reboot in the web interface and click Reboot. | + | |
- | When the system comes back online, log in to the web interface. | + | |
- | Go to Shell. | + | |
- | Enter iscsictl -Aa | + | |
- | If everything worked as it should, the initiator should have connected to the target system. To verify the connection, enter iscsictl | + | |
- | The system should indicate that the iSCSI target is connected and that da1 is available. This means that /dev/da1 on the initiator system is actually the zvol0001 we created on the target. | + | |
- | Close the Shell. | + | |
- | If you go to Storage->Volumes-> | + | |
- | Text of / | + | Editar el fichero < |
+ | Añadir al final del fichero las siguiente línea | ||
+ | < | ||
+ | iscsid_enable=" | ||
+ | </ | ||
+ | | ||
+ | |||
+ | Crear el fichero iscsi.conf < | ||
+ | Contenido de / | ||
+ | < | ||
iscsi0001 { | iscsi0001 { | ||
TargetAddress = 10.0.1.3 | TargetAddress = 10.0.1.3 | ||
Línea 47: | Línea 41: | ||
} | } | ||
- | End text of / | + | </ |
+ | |||
+ | darle los permisos al fichero que hemos creado < | ||
+ | |||
+ | Volver a dejar el volumen raiz como sólo lectura < | ||
+ | |||
+ | Reiniciar la máquina. Una vez reiniciada comprobar si ha conectado con < | ||
+ | |||
+ | |||