Archive for June 10th, 2009
IETD iSCSI SAN - OCFS2
download http://slackbuilds.org/repository/12.2/network/iscsitarget/
download src (link in iscsitarget.info)
./iscsitarget.SlackBuild
installpkg /tmp/iscsitarget-0.4.17-i486-1_SBo.tgz
vi /etc/ietd.conf
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz
# Users, who can access this target. The same rules as for discovery
# users apply here.
# Leave them alone if you don’t want to use authentication.
#IncomingUser joe secret
#OutgoingUser jim 12charpasswd
# Logical Unit definition
# You must define one logical unit at least.
# Block devices, regular files, LVM, and RAID can be offered
# to the initiators as a block device.
Lun 0 Path=/dev/drbd1,Type=blockio
# Alias name for this target
Alias Test
/etc/rc.d/rc.iscsi-target start
OCFS2
download http://oss.oracle.com/projects/ocfs2-tools/files/
mkdir /etc/sysconfig
touch /sbin/chkconfig ; chmod 755 /sbin/chkconfig
rpm -ivh –nodeps ocfs2-tools-1.4.2-1.el5.i386.rpm
vi /etc/sysconfig/o2cb
O2CB_ENABLED=true
vi /etc/ocfs2/cluster.conf
node: ip_port = 7777 ip_address = 10.10.50.6 number = 0 name = GSX-2 cluster = ocfs2 node: ip_port = 7777 ip_address = 10.10.50.5 number = 1 name = GSX-1 cluster = ocfs2 cluster: node_count = 2 name = ocfs2