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、查看磁盘情况

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[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、删除磁盘分区(注意一定要分清楚磁盘编号,别删错了)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[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:


Gen8上的ESXi折腾纪录(硬盘篇)
https://cuojue.org/read/gen8-esxi-disk.html
作者
WeiCN
发布于
2016年4月2日
许可协议