Install ISCSI storage on Centos 7
less than 1 minute read
iscsi-initiator-client-setup
yum -y install nano
systemctl stop firewalld
systemctl disable firewalld
nano /etc/sysconfig/selinux
yum install -y epel-release
yum install -y scsi-target-utils
fdisk /dev/sda
#create lvm partition (8e)
...
vgcreate vg_iscsi /dev/sda1
lvcreate -l +100%FREE -n lv_iscsi vg_iscsi
nano /etc/tgt/targets.conf
<target iqn.2014-07.com.storage:tgt1>
backing-store /dev/vg_iscsi/lv_iscsi
</target>
systemctl enable tgtd
systemctl restart tgtd
systemctl status tgtd -l
tgtadm --mode target --op show
Leave a comment