Setting Up An Iscsi Target; Preparing The Storage Space - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

13.2 Setting Up an iSCSI Target

®
SUSE
Linux Enterprise Server comes with an open source iSCSI target solution that evolved from
the Ardis iSCSI target. A basic setup can be done with YaST, but to take full advantage of iSCSI, a
manual setup is required.
Section 13.2.1, "Preparing the Storage Space," on page 119
Section 13.2.2, "Creating iSCSI Targets with YaST," on page 120
Section 13.2.3, "Configuring an iSCSI Target Manually," on page 122
Section 13.2.4, "Configuring Online Targets with ietadm," on page 123

13.2.1 Preparing the Storage Space

The iSCSI target configuration exports existing block devices to iSCSI initiators. You must prepare
the storage space you want to use in the target devices by setting up unformatted partitions or
devices by using the Partitioner in YaST, or by partitioning the devices from the command line.
IMPORTANT: After you set up a device or partition for use as an iSCSI target, you never access it
directly via its local path. Do not specify a mount point for it when you create it.
"Partitioning Devices" on page 119
"Partitioning Devices in a Virtual Environment" on page 119
Partitioning Devices
1 Log in as the
user, then open YaST.
root
2 Select System > Partitioner.
3 Click Yes to continue through the warning about using the Partitioner.
4 Click Add to create a partition, but do not format it, and do not mount it.
iSCSI targets can use unformatted partitions with Linux, Linux LVM, or Linux RAID file
system IDs.
4a Select Primary Partition, then click Next.
4b Specify the amount of space to use, then click Next.
4c Select Do not format, then specify the file system ID type.
4d Select Do not mount.
4e Click Finish.
5 Repeat
Step 4
for each area that you want to use later as an iSCSI LUN.
6 Click Accept to keep your changes, then close the YaST.
Partitioning Devices in a Virtual Environment
You can use a Xen guest server as the iSCSI target server. You must assign the storage space you
want to use for the iSCSI storage devices to the guest virtual machine, then access the space as
virtual disks within the guest environment. Each virtual disk can be a physical block device, such as
an entire disk, partition, or volume, or it can be a file-backed disk image where the virtual disk is a
single image file on a larger physical disk on the Xen host server. For the best performance, create
Mass Storage over IP Networks: iSCSI 119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents