whfit
asked on
QNAP - iSCSI Lun in error cannot mount to Windows
Hi all
I hope someone can help as I'm waiting on QNAP support but no reply yet.
We have a QNAP with iSCSI connection hosting some VM for hyper V. The QNAP lost power when a cleaner pulled the plug and when coming back on line the iSCSI can connect in Windows but no drive is shown. The QNAP shows the LUN in error as shown here .
I've tried to follow this article using Winscp but the LUn never comes enabled.
https://www.qnap-singapore.com/faqs/qnap-iscsi-problems-how-to-fix/qnap-iscsi-lun-lost-and-how-to-restore/
The iscsi_trgt.conf file output is here and as you can see below.
[iSCSIPortal]
targetIQNPrefix = iqn.2004-04.com.qnap:ts-47 3:iscsi.
bServiceEnable = TRUE
servicePort = 3260
initiatorBitmap00 = 00000001
log = TRUE
logFlags = 1
bSupportMultiACL = 1
targetBitmap00 = 00000006
LUNBitmap00 = 00000003
[init0Info]
initiatorIndex = 0
initiatorIQN = iqn.2004-04.com.qnap:all:i scsi.defau lt.ffffff
initiatorAlias = Default Policy
initiatorTargetBitmap00 = 00000006
initiatorLUNBitmap00 = 00000003
[InitiatorKey]
iqn.2004-04.com.qnap:all:i scsi.defau lt.ffffff = 0
[TargetKey]
target_iqn.2004-04.com.qna p:ts-473:i scsi.smas2 .2de23f = 1
target_iqn.2004-04.com.qna p:ts-473:i scsi.backu p.2de23f = 2
[LUNKey]
LUN_SMAS_0 = 0
LUN_backup_0 = 1
[LUN0Info]
LUNIndex = 0
LUNName = SMAS_0
LUNPath = /share/CACHEDEV1_DATA
LUNMetaPath = /share/CACHEDEV1_DATA/.@is csi.img/iS CSI-SMAS_0 -5c933bba: 001
LUNSectorSize = 512
LUNCapacity = 3145728
LUNFileCount = 3
LUNThinAllocate = FALSE
LUNThreshold = -1
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNInitBitmap00 = 00000001
NAANaming = qnap
bRemoving = FALSE
LUNTargetBitmap00 = 00000002
VSUPEnable = 0
FUAEnable = 0
FBNumber = 0
LUNSerialNum = da38c8f2-ad35-4fa8-a824-5b 74430db554
LUNNAA = 6e843b6da38c8f2dad35d4fa8d a824d5
LUNAllocated = 3298535383040
LUNBackupSnapName =
[LUN0Init0Info]
LUNIndex = 0
initiatorIndex = 0
initiatorLUNNumber = -1
accessMode = 1
[target1Info]
targetIndex = 1
targetName = smas2
targetIQN = iqn.2004-04.com.qnap:ts-47 3:iscsi.sm as2.2de23f
targetAlias = smas2
bTargetDataDigest = FALSE
bTargetHeaderDigest = FALSE
targetStatus = 0
targetInitBitmap00 = 00000001
bTargetClusterEnable = TRUE
targetLUNNumBitmap00 = 00000001
targetLUNBitmap00 = 00000001
[target1Init0Info]
targetIndex = 1
initiatorIndex = 0
bCHAPEnable = FALSE
bMutualCHAPEnable = FALSE
CHAPUserName =
CHAPPasswd =
mutualCHAPUserName =
mutualCHAPPasswd =
[LUN0Target1Info]
LUNIndex = 0
targetIndex = 1
LUNNumber = 0
LUNEnable = TRUE
[target2Info]
targetIndex = 2
targetName = backup
targetIQN = iqn.2004-04.com.qnap:ts-47 3:iscsi.ba ckup.2de23 f
targetAlias = backup
bTargetDataDigest = FALSE
bTargetHeaderDigest = FALSE
targetStatus = 0
targetInitBitmap00 = 00000001
bTargetClusterEnable = TRUE
targetLUNNumBitmap00 = 00000001
targetLUNBitmap00 = 00000002
[target2Init0Info]
targetIndex = 2
initiatorIndex = 0
bCHAPEnable = FALSE
bMutualCHAPEnable = FALSE
CHAPUserName =
CHAPPasswd =
mutualCHAPUserName =
mutualCHAPPasswd =
[LUN1Info]
LUNIndex = 1
LUNName = backup_0
LUNPath = /share/CACHEDEV1_DATA
LUNMetaPath = /share/CACHEDEV1_DATA/.@is csi.img/iS CSI-backup _0-5d39fa5 d:001
LUNSectorSize = 512
LUNCapacity = 3145728
LUNFileCount = 3
LUNThinAllocate = TRUE
LUNThreshold = 80
LUNAllocated = 4096
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNInitBitmap00 = 00000001
NAANaming = qnap
bRemoving = FALSE
LUNTargetBitmap00 = 00000004
VSUPEnable = 0
FUAEnable = 0
FBNumber = 0
LUNSerialNum = ff835acd-5a46-453f-847b-b8 122dfdb7ed
LUNNAA = 6e843b6ff835acdd5a46d453fd 847bdb
[LUN1Init0Info]
LUNIndex = 1
initiatorIndex = 0
initiatorLUNNumber = -1
accessMode = 1
[LUN1Target2Info]
LUNIndex = 1
targetIndex = 2
LUNNumber = 0
LUNEnable = TRUE
[target0Info]
bTargetClusterEnable = TRUE
This is also the screenshot of .@iscsi.img file
I've tried numerous entries on the iscsi_trgt.conf file but nothing seems to work.
Can anyone help as all I need to do it get the VM's hard drives off as I can easily recreate them.
I hope someone can help as I'm waiting on QNAP support but no reply yet.
We have a QNAP with iSCSI connection hosting some VM for hyper V. The QNAP lost power when a cleaner pulled the plug and when coming back on line the iSCSI can connect in Windows but no drive is shown. The QNAP shows the LUN in error as shown here .
I've tried to follow this article using Winscp but the LUn never comes enabled.
https://www.qnap-singapore.com/faqs/qnap-iscsi-problems-how-to-fix/qnap-iscsi-lun-lost-and-how-to-restore/
The iscsi_trgt.conf file output is here and as you can see below.
[iSCSIPortal]
targetIQNPrefix = iqn.2004-04.com.qnap:ts-47
bServiceEnable = TRUE
servicePort = 3260
initiatorBitmap00 = 00000001
log = TRUE
logFlags = 1
bSupportMultiACL = 1
targetBitmap00 = 00000006
LUNBitmap00 = 00000003
[init0Info]
initiatorIndex = 0
initiatorIQN = iqn.2004-04.com.qnap:all:i
initiatorAlias = Default Policy
initiatorTargetBitmap00 = 00000006
initiatorLUNBitmap00 = 00000003
[InitiatorKey]
iqn.2004-04.com.qnap:all:i
[TargetKey]
target_iqn.2004-04.com.qna
target_iqn.2004-04.com.qna
[LUNKey]
LUN_SMAS_0 = 0
LUN_backup_0 = 1
[LUN0Info]
LUNIndex = 0
LUNName = SMAS_0
LUNPath = /share/CACHEDEV1_DATA
LUNMetaPath = /share/CACHEDEV1_DATA/.@is
LUNSectorSize = 512
LUNCapacity = 3145728
LUNFileCount = 3
LUNThinAllocate = FALSE
LUNThreshold = -1
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNInitBitmap00 = 00000001
NAANaming = qnap
bRemoving = FALSE
LUNTargetBitmap00 = 00000002
VSUPEnable = 0
FUAEnable = 0
FBNumber = 0
LUNSerialNum = da38c8f2-ad35-4fa8-a824-5b
LUNNAA = 6e843b6da38c8f2dad35d4fa8d
LUNAllocated = 3298535383040
LUNBackupSnapName =
[LUN0Init0Info]
LUNIndex = 0
initiatorIndex = 0
initiatorLUNNumber = -1
accessMode = 1
[target1Info]
targetIndex = 1
targetName = smas2
targetIQN = iqn.2004-04.com.qnap:ts-47
targetAlias = smas2
bTargetDataDigest = FALSE
bTargetHeaderDigest = FALSE
targetStatus = 0
targetInitBitmap00 = 00000001
bTargetClusterEnable = TRUE
targetLUNNumBitmap00 = 00000001
targetLUNBitmap00 = 00000001
[target1Init0Info]
targetIndex = 1
initiatorIndex = 0
bCHAPEnable = FALSE
bMutualCHAPEnable = FALSE
CHAPUserName =
CHAPPasswd =
mutualCHAPUserName =
mutualCHAPPasswd =
[LUN0Target1Info]
LUNIndex = 0
targetIndex = 1
LUNNumber = 0
LUNEnable = TRUE
[target2Info]
targetIndex = 2
targetName = backup
targetIQN = iqn.2004-04.com.qnap:ts-47
targetAlias = backup
bTargetDataDigest = FALSE
bTargetHeaderDigest = FALSE
targetStatus = 0
targetInitBitmap00 = 00000001
bTargetClusterEnable = TRUE
targetLUNNumBitmap00 = 00000001
targetLUNBitmap00 = 00000002
[target2Init0Info]
targetIndex = 2
initiatorIndex = 0
bCHAPEnable = FALSE
bMutualCHAPEnable = FALSE
CHAPUserName =
CHAPPasswd =
mutualCHAPUserName =
mutualCHAPPasswd =
[LUN1Info]
LUNIndex = 1
LUNName = backup_0
LUNPath = /share/CACHEDEV1_DATA
LUNMetaPath = /share/CACHEDEV1_DATA/.@is
LUNSectorSize = 512
LUNCapacity = 3145728
LUNFileCount = 3
LUNThinAllocate = TRUE
LUNThreshold = 80
LUNAllocated = 4096
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNInitBitmap00 = 00000001
NAANaming = qnap
bRemoving = FALSE
LUNTargetBitmap00 = 00000004
VSUPEnable = 0
FUAEnable = 0
FBNumber = 0
LUNSerialNum = ff835acd-5a46-453f-847b-b8
LUNNAA = 6e843b6ff835acdd5a46d453fd
[LUN1Init0Info]
LUNIndex = 1
initiatorIndex = 0
initiatorLUNNumber = -1
accessMode = 1
[LUN1Target2Info]
LUNIndex = 1
targetIndex = 2
LUNNumber = 0
LUNEnable = TRUE
[target0Info]
bTargetClusterEnable = TRUE
This is also the screenshot of .@iscsi.img file
I've tried numerous entries on the iscsi_trgt.conf file but nothing seems to work.
Can anyone help as all I need to do it get the VM's hard drives off as I can easily recreate them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The LUN1Info file is now
[LUN1Info]
LUNIndex = 1
LUNName = SMAS_0
LUNPath = /share/CACHEDEV1_DATA
LUNMetaPath = /share/CACHEDEV1_DATA/.@is
LUNSectorSize = 512
LUNCapacity = 3145728
LUNFileCount = 3
LUNThinAllocate = TRUE
LUNThreshold = 80
LUNAllocated = 4096
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNInitBitmap00 = 00000001
NAANaming = qnap
bRemoving = FALSE
LUNTargetBitmap00 = 00000004
VSUPEnable = 0
FUAEnable = 0
FBNumber = 0
LUNSerialNum = ff835acd-5a46-453f-847b-b8
LUNNAA = 6e843b6ff835acdd5a46d453fd
but still no joy.