Thursday, February 25, 2010

CentOS4 iscsi initiators

iSCSI initiators 在 CentOS 4 與 CentOS5 使用上有點不一樣

1. 安裝

# yum install iscsi-initiator-utils

2. 設定

# vi /etc/iscsi.conf

DiscoveryAddress=ISCSI_TARGET_HOST_OR_IP
OutgoingUserName=ISCSI_USER_NAME
OutgoingPassword=ISCSI_PASSWORD
LoginTimeout=15

3. 啟用服務

# chkconfig iscsi on
# /etc/init.d/iscsi start

4. 確認

# fdisk -l
# tail -f /var/log/messages
# find /sys/devices/platform/host* -name "block*"

5. 格式化

# fdisk /dev/sdc
# mkfs.ext4 /dev/sdc1

ref

http://www.cyberciti.biz/tips/howto-centos-rhel4-iscsi-initiators.html

No comments:

Post a Comment