ISCSI LUN 盘文件系统由NTFS变成RAW,windows不能打开lUN数据的解决办法

检查错误messages 

1: 检查存储方面的错误日志

 

2:检查主机的日志信息, 主机错误日志提示如下:
1) The file system structure on the disk is corrupt and unusable. Please
srun the chkdsk utility on the volume E:.

 

2) The device, \Device\Harddisk1, is not ready for access yet.
  在主机的日志里面报大量的上面错误提示

解决思路过程

1)确认存储的LUN 路径是
lun show

 

2) 在存储使用下面的命令检查lun是否正常,lun所在 卷空间是否满
lun show / lun show –m   //查看LUN是否offline 、正常情况是online

 

igroup show –v                //查看主机的hostnode是否连接
iscsi show initiators          //显示hostnode是否连接
df –g  -r  data                    //检查本卷空间和snapshot空间是否使用满

 

经检查上面的步骤 显示的结果都是正常的

确认iscsi IQN地址是否和存储端一致确定microsoft  iscsi initiators 里面的存储Id地址
和target 都是正常 (本案例是此步骤是正常的)
检查系统分区

在windows 主机使用下面的命令 检查:
diskpart / list volume  查看分区信息,

 

如果例如LUN盘是G分区,g分区变成RAW格式,使用下面的方法进一步操作

 

 C:\WINDOWS\system32>label e:LUN 有些情况更改 卷标可以解决,当前是没有解决
  Cannot change label on this volume.  The request is not supported.

使用CHDSK命令修复帮助
C:\WINDOWS\system32>help chkdsk
Checks a disk and displays a status report.
CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]
  volume          Specifies the drive letter (followed by a colon),
                           mount point, or volume name.
              filename        FAT/FAT32 only: Specifies the files to check for fragmentation
               /F              Fixes errors on the disk.
               /V              On FAT/FAT32: Displays the full path and name of every file
                                          on the disk.
                                         On NTFS: Displays cleanup messages if any.
                /R              Locates bad sectors and recovers readable information
                                          (implies /F).
                /L:size         NTFS only:  Changes the log file size to the specified number
                         of kilobytes.  If size is not specified, displays current size.
                 /X              Forces the volume to dismount first if necessary.
                        All opened handles to the volume would then be invalid
                       (implies /F).
                /I              NTFS only: Performs a less vigorous check of index entries.
                /C              NTFS only: Skips checking of cycles within the folder
                                    structure.
使用CHDSK -F命令修复 LUN盘
C:\WINDOWS\system32>chkdsk /F e:
The type of the file system is NTFS.
Volume label is New Volume.
CHKDSK is verifying files (stage 1 of 3)...
File verification completed.
Deleting orphan file record segment 4.
Deleting orphan file record segment 7.
……………………………………………………………………………………………………………….
信息省略
……………………………………………………………………………………………………………….
 209736575 KB total disk space.
  20150092 KB in 134 files.
        88 KB in 18 indexes.
         0 KB in bad sectors.
     76275 KB in use by the system.
     65536 KB occupied by the log file.
 189510120 KB available on disk.
      4096 bytes in each allocation unit.
  52434143 total allocation units on disk.
  47377530 allocation units available on disk.

C:\WINDOWS\system32>
总结 使用CHDSK -F命令修复结束后,在磁盘管理里面就可以看到LUN盘的文件系统是ntfs,并访问lun可以使用,问题解决
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值