All of lore.kernel.org
 help / color / mirror / Atom feed
* LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000
@ 2020-12-28 17:43 Björn Wiggert (wiggert.it)
  2020-12-30  3:09 ` Mark Harvey
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Wiggert (wiggert.it) @ 2020-12-28 17:43 UTC (permalink / raw)
  To: stgt

Hi, we are running
*	QNAP NAS
*	Debian 10
*	Host VMware 6.7U3 Hypervisor

a) Exporting an iSCSI-LUN-target with the QNAP, what is using LIO therfor, and accessing it from VMware (read/write) works fine.
b) Exporting an iSCSI-LUN-target with a fresh Debian 10 using LIO and accessing it with a Windows 7 iSCSI initiator (read/write) works fine.

Using the target b) (Debian 10 / LIO) and the initiator a) (VMware v6.7) works as far as
*	VMware sees the target host
*	VMware can login and sees the target
*	VMware can READ the data on the LUN (sees partition table, size of it, partition types, etc)
 
As soon as we try to write anything VMware reports

> 2020-12-28T14:36:00.775Z info hostd[2098690] [Originator@6876 sub=Partitionsvc opID=esxui-2f96-fbd9 user=root] Status : 255 Output: gpt 0 0 0 0
>
> Error : Error: Read-only file system during write on /dev/disks/naa.60014054b666e78a1c443ee941c60e3e SetPtableGpt: Unable to commit to disk


and the Debian 10 box reports:

> kernel: [ 80.210044] TARGET_CORE[iSCSI]: Detected WRITE_PROTECTED LUN Access for 0x00000000

I don't recognize why VMware mounts the iSCSI LUN read-only but Windows 7 mounts it read-write and VMware mount the QNAP-iSCSI-LUN also read-write.

I appreciate any hint - thank you therfor in advance.

Jan 

 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000
  2020-12-28 17:43 LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000 Björn Wiggert (wiggert.it)
@ 2020-12-30  3:09 ` Mark Harvey
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Harvey @ 2020-12-30  3:09 UTC (permalink / raw)
  To: Björn Wiggert; +Cc: stgt

Looks and feels like ESXi is trying to set a persistent scsi reservation 

Sent from my iPhone

> On 29 Dec 2020, at 12:20, Björn Wiggert <b@wiggert.it> wrote:
> 
> Hi, we are running
> *    QNAP NAS
> *    Debian 10
> *    Host VMware 6.7U3 Hypervisor
> 
> a) Exporting an iSCSI-LUN-target with the QNAP, what is using LIO therfor, and accessing it from VMware (read/write) works fine.
> b) Exporting an iSCSI-LUN-target with a fresh Debian 10 using LIO and accessing it with a Windows 7 iSCSI initiator (read/write) works fine.
> 
> Using the target b) (Debian 10 / LIO) and the initiator a) (VMware v6.7) works as far as
> *    VMware sees the target host
> *    VMware can login and sees the target
> *    VMware can READ the data on the LUN (sees partition table, size of it, partition types, etc)
> 
> As soon as we try to write anything VMware reports
> 
>> 2020-12-28T14:36:00.775Z info hostd[2098690] [Originator@6876 sub=Partitionsvc opID=esxui-2f96-fbd9 user=root] Status : 255 Output: gpt 0 0 0 0
>> 
>> Error : Error: Read-only file system during write on /dev/disks/naa.60014054b666e78a1c443ee941c60e3e SetPtableGpt: Unable to commit to disk
> 
> 
> and the Debian 10 box reports:
> 
>> kernel: [ 80.210044] TARGET_CORE[iSCSI]: Detected WRITE_PROTECTED LUN Access for 0x00000000
> 
> I don't recognize why VMware mounts the iSCSI LUN read-only but Windows 7 mounts it read-write and VMware mount the QNAP-iSCSI-LUN also read-write.
> 
> I appreciate any hint - thank you therfor in advance.
> 
> Jan 
> 
>  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000
  2020-12-28 17:40 Björn Wiggert (wiggert.it)
@ 2021-01-02 16:01 ` Bodo Stroesser
  0 siblings, 0 replies; 4+ messages in thread
From: Bodo Stroesser @ 2021-01-02 16:01 UTC (permalink / raw)
  To: Björn Wiggert (wiggert.it), target-devel

Probability is high, that your setup indeed does not allow write access to the target for VMWare.
Please check target parameters (e.g. demo_mode) and / or ACLs.

Bodo

On 28.12.20 18:40, Björn Wiggert (wiggert.it) wrote:
> Hi, we are running
> *	QNAP NAS
> *	Debian 10
> *	Host VMware 6.7U3 Hypervisor
> 
> a) Exporting an iSCSI-LUN-target with the QNAP, what is using LIO therfor, and accessing it from VMware (read/write) works fine.
> b) Exporting an iSCSI-LUN-target with a fresh Debian 10 using LIO and accessing it with a Windows 7 iSCSI initiator (read/write) works fine.
> 
> Using the target b) (Debian 10 / LIO) and the initiator a) (VMware v6.7) works as far as
> *	VMware sees the target host
> *	VMware can login and sees the target
> *	VMware can READ the data on the LUN (sees partition table, size of it, partition types, etc)
>   
> As soon as we try to write anything VMware reports
> 
>> 2020-12-28T14:36:00.775Z info hostd[2098690] [Originator@6876 sub=Partitionsvc opID=esxui-2f96-fbd9 user=root] Status : 255 Output: gpt 0 0 0 0
>>
>> Error : Error: Read-only file system during write on /dev/disks/naa.60014054b666e78a1c443ee941c60e3e SetPtableGpt: Unable to commit to disk
> 
> 
> and the Debian 10 box reports:
> 
>> kernel: [ 80.210044] TARGET_CORE[iSCSI]: Detected WRITE_PROTECTED LUN Access for 0x00000000
> 
> I don't recognize why VMware mounts the iSCSI LUN read-only but Windows 7 mounts it read-write and VMware mount the QNAP-iSCSI-LUN also read-write.
> 
> I appreciate any hint - thank you therfor in advance.
> 
> Jan
> 
>   
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000
@ 2020-12-28 17:40 Björn Wiggert (wiggert.it)
  2021-01-02 16:01 ` Bodo Stroesser
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Wiggert (wiggert.it) @ 2020-12-28 17:40 UTC (permalink / raw)
  To: target-devel

Hi, we are running
*	QNAP NAS
*	Debian 10
*	Host VMware 6.7U3 Hypervisor

a) Exporting an iSCSI-LUN-target with the QNAP, what is using LIO therfor, and accessing it from VMware (read/write) works fine.
b) Exporting an iSCSI-LUN-target with a fresh Debian 10 using LIO and accessing it with a Windows 7 iSCSI initiator (read/write) works fine.

Using the target b) (Debian 10 / LIO) and the initiator a) (VMware v6.7) works as far as
*	VMware sees the target host
*	VMware can login and sees the target
*	VMware can READ the data on the LUN (sees partition table, size of it, partition types, etc)
 
As soon as we try to write anything VMware reports

> 2020-12-28T14:36:00.775Z info hostd[2098690] [Originator@6876 sub=Partitionsvc opID=esxui-2f96-fbd9 user=root] Status : 255 Output: gpt 0 0 0 0
>
> Error : Error: Read-only file system during write on /dev/disks/naa.60014054b666e78a1c443ee941c60e3e SetPtableGpt: Unable to commit to disk


and the Debian 10 box reports:

> kernel: [ 80.210044] TARGET_CORE[iSCSI]: Detected WRITE_PROTECTED LUN Access for 0x00000000

I don't recognize why VMware mounts the iSCSI LUN read-only but Windows 7 mounts it read-write and VMware mount the QNAP-iSCSI-LUN also read-write.

I appreciate any hint - thank you therfor in advance.

Jan 

 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-02 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 17:43 LinuxIO (LIO) target @ Debian 10 and VMware 6.7 Initiator: Detected WRITE_PROTECTED LUN Access for 0x00000000 Björn Wiggert (wiggert.it)
2020-12-30  3:09 ` Mark Harvey
  -- strict thread matches above, loose matches on Subject: below --
2020-12-28 17:40 Björn Wiggert (wiggert.it)
2021-01-02 16:01 ` Bodo Stroesser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.