不忘初心,方得始终.

Gen8上的ESXi折腾纪录(硬盘篇)

留下纪录,以备查验,走了不少弯路啊

首先说一下,Gen8的内置的软RAID支持单块硬盘初始化成RAID0使用的,也就是说,单块硬盘也可以开RAID模式,然后在ilo里面就可以看到硬盘信息了,并且内置的RAID支持识别HDD和SSD,初始化过后,在ESXi里面也可以正常识别为SSD。

一开始用ACHI模式在ESXi好像很卡?

然后切换到了RAID模式,直接切换后会识别不到硬盘,必须去RAID的控制器初始化一下,也就是POST的时候看见F5就按一下F5进去。
切换到RAID模式之后,在vSphere添加硬盘竟然出现了错误!!

调用对象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” 失败

这不是坑爹么……

多方查验,出现这个问题是因为磁盘上有不支持的分区格式,我去,写的明明是使用整块磁盘,您不能重新初始化一下分区表吗

网上的解决方法,来自ESXi5.1调用对象”ha-datastoresystem”出错及处理虽然我装的是ESXi6但是按照这个解决了,就是开SSH进去用fdisk删除了分区。

记录一下方法,避免原作者网站消失……

1、查看磁盘情况

[root@Gen8-ESXi:~] fdisk -l

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Plea se use partedUtil
***

Found valid GPT with protective MBR; using GPT

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 121438208 sectors,  115M
Logical sector size: 512
Disk identifier (GUID): 4bf285cd-9feb-4a1f-babb-9c48602ae7b6
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 121438174

Number  Start (sector)End (sector)  Size   Code  Name
   1  6481918128   0700
   58224  520191499K   0700
   6  520224 1032191499K   0700
   7 1032224 1257471219K   0700
   8 1257504 1843199571K   0700
   9 1843200 7086079   5120K   0700
  10 7086080   121438160109M   0700
fdisk: device has more than 2^32 sectors, can't use all of them
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/naa.600508b1001c2fc9783875b1ae59d44a: 4294967295 sectors, 4095M
Logical sector size: 512
Disk identifier (GUID): bb8fe184-91c1-439d-9b86-5cc0ce61f7aa
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860467598

Number  Start (sector)End (sector)  Size   Code  Name
   12048  5860463804   5588M   0700
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/naa.600508b1001cd4c1eeb69635def8f132: 117161280 sectors,  111M
Logical sector size: 512
Disk identifier (GUID): 26aca1e5-894f-43e2-b698-1b8a7fa46d27
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 117231374

Number  Start (sector)End (sector)  Size   Code  Name
   12048   117229567111M   0700  Basic data partition

(这是后来加了一块SSD到SATA5之后出错的信息,套用一下,之前没保存)

2、删除磁盘分区(注意一定要分清楚磁盘编号,别删错了)

[root@Gen8-ESXi:~] fdisk /dev/disks/naa.600508b1001cd4c1eeb69635def8f132

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***

Found valid GPT with protective MBR; using GPT

Command (m for help): d
Selected partition 1

Command (m for help): 1
1: unknown command
Command Action
o   create a new empty DOS partition table
p   print the partition table
q   quit without saving changes
s   create a new empty Sun disklabel

Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.

The number of cylinders for this disk is set to 7264.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table

然后现在就可以正常的添加硬盘了~:smiley:

发表新评论 选择表情