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 previa | ||
aplicaciones:freenas [2014/09/16 13:11] – [Añadir un volumen de una cabina ISCSI] lc | aplicaciones:freenas [2023/01/18 14:10] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
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-> | + | |
+ | Editar el fichero < | ||
+ | |||
+ | Añadir al final del fichero las siguiente línea | ||
+ | < | ||
+ | iscsid_enable=" | ||
+ | </ | ||
+ | | ||
+ | |||
+ | Crear el fichero iscsi.conf < | ||
Contenido de / | Contenido de / | ||
< | < | ||
Línea 48: | Línea 42: | ||
</ | </ | ||
+ | |||
+ | 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 < | ||
+ | | ||
+ | |||
+ | |||