<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kevan Benson wrote:
<blockquote cite="mid200612011638.59290.kbenson@a-1networks.com"
type="cite">
<pre wrap="">Not too familiar with booting iscsi drives. Is there a script run, or a
syntax for /etc/fstab?
</pre>
</blockquote>
<br>
I'm new to this whole iscsi thing myself. I just got a simple link
working this weekend...<br>
<br>
to automount a iscsi share after you boot CentOS 4.4, I had to......<br>
<blockquote><tt># yum -y install iscsi-initiator-utils</tt><br>
<tt>....<br>
<br>
</tt></blockquote>
then, edit /etc/iscsi.conf and define username and password and the
iscsi server like...<br>
<tt> Username=iscsiuser<br>
Password=iscsipassword<br>
<br>
DiscoveryAddress=<ip-of-iscsi-target><br>
Username=iscsiuser<br>
Password=iscsipassword</tt><br>
<br>
then, <br>
<tt> # tail -f /var/log/messages &<br>
</tt><br>
(that prints live syslog data on this terminal from now on)<br>
<br>
<tt> # chkconfig iscsi on<br>
# service iscsi start<br>
<br>
</tt>and it should show a scsi discovery in the log. it can take half
a minute for it to sort itself out and create any iscsi visible logical
volumes....<br>
<tt><br>
</tt>
<blockquote><tt></tt><tt>Checking iscsi
config: [ <font color="#006600"> OK </font>
]</tt><br>
<tt>Loading iscsi driver: [ <font
color="#006600">OK </font>]</tt><br>
<tt>Dec 1 21:24:39 svfis-blade04 iscsi: iscsi config check succeeded</tt><br>
<tt>Dec 1 21:24:40 svfis-blade04 kernel: iscsi-sfnet: Loading
iscsi_sfnet version 4:0.1.11-3</tt><br>
<tt>Dec 1 21:24:40 svfis-blade04 kernel: iscsi-sfnet: Control device
major number 254</tt><br>
<tt>Dec 1 21:24:40 svfis-blade04 iscsi: Loading iscsi driver:
succeeded</tt><br>
<tt>Starting iscsid: [ <font
color="#006600">OK </font>]</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 iscsid[13131]: version 4:0.1.11-3
variant (02-May-2006) </tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 iscsi: iscsid startup succeeded</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 iscsid[13135]: Connected to
Discovery Address 10.5.160.91 </tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: iscsi-sfnet:host8: Session
established</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: scsi8 : SFNet iSCSI driver</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: Vendor: Openfile Model:
Virtual disk Rev: 0 </tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: Type:
Direct-Access ANSI SCSI revision: 04</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: SCSI device sdc: 42205184
512-byte hdwr sectors (21609 MB)</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: SCSI device sdc: drive
cache: write through</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: SCSI device sdc: 42205184
512-byte hdwr sectors (21609 MB)</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: SCSI device sdc: drive
cache: write through</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: sdc: sdc1</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 kernel: Attached scsi disk sdc at
scsi8, channel 0, id 0, lun 0</tt><br>
<tt>Dec 1 21:24:45 svfis-blade04 scsi.agent[13195]: disk at
/devices/platform/host8/target8:0:0/8:0:0:0</tt><br>
</blockquote>
<blockquote><tt># fdisk -l /dev/sdc</tt><br>
<br>
<tt>Disk /dev/sdc: 21.6 GB, 21609054208 bytes</tt><br>
<tt>64 heads, 32 sectors/track, 20608 cylinders</tt><br>
<tt>Units = cylinders of 2048 * 512 = 1048576 bytes</tt><br>
<br>
<tt> Device Boot Start End Blocks Id System</tt><br>
<tt>/dev/sdc1 1 20608 21102576 83 Linux</tt><br>
</blockquote>
<tt><br>
<br>
<br>
<br>
<br>
</tt>
</body>
</html>