ISCSI
- ISCSI stands for Internet Small Computer System Interface
- It is used for accessing raw partition over the network
- we will take space from SAN and will format, create FS
- Works on port No.3260
- Package name - isci-initiator-utils [client]
- Service name - iscsid
ISCSI initiator - A Client that needs access to SAN Storage
ISCSI target - A remote hard disk pretended to be ISCSI server or target portal
ISCSI target portal - A Server that provide target over network to initiator
IQN - SCSI Qualified Name
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
SCSI Server
# yum install scsi-target-utils -y
# fdisk /dev/sda
Create a partition // - /dev/sda4
# partx -a /dev/sda
# vim /etc/tgt/target.conf
Copy/Paste 31,32,33 line + (Shift+G) + Paste
umcomment <target in 2012-09:com.example:comment="">
umcomment backline-storage /dev/sda4 // Partiotion number, Also LVM path is LVM
</target>
:wq
# service tgtd start
# chkconf tgtd on
# tgt-admin -show
------------------------------------------------------------------------------------
ISCSI Client
# yum install iscsi-inititator-utils -y
# man isciadm [to see the sample command]
# iscsiadm --mode discoverydb --type sendtarget --portal 192.168.0.20 --discover // IQN will be searched. SCSI qualified name
# iscsiadm --mode node --targetname paste IQN --portal 192.168.0.20 --login // to login
# car /var/log/message // Attached SCSI disk
# dmesg // show the attached SCSI disk
# fdisk /dev/sdb // dmesg will show sdX
# format the partition
# vim /etc/fstab
UUID /scsi ext4 _netdev 0 0
:wq
# mount -a
# iscsiadm --mode node --targetname paste IQN --portal 192.168.0.20 --logout // to logout
# chkconf iscsi on
After Reboot of the machin, Lost+Found folder will exists under /scsi (then successful)
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
- ISCSI stands for Internet Small Computer System Interface
- It is used for accessing raw partition over the network
- we will take space from SAN and will format, create FS
- Works on port No.3260
- Package name - isci-initiator-utils [client]
- Service name - iscsid
ISCSI initiator - A Client that needs access to SAN Storage
ISCSI target - A remote hard disk pretended to be ISCSI server or target portal
ISCSI target portal - A Server that provide target over network to initiator
IQN - SCSI Qualified Name
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
SCSI Server
# yum install scsi-target-utils -y
# fdisk /dev/sda
Create a partition // - /dev/sda4
# partx -a /dev/sda
# vim /etc/tgt/target.conf
Copy/Paste 31,32,33 line + (Shift+G) + Paste
umcomment <target in 2012-09:com.example:comment="">
umcomment backline-storage /dev/sda4 // Partiotion number, Also LVM path is LVM
</target>
:wq
# service tgtd start
# chkconf tgtd on
# tgt-admin -show
------------------------------------------------------------------------------------
ISCSI Client
# yum install iscsi-inititator-utils -y
# man isciadm [to see the sample command]
# iscsiadm --mode discoverydb --type sendtarget --portal 192.168.0.20 --discover // IQN will be searched. SCSI qualified name
# iscsiadm --mode node --targetname paste IQN --portal 192.168.0.20 --login // to login
# car /var/log/message // Attached SCSI disk
# dmesg // show the attached SCSI disk
# fdisk /dev/sdb // dmesg will show sdX
# format the partition
# vim /etc/fstab
UUID /scsi ext4 _netdev 0 0
:wq
# mount -a
# iscsiadm --mode node --targetname paste IQN --portal 192.168.0.20 --logout // to logout
# chkconf iscsi on
After Reboot of the machin, Lost+Found folder will exists under /scsi (then successful)
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment