Creating an iSCSI target on Xen Cloud Platform 1.1
Creating an iSCSI target on Xen Cloud Platform 1.1
Premise: I have two pools – The first has one host in it that acts as a router, firewall and Host for a couple of special VMs for (DNS, DHCP, NFS, Web) the hosts in a second pool. I've added iSCSI SAN to it's lists of jobs using a software iSCSI target in the 8 steps below.
1. Install tgt from CentOS repos
[root@cloud0 ~]# yum --enablerepo=base install scsi-target-utils
2. Start the tgt service
[root@cloud0 ~]# service tgtd start
[root@cloud0 ~]# chkconfig tgtd on
3. Preparing for LVM
I'm using a separate hard drive - /dev/sdb and creating one partition which will be used as my LVM Physical Volume. We'll then add it to the Volume Group and carve it up into Logical Volumes. This way I can just add another hard drive to the Volume Group when we want more capacity and the rest of the tutorial stays the same. The bold letters are what I input, I accepted the defaults everywhere else.