[CentOS] another iscsi question

Sat Dec 2 05:30:31 UTC 2006
John R Pierce <pierce at hogranch.com>

Kevan Benson wrote:
> Not too familiar with booting iscsi drives.  Is there a script run, or a 
> syntax for /etc/fstab?
>   

I'm new to this whole iscsi thing myself.  I just got a simple link 
working this weekend...

to automount a iscsi share after you boot CentOS 4.4, I had to......

    # yum -y install iscsi-initiator-utils
    ....

then, edit /etc/iscsi.conf and define username and password and the 
iscsi server like...
        Username=iscsiuser
        Password=iscsipassword
         
        DiscoveryAddress=<ip-of-iscsi-target>
            Username=iscsiuser
            Password=iscsipassword

then,
    # tail -f /var/log/messages &

(that prints live syslog data on this terminal from now on)

    # chkconfig iscsi on
    # service iscsi start

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....

    Checking iscsi config:                                     [  OK  ]
    Loading iscsi driver:                                      [  OK  ]
    Dec  1 21:24:39 svfis-blade04 iscsi: iscsi config check succeeded
    Dec  1 21:24:40 svfis-blade04 kernel: iscsi-sfnet: Loading
    iscsi_sfnet version 4:0.1.11-3
    Dec  1 21:24:40 svfis-blade04 kernel: iscsi-sfnet: Control device
    major number 254
    Dec  1 21:24:40 svfis-blade04 iscsi: Loading iscsi driver:  succeeded
    Starting iscsid:                                           [  OK  ]
    Dec  1 21:24:45 svfis-blade04 iscsid[13131]: version 4:0.1.11-3
    variant (02-May-2006)
    Dec  1 21:24:45 svfis-blade04 iscsi: iscsid startup succeeded
    Dec  1 21:24:45 svfis-blade04 iscsid[13135]: Connected to Discovery
    Address 10.5.160.91
    Dec  1 21:24:45 svfis-blade04 kernel: iscsi-sfnet:host8: Session
    established
    Dec  1 21:24:45 svfis-blade04 kernel: scsi8 : SFNet iSCSI driver
    Dec  1 21:24:45 svfis-blade04 kernel:   Vendor: Openfile  Model:
    Virtual disk      Rev: 0  
    Dec  1 21:24:45 svfis-blade04 kernel:   Type:  
    Direct-Access                      ANSI SCSI revision: 04
    Dec  1 21:24:45 svfis-blade04 kernel: SCSI device sdc: 42205184
    512-byte hdwr sectors (21609 MB)
    Dec  1 21:24:45 svfis-blade04 kernel: SCSI device sdc: drive cache:
    write through
    Dec  1 21:24:45 svfis-blade04 kernel: SCSI device sdc: 42205184
    512-byte hdwr sectors (21609 MB)
    Dec  1 21:24:45 svfis-blade04 kernel: SCSI device sdc: drive cache:
    write through
    Dec  1 21:24:45 svfis-blade04 kernel:  sdc: sdc1
    Dec  1 21:24:45 svfis-blade04 kernel: Attached scsi disk sdc at
    scsi8, channel 0, id 0, lun 0
    Dec  1 21:24:45 svfis-blade04 scsi.agent[13195]: disk at
    /devices/platform/host8/target8:0:0/8:0:0:0

    # fdisk -l /dev/sdc

    Disk /dev/sdc: 21.6 GB, 21609054208 bytes
    64 heads, 32 sectors/track, 20608 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       20608    21102576   83  Linux






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20061201/9366500a/attachment-0005.html>