And by installing the proper iscsi initiator on the client you can mount the openfiler's iscsi target on your client. In background its just redhat rhel linux. Iscsi-initiator [client] <---------------------------------Openfiler Iscsi-target

In this example we are using openfiler as iscsi target and a Rhel5 machine as iscsi initiator. Openfiler Installation and configuration: Download the openfiler openfiler-2.3-x86-disc1.iso from Openfiler website. Installation steps are shown below.

Just hit enter for starting the installation.

You can do a media check if you want. You can skip it.

S. Default is U. Chose the keyboard. Just hit enter. English .nstallation process is starting.

Check the Mannual pratition with Disk Druid and hit enter. .

Here we'll create: A /boot partiton of 100M size with ext3 filesystem.Enter yes for continuing. A / partition with 4000M size with ext3 filesystem. A swapfilesystem with 1024M size. .

Click next for continuing installation. .

168.255. Here it is IP: 192. It is recommented that you should have a 2Gb RAM on openfiler system.Click "No" for continuing. Unckeck the dhcp option.29 Netmask: 255.0.255. Ckeck activate on boot.0 . And give ip and netmask for the openfiler system.

1 DNS: Installation is about to start.8.8. GW: 192. .Give the gateway and DNS settings for openfiler system. Rest is optional. Hit enter.

Installation is on progress. . Wait for completing.

Installation is completed.Click reboot for rebooting you machine. You can login as a root user. . After rebooting you will get a screen like this.

In the screen its shown that you can access the openfiler web interface through https://192.29:446 But before that a few things to be done.d/openfiler start Starting openfiler: [root@openfiler ~]# chkconfig openfiler on Now take the browser and give https://192.168. Apache comes as configured with opefiler.d/httpd start Starting httpd: [ OK ] [root@openfiler ~]# chkconfig httpd on And you need to start the openfiler servicce also. But you have to start the service.0.In this machine password set was redhat.168. [root@openfiler ~]# /etc/init.29:446 . Configuring the web interface: For accessing openfiler through web interface you need a web server configured. [root@openfiler ~]# /etc/init.0.

If you are setting a iscsi device for a host. but you can proceed. If you are setting a iscsi device for a network. Web Interface: First you need to set a Network access Point.255. Username : openfiler password : redhat //default it'll be password.0 as netmask. This machine / network will be used as client.255 as netmask.255. u can give 255. u need to give 255. here i changed to redhat. Take the web interface and click the system tab: .You may get an ssl error.255.255.

Creating Volumes: Openfiler uses the LVM concept. First we will create a Physical Volume: Click Volume tab: Click new physical volume link . First it will create a Physical volume. After that it will create Volume group and then the Logical Volume.

We 'll create an extended partition first. You can . we will create a new partition as physical volume.You will get a page as above. After that in that extended partition. Click /dev/sda in the edit disk column. As shown below. Now we will create the Volume Group using the create physical volume. You may dont have to do this if it is already created.

Click Shares: Click create a new filesystem volume. .create more physical volumes and make a volume group using all those physical volumes.

Give the name: disk1 Description : disk1 Size : drage to full size or specify as much you want Type : iscsi The Logical volume is created. Goto services tab: . You can create more if you want.Now we gave the Volume group the name storage. Configuring LUN: Before configuring LUN you need to enable the iscsi target service. Now click change to create new Logical Volume in that. Now we want to set up the LUN.

Goto volumes tab.lap . You just had to click. You can edit the target name. Now we have to createa LUN device. Clicking "add" you will get like this.Before it was disabled now Iscsi target server became enabled. Here we gave *:storage. After the ":" you can edit as you want. Click iscsi target on the right side window.

Now Goto LUN mapping tab under the Iscsi target. Click on map. .

.Now You have to edit the Network acl and allow the host to use the mapped LUN. Click on Network acl.

8.rpm # service iscsid start Turning off network shutdown. This is status of LUN after mapping.29 .i386.865-0.2.0. In order to use openfiler target as disk.Now the iscsi target from openfiler is mapped to the metwork access point.el5.168. #rpm -ivh iscsi-initiator-utils-6. Client [iscsi initiator] Configuration: Here we are using a redhat enterprise linux5 as client. You can access it from that machine. For that we need to install the following package. it has to be set as iscsi initiator.0. From systems tab iscsi-target. Starting iSCSI daemon: [ OK ] [ OK ] # chkconfig iscsid on # chkconfig iscsi on Searching the iscsi target: # iscsiadm -m discovery -t sendtargets -p 192.

. the previous content won't be recoverable.openfiler:storage. After that.0. nor 18253611008 bytes 255 heads.2006-01.1 You will get the scanned result as the line above. 2219 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 269 2219 15671407+ 83 Linux /dev/sda3 14 268 2048287+ 82 Linux swap / Solaris Partition table entries are not in disk order Disk /dev/sdb: 5335 MB. of course.lap -p 192. Example: [root@server ~]# iscsiadm -m discovery -t sendtargets -p 192.29 -l [root@server ~]# fdisk -l Disk /dev/sda: 18.168.2 GB.0.168.27:3260. 63 sectors/track. until you decide to write them. 1018 cylinders Units = cylinders of 10230 * 512 = 5237760 bytes Disk /dev/sdb doesn't contain a valid partition table Now we'll partition the iscsi device: [root@server ~]# fdisk /dev/sdb Device contains neither a valid DOS partition table. As follows # iscsiadm -m discovery -t sendtargets -p 192.1 iqn.168. 62 sectors/track.openfiler:storage. Loging in to the iscsi target: # iscsiadm -m node -T 192.29:3260. SGI or OSF disklabel Building a new DOS [root@server ~]# iscsiadm -m node -T iqn. 5335154688 bytes 165 heads.2006-01.29:3260 192.lap -p 192.29 -l -l or --login #fdisk -l will list the iscsi targets now.0.168.You can also use port number if you want.1 iqn.2006-01.2006-01.0.27:3260. Changes will remain in memory only.openfiler:storage.168.29 192.

1018 cylinders Units = cylinders of 10230 * 512 = 5237760 bytes . Syncing disks. default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1018.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1018. default 1018): Using default value 1018 Command (m for help): p Disk /dev/sdb: 5335 MB. [root@server ~]# partprobe /dev/sdb Checking the disks: [root@server ~]# fdisk -l Disk /dev/sda: 18.2 GB. 18253611008 bytes 255 heads. 5335154688 bytes 165 heads. 62 sectors/track. 62 sectors/track. 1018 cylinders Units = cylinders of 10230 * 512 = 5237760 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 1018 5207039 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. 2219 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 269 2219 15671407+ 83 Linux /dev/sda3 14 268 2048287+ 82 Linux swap / Solaris Partition table entries are not in disk order Disk /dev/sdb: 5335 MB. 63 sectors/track. 5335154688 bytes 165 heads.

00%) reserved for the super user First data block=0 Maximum filesystem blocks=1333788672 40 block groups 32768 blocks per group.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 651520 inodes. 1301759 blocks 65087 blocks (5. 163840.Device Boot Start End Blocks Id System /dev/sdb1 1 1018 5207039 83 Linux Now we'll format the disk: [root@server ~]# mkfs. 32768 fragments per group 16288 inodes per group Superblock backups stored on blocks: 32768. 229376. whichever comes first. 98304.ext3 /dev/sdb1 mke2fs 1. Use tune2fs -c or -i to override. 884736 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 37 mounts or 180 days.9G 139M 4. [root@server ~]# Mounting the Iscsi diskt to /tmp: [root@server ~]# mount /dev/sdb1 /mnt [root@server ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext3 15G 5. 294912. 819200.2G 8.6G 3% /mnt [root@server mnt]# touch a b c [root@server mnt]# ls a b c lost+found [root@server mnt]# .7G 38% / /dev/sda1 ext3 99M 10M 84M 11% /boot tmpfs tmpfs 220M 0 220M 0% /dev/shm /dev/sdb1 ext3 4.

Sign up to vote on this title
UsefulNot useful