meta data de esta página
  •  

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
aplicaciones:freenas [2014/09/16 13:11] – [Añadir un volumen de una cabina ISCSI] lcaplicaciones: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 **Download the current FreeNAS VMDK for VMWare **+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 **Download the current FreeNAS VMDK for VMWare **
  
 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's web interface (http://10.0.1.2 in this example), go to Shell. +Entrar por ssh al Freenas y montar **/** como escritura ya que por defecto Freenas lo monta como de sólo lecturaPara ello ejecutamos <code>mount -uw / </code
-    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/base/etc/rc.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="YES" and press Control + O, then Return to write out the file. Press Control + X to exit nano. +
-    We can set up a configuration file to point the iSCSI initiator to the target. To do this, type nano /conf/base/etc/iscsi.conf +
-    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 /conf/base/etc/iscsi.conf +
-    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->View Disks, you will see da1, which is on the iSCSI target. You should be able to use da1 as if it were directly attached until you shutdown or restart the computer.+
  
 +Editar el fichero <code>nano /conf/base/etc/rc.conf</code>
 +
 +Añadir al final del fichero las siguiente línea
 +<file>
 +iscsid_enable="YES"
 +</file>
 +    
 +
 +Crear el fichero iscsi.conf <code> nano /conf/base/etc/iscsi.conf</code>
 Contenido de /conf/base/etc/iscsi.conf: Contenido de /conf/base/etc/iscsi.conf:
 <file> <file>
Línea 48: Línea 42:
  
 </file> </file>
 +
 +darle los permisos al fichero que hemos creado <code>chmod 600 /conf/base/etc/iscsi.conf</code>
 +
 +Volver a dejar el volumen raiz como sólo lectura <code>mount -r / </code>
 +
 +Reiniciar la máquina. Una vez reiniciada comprobar si ha conectado con <code>iscsictl -Aa</code>
 +  
 +
 +