This article focuses on building a PC-architected iSCSI Storage System, where we select a common, performance-enabled PC server as iSCSI target and choose a mature and stable iSCSI target software Iscsitarget, The basic configuration environment is shown in table 1:
Table 1
The target host third hard disk (hard disk ID/DEV/SDC) is used as an iSCSI shared disk with a hard disk size of 10G, shared to a Windows host and a Linux host, in the basic structure shown in Figure 1:
Figure 1
The following is a detailed introduction to the iSCSI networked storage setup process.
First, install the iSCSI target software
The installation of the Iscsitarget software is done on the target host, the 192.168.12.246 host set above, where the target software we choose is iscsitarget, and the reader can http:// Iscsitarget.sourceforge.net download the appropriate version, where the download is iscsitarget-1.4.20.1.tar.gz, and then start the compile installation:
[Root@iscsi-target iSCSI] #tar-XZVF iscsitarget-1.4.20.1.tar.gz
[Root@iscsi-target iSCSI] #cd iscsitarget-1.4.20.1
[Root@iscsi-target iscsitarget-1.4.20.1] #make
[Root@iscsi-target iscsitarget-1.4.20.1] #make Install
When the Iscsitarget is installed, the/etc/iet/directory is created, the Iscsitarget profile is available under this directory, and the Iscsitarget service can be started, and the command to start or close the Iscsitarget service is as follows:
[Root@iscsi-target iscsi]# Service Iscsi-target
Usage:/etc/init.d/iscsi-target {start|stop|restart|condrestart|status}
If you want the Iscsi-target service to boot automatically, do the following:
[Root@iscsi-target iSCSI] #chkconfig--level Iscsi-target on
So far, the Iscsitarget installation is complete.