Questions tagged [iscsi]

iSCSI is a protocol to exchange SCSI commands over TCP/IP and by so doing makes it possible to manage storage devices over the network.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Write QCOW2 image to iSCSI LUN?

I've been trying to write a QCOW2 image to an iSCSI LUN target but have been unsuccessful. Based on this link, this should be possible (and should be possible without having to mount the iSCSI LUN as ...
quantum's user avatar
  • 101
0 votes
0 answers
75 views

Linux rootfs on iSCSI: Cannot remount read-write

I have a Linux server with an ext4 rootfs on iSCSI. The iSCSI server rebooted and this interrupted the communication, which is usually not a big deal because the server is quick to restart. However, ...
teapot's user avatar
  • 19
1 vote
0 answers
50 views

iSCSI LIO target - how to resize lun?

What are the steps to resize a lun which is currently attached to an initiator? I mostly interested to know how to do that for file-based luns.
Jiri B's user avatar
  • 541
1 vote
2 answers
359 views

iscsi target mount from NAS slow on Fedora 37 boot

I have a single iscsi target on Asustor NAS , but after adding it to fstab, F37 boot is 2 min slower, because the iscsi.service is reloaded twice during boot, and I don't know why. $ sudo iscsiadm -m ...
Shuman's user avatar
  • 287
0 votes
1 answer
219 views

iSCSI target implementation is User Space

I want to write my own implementation of iSCSI target where in I want to interrupt read/write calls to block device and serve them from my custom storage implementation. Is there any default library(...
Uday Swami's user avatar
1 vote
0 answers
120 views

ISCSI - how to connect only in one target session?

I have created a lab for databases, and when I am discovering the targets, it show two sessions (1,2): 10.0.0.17:3260,1 iqn.2003-01.org.linux-iscsi.san.x8664:sn.b5aad37c0404 10.0.0.17:3260,2 iqn.2003-...
Astora's user avatar
  • 439
0 votes
1 answer
744 views

How to recover an iSCSI disk

I run an iSCSI disk on a Linux server (RHEL7). The disk has a normal ext4 partition containing a loop device called disk01.img, which is mapped to a virtual disk with a Windows NTFS file system. All ...
roelvdh's user avatar
3 votes
1 answer
13k views

24 - iSCSI login failed due to authorization failure

When I run iscsiadm --mode node --targetname iqn.2018-12.dz.esi:iso --portal 10.11.0.2 --login I get this error: Logging in to [iface: default, target: iqn.2018-12.dz.esi:iso, portal: 10.11.0.2,3260] ...
Yasmine's user avatar
  • 31
1 vote
1 answer
1k views

add new disk in /etc/tgt/targets.conf and reload without affect other disks/initiator hosts

I have added a new disk to the server: [root@ns1 tgt]# lsblk |grep sdh sdh 8:112 0 600M 0 disk Also, I have created a new entry for /dev/sdh in /etc/tgt/targets.conf [root@ns1 tgt]# cat /...
Astora's user avatar
  • 439
0 votes
1 answer
832 views

dd: writing to Invalid argument with 4k blocksize on iSCSI LUN

Why can't use oflag=direct on the 4k blocksize iSCSI disk? Could other applications also have a problem with the cause? root@testvm02:~# dd if=/root/speedtest of=/mnt/8k_512/speedtest oflag=direct ...
FaxMax's user avatar
  • 726
1 vote
0 answers
421 views

iscsi login issue - 32 target not likely connected

I'm experimenting with iSCSI. I set up a target on a VM and set up a second VM to UEFI network boot. In the initramfs, it tries to log in to the target and use a root filesystem from the iSCSI device. ...
Huckle's user avatar
  • 1,015
0 votes
1 answer
881 views

XEN: Cannot Install Centos 8 as PV-based DOMU with Debian 10 DOM0

My goal is to install CentOS 8 as a Guest/DOMU on a Xen system managed/installed via Debian 10. I need to use PV since the hardware doesn't support HVM as it is quite old. HVM would obviously simplify ...
unchainched's user avatar
1 vote
1 answer
173 views

Will execute time of kernel thread will be included in /proc/[pid]/stat?

My process accesses a file in disk, which is mounted with iSCSI driver. I knew iSCSI has several kernel modules and some of them run as kernel threads. As my knowledge iSCSI needs a lot of CPU time, ...
5f3759df 0x's user avatar
0 votes
0 answers
28 views

Linux still sees drive with old stats

I have Linux vm which is hosted on Hyper-V that has attached ISCSI drive over the network shared from NAS device. Last night I mounted the volume using mount /dev/sdb /mydrive pasted some files, ...
scotrod's user avatar
  • 103
1 vote
1 answer
1k views

Force NFS server to start after iSCSI targets connected

I have a Ubuntu machine that takes an iSCSI block, mounts it as ext4, then exports it as an NFS share. On boot, NFS fails to start as the iSCSI directory mounts have not loaded yet. "exportfs: Failed ...
Joshua's user avatar
  • 11
1 vote
1 answer
301 views

about debian iSCSI target setup

I'm trying to setup TGT-iSCSI on a debian vm (for testing), but when I try to connect from iscsi-client (xenserver, multipath enabled), I can only see 1 IP instead of the 2 IPs prepared for storage (...
user381853's user avatar
0 votes
1 answer
188 views

iscsid: iscsi client local port

On remote server, the iscsi service listens on port 3260. What determines the local port used on the iscsi client ? I am using the open-iscsi package, and the /usr/sbin/iscsid as client. In the ...
Martin Vegter's user avatar
0 votes
1 answer
351 views

How can I prevent certian IP from connecting to iSCSI target server by ufw?

I set up a iSCSI target with targetcli. I would like to pass all connections to access target storage but a few IPs. I did it as below: ufw allow 3260/tcp ufw deny from 192.168.0.112 to any port 3260 ...
codexplorer's user avatar
1 vote
0 answers
604 views

targetcli vs tgtd

I was reading about targetcli and have this confusion. in rhel 6, to configure iscsi target, iscsi-target-utils need to be installed but in rhel 7, targetcli need to be installed. Can't we use iscsi-...
Rajnish Kumar Soni's user avatar
3 votes
3 answers
2k views

SCSI: SAN or local disk?

I have a Debian 9 running. It has a SSD connected as well as a fibrechannel link to a SAN storage. As far I see both are visible as /dev/sdX devices. How can I find out what is the disk and what is ...
chris01's user avatar
  • 585
0 votes
1 answer
5k views

Proper way to activate LVM partition on multipath during the boot

I have Debian 9 with successfully configured iSCSI and multipath: # multipath -ll /dev/mapper/mpathb mpathb (222c60001556480c6) dm-2 Promise,Vess R2600xi size=10T features='1 ...
Yurij Goncharuk's user avatar
1 vote
1 answer
536 views

Can I change LIO SCSI Disk Vendor name

I'm using LIO for SAN scsi. The shared disks shown as LIO-ORG at client side. Example; [root@testing ~]# lsblk -S NAME HCTL TYPE VENDOR MODEL REV TRAN sdc 4:0:0:0 disk LIO-...
Ozbit's user avatar
  • 429
1 vote
2 answers
4k views

How to check that which storage connected either FC or iscsi

How do i check that, which type of storage are connected with my linux(Redhat) system. I want to find that either ISCSI or FC storage connect ?
Nullpointer's user avatar
2 votes
1 answer
8k views

iscsiadm: cannot make connection to <IP>: No route to host

when I try iscsiadm discovery: iscsiadm -m discovery -t sendtargets -p <IP> I get this error: iscsiadm: cannot make connection to <IP>: No route to host however, I can ping the IP fine....
Martin Vegter's user avatar
1 vote
0 answers
107 views

Open-iSCSI Target IQN Naming Case

I'm using LRBD to configure iSCSI targets from a Ceph cluster, LRBD uses Open-iSCSI/targetcli to configure the targets. When I use an uppercase letter in the unique part of the iqn (after the colon),...
rusty shackleford's user avatar
0 votes
1 answer
332 views

centos 7.5 attempting to create vm using kickstart and get error cannot find /etc./iscsi/initiatorname.iscsi file

I'm using the command: sudo virt-install --name tester1.example.com --ram 2048 --disk path=/var/lib/libvirt/images/tester1.example.com.qcow2,format=qcow2,size=12 --location=ftp://192.168.1.88/pub/...
user297385's user avatar
1 vote
0 answers
218 views

Why does the node (multipathed with boot drive on mpatha) require both the TGT servers to boot up and not anyone of them

This is what I have done I have a VM which contains: A Ceph client A TGT server DHCP server the machine exposes the image (RHEL) present in Ceph and PXE boots the remote node (which is the ...
Mihir Borkar's user avatar
0 votes
1 answer
1k views

Understanding USB message logs to troubleshoot USB automounting

I am trying to troubleshoot an issue where on one server my USB automounts whereas on another server it isn't. Comparing the logs for both instances, I am trying to understand what each line means. ...
tiger_groove's user avatar
0 votes
1 answer
1k views

iscsi target screwup - remapping targets and block devices

We've been running a CentOS 7 server successfully for a couple months with two iSCSI targets, all set up using targetcli. These are mounted from a Windows 7 box using the MS iSCSI Initiator. Worked ...
Perry's user avatar
  • 1
0 votes
1 answer
392 views

Block session with iscsiadm & multipath

I have a cluster of CentOS servers that all connect to NAS devices via iSCSI. The most recent NAS I need to add is a LenovoEMC px4-400r. On this Lenovo NAS, when iSCSI is enabled, it is enabled on all ...
Brad Johnson's user avatar
4 votes
0 answers
149 views

What identifier is used by multipath to determine the same block devices?

In my application I want to multipath different devices, both local and iSCSI or FC exported. However, I fail to google the documentation that would clearly explain the mechanism of decision that ...
ikudyk's user avatar
  • 83
1 vote
0 answers
55 views

iscsi discovery issue

I have setup an iSCSI server on CentOS 7 and client is also CentOS 7. I have successfully created a lun and also accessed it on client machine. Now when I create a new lun to be shared with same ...
Mohammed Ali's user avatar
1 vote
0 answers
198 views

Use from multiple sessions of iSCSI

I have set the configuration file of iSCSI to attempt login at startup. The system creates two session with two different targets. How can I format and mount a particular node using the existing ...
Prince Rachit's user avatar
1 vote
0 answers
3k views

Auto mount iscsi device on system start (Ubuntu)

I want to auto-mount /dev/sda1 (iscsi device) to /iscsi2 on system start so I added the following line to /etc/fstab: UUID=d159d371-379f-4730-a832-0fad31fd3ff6 /iscsi2 ext4 auto,...
mcb's user avatar
  • 111
1 vote
0 answers
375 views

How to configure iscsi offloading on centos 7

Could someone explain how to configure iscsi offloading on Centos7. We have this nic card Hewlett-Packard Company FlexFabric 10Gb 2-port 533FLR-T Adapter, it's based upon Broadcom Limited NetXtreme ...
Wodel's user avatar
  • 31
0 votes
0 answers
320 views

How to fix the error "make sure the kernel module is loaded"?

I am trying to setup a iSCSI envrionment on Xubuntu with iSCSI Enterprise Target. I choose this impelmentation because I need the iSCSI redirection feature. First, I installed below 2 pacakges: Then ...
smwikipedia's user avatar
  • 1,203
1 vote
0 answers
76 views

How to tell the protocol/type of storage drives?

I'm sorry if this is question is badly formed -- I am really struggling with the topic of storage devices. Say I log into a random linux machine. It has several attached drives listed in df -h. I ...
lowly_junior_sysadmin's user avatar
0 votes
1 answer
5k views

Set up two separate LUNs on same iSCSI target for two different initiators

I'm trying to setup my iSCSI server using targetcli. Initial setup went fine and my Windows iSCSI initiator can connect to my first target / portal / LUN. Now I'm trying to setup another LUN. I want ...
velis's user avatar
  • 377
0 votes
1 answer
344 views

Install CentOS 7 without any local disk?

If we only got disks from iSCSI (additionally multipath) and no local disks, how can we install a CentOS 7 on them?
pepite's user avatar
  • 1,103
1 vote
1 answer
721 views

Small boot drive and an iSCSI primary volume

I have a main storage / iSCSI server where I want to keep all my data. On the other side I have workstations and VMs where I want no data at all. However due to performance requirements I want to ...
velis's user avatar
  • 377
1 vote
1 answer
202 views

Freenas iscsi to VMware - Mount newly created disk to Ubuntu

We've installed Freenas with 4 WD RED drives. We have successfully enabled and configured the iscsi service for one of the disks. On the other hand, vmware has succesfully created the iscsi adapter, ...
Ioannis's user avatar
  • 21
0 votes
1 answer
217 views

after update targetd and rtslib clients could not connect anymore

update of targetcli and python-rtslib changed attribute optimal_sector to 512 and removed attribute fabric_max_sectors from the config. target is running, listening on port 3260 but clients (Windows)...
Anne's user avatar
  • 1
0 votes
1 answer
274 views

sharing a drive over the network

I want to share a drive over the Local Area Network so that I can use it for building system images (my machine itself doesn't have that much storage and I'd prefer to use a drive over the network ...
Walter's user avatar
  • 1,234
1 vote
1 answer
213 views

Is there disk-level caching in Solaris 11?

I have an iSCSI disk at /dev/rdsk/c5t6d0 I have made a partition (slice with UEFI label) at: /dev/rdsk/c5t6d0s0 Now I write some data to the slice: echo "...
Eden's user avatar
  • 1,181
2 votes
1 answer
677 views

Difference between multipath -ll command and multipath -l command

From the multipath man page http://linux.die.net/man/8/multipath multipath -l shows the current multipath topology from information fetched in sysfs and the device mapper while multipath -ll shows ...
The_Lost_Avatar's user avatar
0 votes
1 answer
418 views

Lost config targetcli

I have a disc with data and lost targetcli configuration. The disk.img exists and has a 900 GB size but I do not have the saveconfig.json configuration file. How to recover or extract the data from ...
user517273's user avatar
2 votes
1 answer
1k views

Is the iSCSI block device having client side-read cache (if yes how to disable)?

I have a remote block device with the test ext4 filesystem image. On the iSCSI initiator side, I have this device detected as let's say /dev/sdb. I am not mounting this filesystem but instead I use ...
MAQ's user avatar
  • 980
0 votes
1 answer
777 views

List connected clients to an iscsi target

Is there any way to list the connected clients to an ISCSI target from another client. While sitting on the target itself , it may be easier to see which clients have mounted a particular target , ...
Ijaz Ahmad's user avatar
  • 7,222
0 votes
1 answer
2k views

SCSI disk not shown up during Rhel7 OS installation

In my system, I configured my SCSI disk and tried to install Rhel7 Beta2 OS on it. But for installation, I can't see the SCSI disk. If I'm trying to install other OS I can see the SCSI disk. I don't ...
sam forums's user avatar
1 vote
2 answers
1k views

what iscsiadm actually does?

OK, here im talking about centos7 system related iscsi initiator. When we setup correct iscsi configurations on the files of; /etc/iscsi/initiatorname.iscsia, /etc/iscsi/iscsid.conf we still required ...
krs4keshara's user avatar