next - started VM, used gparted to format the new drive (ext2)
sudo apt-get install gparted
sudo apt-get install iscsitarget
sudo apt-get install lvm2
sudo pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
sudo vgcreate -s 16M vg0 /dev/sdb1
Volume group "vg0" successfully created
http://www.howtoforge.com/using-iscsi-on-ubuntu-9.04-initiator-and-target
sudo lvcreate -L 20G -n storage_lun1 vg0
Logical volume "storage_lun1" created
sudo gedit /etc/ietd.conf
Target iqn.2010-02.net.obxbill:storage.lun1
IncomingUser
OutgoingUser
Lun 0 Path=/dev/vg0/storage_lun1,Type=fileio
Alias LUN1
#MaxConnections 6
sudo gedit /etc/initiators.allow
iqn.2010-02.net.obxbill:storage.lun1 192.168.27.102
iqn.2010-02.net.obxbill:storage.lun1 192.168.27.106
sudo service iscsitarget start
On windows 2003 servers - download and install iSCSI initiator for Windows 2003
Then Open the iSCSi Initiator and use the Discover tab, type in the IP of your Ubuntu target, click Logon button
When you see the disk in disk mgr, initialize format select extended partition, then choose ntfs as usual.
Tomorrow, I'll put the process together for building a 2 node cluster. From there, you can repeat the above process in order to present additional luns to your cluster for things like building a SQL cluster.
No comments:
Post a Comment