Popular Posts

Friday, 17 February 2012

ISCSI Creation

root@server~]# yum install scsi-target-utils*
 

root@server~]# /etc/init.d/tgtd restart
 

Now Create a New Partition in server machine

root@server~]# vim /etc/tgtd/targets.conf
####Sample target with one LUN only. Defaults to allow access for all initiators:####
uncomment the following three line and give target name and device address on backing-store######
<target VIJAY>
backing-store /dev/sda9
</target>
:wq


Now goto client system and install iscsi-init*

root@client~]# yum install iscsi-init*


root@client~]# iscsiadm -m discovery -t st -p IP_of_Iscsi_Server


root@client~]# iscsiadm -m node -l


(to display the login information)
###################Now you can create partition using iscsi partition##################
~]# fdisk /dev/sdb


and follow the step to create partition.
###################add the Partition parmanently in /etc/fstab##########
 

root@client~]# vim /etc/fstab
device        mountpoint     filesystem     permission       D.F.   F.F.

/dev/sdb1    /vijay                 ext4              _netdev           0       0
:wq
root@client~]#mount -a
root@client~]# iscsi -m node -u (to logout from iscsi server)

No comments:

Post a Comment