Install CentOS6.0 on Citrix XenServer and configure the iSCSI service

Source: Internet
Author: User


Install CentOS6.0 on Citrix XenServer and configure iSCSI service 1. mount xe-tool and install # mkdir/media/cdrom # chmod 777/media/cdrom # mount/dev/cdrom/media/cdrom #/media/cdrom/Linux/install. sh... # umount/media/cdrom # reboot 2. mount the CentOS installation disc. The update source is the mounted ISO file www.2cto.com # mount/dev/cdrom/media/cdrom # cd/etc/yum. repo. d/cancel two sources # mv CentOS-Base.repo CentOS-Base.repo.bak # mv CentOS-Debug.repo CentOS-Debug.repo.bak # vi CentOS-Media.rep O gpgcheck = 0 enabled = 1 # yum update3. install vim # yum install vim 4. install the iSCSI service component scsi-target-utils # yum install scsi-target-utils5. exit the CentOS Cd (optional) # umount/media/cdrom6. configure IP # vim/etc/sysconfig/network-script/eth0 for example: DEVICE = eth0 BOOTPROTO = staticTYPE = EthernetNAME = "System eth0" ONBOOT = yesHWADDR = 08: 00: 27: 24: F8: 9 BIPADDR = 255.255.255.255.0broadcast = 192.168.56.255NETWORK = 192.168.56.1 7. prepare a disk (LVM) # pvcreate/dev/xvdb # vgextend VolGroup/dev/xvdb # lvcreate-l? -N lv_iscsi VolGroup Description: 1) xvdb is a disk device file; 2) VolGroup is the volume group name; 3)-l is followed by the size; lv_iscsi is the logical volume name 8. configuration method 1: configuration file # vim/etc/tgt/targets. conf <target iqn.2013-01.com. example: dell. storage> direct-store/dev/VolGroup/lv_iscsi </target> Method 2: www.2cto.com tgtadm command (1) create a new target entry: # tgtadm -- lld iscsi -- op new -- mode target -- tid 1-T iqn.2008-09.com. example: dell. storage (2) releases local Block devices and configures target access control: # tgtadm -- lld iscsi -- op new -- mode logicalunit -- tid 1 -- lun 1-B/dev/VolGroup/lv_iscsi (3) set access permissions: # tgtadm -- lld iscsi -- op bind -- mode target -- tid 1-I 172.16.0.0/16 or # tgtadm -- lld iscsi -- op bind -- mode target -- tid 1-l ALL note: to enable the iSCSI to take effect, write the above command to/etc/rc. local 9. start www.2cto.com 1) iSCSI service self-start # chkconfig tgtd on2) Disable firewall # service iptables stop # service ip6tables stop # chkconfig iptables off # chkconfig ip6tables off3) disable SELINUX # vim/etc/sysconfig/selinuxSELINUX = disabled # reboot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.