Information Technology Reference
In-Depth Information
Setting up iSCSI for the data domain
The following mentioned instructions are tested on RHEL 6 Update 5, and most of the
steps, outlined as follows, work on both RHEL 5 Update 2 and higher and on RHEL 6.
Please do the following:
1. Register the host to the Red Hat Network or create a local Yum repository, and in-
stall iSCSI-related packages.
2. Install
scsi-target-utils
packages with the following command:
# yum install scsi-target-utils -y
3. Identify the storage device to be used as a target, and use the Linux fdisk utility to
partition the disk, which is 2 TB in size, as follows:
# fdisk /dev/sdb
4. To create a disk partition on a disk that is greater than 2 TB in size in Linux, use a
utility called parted. To learn how to use parted, refer to
https://access.redhat.com/
solutions/4281
.
To learn more about using fdisk, refer to
https://access.redhat.com/
5. Once you have created a new partition on the SDB device, use this new partition
and create a logical volume, as follows:
# pvcreate /dev/sdb1
# vgcreate rhevsd /dev/sdb1
# lvcreate -L +49G -n datadisk1 rhevsd
In the preceding example,
sdb1
was the partition you created using fdisk and then
created a logical volume (lvm) of 49 GB.
6. Start the iSCSI target
tgtd
service and enable it to start when the system boots:
#
# /sbin/service tgtd start
# chkconfig tgtd on
For more information on tgtadm command line options
please refer its man page by running below command as
Search WWH ::
Custom Search