我们有两台运行 VMWare 的主机ESXi 5.1.0. 两者均通过 iSCSI 连接到 RAID 5 阵列。
该 lun 是一个带有 vm 的现有 lun,但重启后主机无法识别它。
在 vSphere Client 中可见配置 > 存储 > 设备但不是在配置 > 存储 > 数据存储
有人知道我们该如何解决这个问题吗?
这些是我们在主机上尝试的一些命令
~ # voma -m vmfs -f check -d /vmfs/devices/disks/naa.60080e50002e0074000003975193cbf3
Checking if device is actively used by other hosts
Running VMFS Checker version 0.9 in check mode
Initializing LVM metadata, Basic Checks will be done
ERROR: Missing LVM Magic. Disk doesn't have valid LVM Device
ERROR: Failed to Initialize LVM Metadata
VOMA failed to check device : Not a Logical Volume
Total Errors Found: 0
通过这个我们就可以看到 LUN。
~ # esxcfg-scsidevs -c
Device UID Device Type Console Device Size Multipath PluginDisplay Name
mpx.vmhba0:C0:T0:L0 CD-ROM /vmfs/devices/cdrom/mpx.vmhba0:C0:T0:L0 0MB NMP Local TSSTcorp CD-ROM (mpx.vmhba0:C0:T0:L0)
naa.600605b004802b101840d2513e1e6628 Direct-Access /vmfs/devices/disks/naa.600605b004802b101840d2513e1e6628 1140592MB NMP Local IBM Disk (naa.600605b004802b101840d2513e1e6628)
naa.60080e50002dff340000019750b4fd4e Direct-Access /vmfs/devices/disks/naa.60080e50002dff340000019750b4fd4e 20MB NMP IBM Serial Attached SCSI Disk (naa.60080e50002dff340000019750b4fd4e)
naa.60080e50002dff340000044d53d7d13d Direct-Access /vmfs/devices/disks/naa.60080e50002dff340000044d53d7d13d 123121MB NMP IBM Serial Attached SCSI Disk (naa.60080e50002dff340000044d53d7d13d)
naa.60080e50002e0074000003975193cbf3 Direct-Access /vmfs/devices/disks/naa.60080e50002e0074000003975193cbf3 614400MB NMP IBM Serial Attached SCSI Disk (naa.60080e50002e0074000003975193cbf3)
分割 :
~ # partedUtil getptbl /vmfs/devices/disks/naa.60080e50002e0074000003975193cbf3
gpt
78325 255 63 1258291200
这是日志文件:来自 /var/log/vmkernel.log
2014-08-01T15:59:33.327Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.337Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.351Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.356Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.361Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.366Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.372Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.377Z cpu16:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:33.388Z cpu16:9200)FSS: 4972: No FS driver claimed device 'mpx.vmhba0:C0:T0:L0': Not supported
2014-08-01T15:59:33.396Z cpu16:9200)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T15:59:33.396Z cpu16:9200)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T15:59:33.396Z cpu16:9200)FSS: 4972: No FS driver claimed device 'control': Not supported
2014-08-01T15:59:33.433Z cpu16:9200)VC: 1547: Device rescan time 27 msec (total number of devices 8)
2014-08-01T15:59:33.433Z cpu16:9200)VC: 1550: Filesystem probe time 80 msec (devices probed 6 of 8)
2014-08-01T15:59:58.817Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.821Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.830Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.838Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.843Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.848Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.854Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.859Z cpu4:9190)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T15:59:58.867Z cpu4:9190)FSS: 4972: No FS driver claimed device 'mpx.vmhba0:C0:T0:L0': Not supported
2014-08-01T15:59:58.880Z cpu0:9190)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T15:59:58.880Z cpu0:9190)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T15:59:58.880Z cpu0:9190)FSS: 4972: No FS driver claimed device 'control': Not supported
2014-08-01T15:59:58.911Z cpu0:9190)VC: 1547: Device rescan time 22 msec (total number of devices 8)
2014-08-01T15:59:58.911Z cpu0:9190)VC: 1550: Filesystem probe time 79 msec (devices probed 6 of 8)
2014-08-01T16:00:01.440Z cpu9:15384)VmkAccess: 637: lanusbcfg: access denied:: dom:appDom(2), obj:appDom(2), mode:inet_socket_bind(17) port no: (68)
2014-08-01T16:00:01.440Z cpu9:15384)VmkAccess: 207: ipAddr = 0.0.0.0, port = 68
2014-08-01T16:01:14.089Z cpu2:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.097Z cpu2:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.142Z cpu2:9200)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T16:01:14.142Z cpu2:9200)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T16:01:14.142Z cpu2:9200)FSS: 4972: No FS driver claimed device 'control': Not supported
2014-08-01T16:01:14.149Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.153Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.158Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.164Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.169Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.174Z cpu0:9200)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.185Z cpu0:9200)FSS: 4972: No FS driver claimed device 'mpx.vmhba0:C0:T0:L0': Not supported
2014-08-01T16:01:14.187Z cpu0:9200)VC: 1547: Device rescan time 21 msec (total number of devices 8)
2014-08-01T16:01:14.187Z cpu0:9200)VC: 1550: Filesystem probe time 82 msec (devices probed 6 of 8)
2014-08-01T16:01:14.377Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.385Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.420Z cpu14:9201)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T16:01:14.420Z cpu14:9201)Vol3: 692: Couldn't read volume header from control: Not supported
2014-08-01T16:01:14.420Z cpu14:9201)FSS: 4972: No FS driver claimed device 'control': Not supported
2014-08-01T16:01:14.430Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.434Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.440Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.445Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.450Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.456Z cpu14:9201)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12
2014-08-01T16:01:14.464Z cpu14:9201)FSS: 4972: No FS driver claimed device 'mpx.vmhba0:C0:T0:L0': Not supported
2014-08-01T16:01:14.466Z cpu14:9201)VC: 1547: Device rescan time 14 msec (total number of devices 8)
2014-08-01T16:01:14.466Z cpu14:9201)VC: 1550: Filesystem probe time 74 msec (devices probed 6 of 8)
2014-08-01T16:01:53.503Z cpu14:8206)NMP: nmp_ThrottleLogForDevice:2319: Cmd 0x1a (0x412402e61dc0, 0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0. Act:NONE
2014-08-01T16:01:53.503Z cpu14:8206)ScsiDeviceIO: 2316: Cmd(0x412402e61dc0) 0x1a, CmdSN 0x263e from world 0 to dev "mpx.vmhba0:C0:T0:L0" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.
2014-08-01T16:02:01.455Z cpu12:15700)VmkAccess: 637: lanusbcfg: access denied:: dom:appDom(2), obj:appDom(2), mode:inet_socket_bind(17) port no: (68)
2014-08-01T16:02:01.455Z cpu12:15700)VmkAccess: 207: ipAddr = 0.0.0.0, port = 68
答案1
请参阅 vmware 的以下 KB 文章。您可能有一个过期的锁。
vmkfstools -B /vmfs/devices/disks/naa.00000000000000000000000000:1
其中naa.00000000000000000000000000:1
替换为要检查的 LUN NAA ID 和分区。请注意“:1”
仅供参考:naa 并非始终是前缀。我的是光纤 lun,以 eui 开头。