Hello,
I'm trying to set up an ISCSI box for shared storage to connect to my xenserver environment. I am using Centos 7 as iSCSI storage. I am using targetcli for iSCSI configuration.
I can set up everything just fine, the xenserver machine will connect and format the volume. I can set up VMS on it and all works fine until I reboot.
At this point the xenserver box will no longer connect and mapped LUN is shown as disconnected. Looking at the storage box a little further, I see that the LUN is not there anymore. But when I run "gdisk /dev/sda"; I do see the partition. Its only not visible in targetcli anymore. If I try to re-attach/create the LUN in targetcli then it tells me that the disk is in use.
/backstores/block> create xenhq_vl01 /dev/sda5 Cannot configure StorageObject because device /dev/sda5 is already in use
There is one another LUN mapped to a windows box which is not part of xen and it is working perfectly alright.
After rebooting the Xen box; messages file in Centos reported following:
Jun 27 07:27:44 STGHQ01 target: Could not create StorageObject xenhq_vl01: Cannot configure StorageObject because device /dev/sda5 is already in use, skipped
Jun 27 07:27:44 STGHQ01 target: Could not find matching StorageObject for LUN 0, skipped
Jun 27 07:27:44 STGHQ01 target: Could not find matching TPG LUN 0 for MappedLUN 0, skipped
Any recommendations/suggestions? What am I missing here? Thanks.
iSCSI LUN from Centos mapped to xenserver is keep on disappearing
-
- Posts: 2
- Joined: 2019/06/28 06:20:34
Re: iSCSI LUN from Centos mapped to xenserver is keep on disappearing
It sounds to me like you have the host activating an LVM PV on the "disk" on the host. Perhaps you need to adjust the filter line in lvm.conf on the host to stop it trying to use it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: iSCSI LUN from Centos mapped to xenserver is keep on disappearing
That's possible ... Set a global filter for your iscsi block device , so it won't be checked and used upon reboot of the CentOS 7 system.
If LVM is locking the block device - then target.service can't use it (as its busy).
If LVM is locking the block device - then target.service can't use it (as its busy).
-
- Posts: 2
- Joined: 2019/06/28 06:20:34
Re: iSCSI LUN from Centos mapped to xenserver is keep on disappearing
Well I even tried using filters and global filters in /etc/lvm/lvm.conf but nothing worked out. So instead of using 'block' device; I ended up using "fileio" in targetcli. Everything works perfectly alright now.