Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
sanboot:centos_iscsi_install [2008/02/20 15:28] mcb30 created |
sanboot:centos_iscsi_install [2008/02/20 15:51] mcb30 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing CentOS to an iSCSI target ====== | ====== Installing CentOS to an iSCSI target ====== | ||
- | The CentOS installation process is somewhat fragile, and the built-in support for iSCSI installation does not function properly. However, it is possible to work around this limitation and install to an iSCSI target. | + | The CentOS installation process is somewhat fragile, and the built-in support for iSCSI installation does not function properly except in very limited circumstances. However, it is possible to work around this limitation and install to an iSCSI target. |
===== Starting the installation ===== | ===== Starting the installation ===== | ||
- | Start a CentOS installation in the usual way, and proceed up to the point of the graphical welcome screen: | + | Start a CentOS installation in the usual way, and proceed up to the point of the partitioning screen: |
- | {{screenshots:centos_iscsi_install_start.png?400x300|Start of CentOS installation}} | + | {{screenshots:centos_iscsi_install_partitioning.png?400x300|CentOS partitioning screen}} |
- | Before clicking on //Next//, press //Ctrl-Alt-F2//. This should take you to a root shell prompt. Configure and start up the iSCSI initiator: | + | Click on //Advanced storage configuration//, and add an iSCSI target. For the target IP address, enter //127.0.0.1//: |
- | sh-3.2# mkdir /etc/iscsi | + | {{screenshots:centos_iscsi_install_gui_add_target.png?400x300|CentOS iSCSI installation GUI}} |
- | + | ||
- | sh-3.2# echo InitiatorName=iqn.2007-08.name.dns.initiator.my > \ | + | |
- | /etc/iscsi/initiatorname.iscsi | + | |
- | + | ||
- | sh-3.2# iscsid | + | |
- | {{ screenshots:centos_iscsi_install_connect.png?320x200|CentOS iSCSI installation connection to disk}} | + | You will see the message "Initializing iSCSI initiator" appear for several seconds, then the display will return to the partitioning screen. |
- | where //name.dns.initiator.my// is your initiator's DNS name in reverse order. (For completeness, you should also replace //2007-08// with the year and month in which you first obtained your DNS domain. The iSCSI naming schemes are somewhat pedantic, but it won’t affect anything in practice; as long as the initiator name is unique then everything will work just fine.) | + | {{ screenshots:centos_iscsi_install_connect.png?320x200|CentOS iSCSI installation connection to disk}} |
===== Connecting to the iSCSI target ===== | ===== Connecting to the iSCSI target ===== | ||
- | Connect to the iSCSI target to be used for installation: | + | Press //Ctrl-Alt-F2//. This should take you to a root shell prompt. Connect to the iSCSI target to be used for installation: |
sh-3.2# iscsiadm -m discovery -t sendtargets -p my.target.dns.name:3260 | sh-3.2# iscsiadm -m discovery -t sendtargets -p my.target.dns.name:3260 | ||
Line 38: | Line 33: | ||
===== Completing the installation ===== | ===== Completing the installation ===== | ||
- | Press //Ctrl-Alt-F6// to return to the graphical installation process, and click on //Next// to proceed to the disk selection screen: | + | Press //Ctrl-Alt-F6// to return to the graphical installation process. Click on //Back//. This will cause the installer to rescan for disks, and the iSCSI target should now show up in the list of available disks. |
+ | |||
+ | |||
+ | to proceed to the disk selection screen: | ||
{{screenshots:centos_iscsi_install_select_drive.png?400x300|CentOS iSCSI installation disk selection}} | {{screenshots:centos_iscsi_install_select_drive.png?400x300|CentOS iSCSI installation disk selection}} |