无法在 XenServer 6.5 上使用 gdisk 扩展分区

Eri*_* B. 2 linux partition xenserver fdisk

我在 XenServer 6.5 上扩展我的分区时遇到问题。我最初有一个 1.4TiB 设备(硬件 RAID5),后来升级到 10.9TiB。我通过一次换出一个磁盘来升级 RAID,直到更换 4 个磁盘。

然后我使用 RAID 配置将 RAID 扩展到完整的 10.9TiB 大小。

=> ctrl slot=4 ld all show status
   logicaldrive 1 (10.9 TB, 5): OK
Run Code Online (Sandbox Code Playgroud)

我接下来告诉 Xen dom 重新扫描 scsi 设备:

echo 1 >  /sys/block/sda/device/rescan 
Run Code Online (Sandbox Code Playgroud)

现在,当我启动 gdisk 时,我看到以下内容:

Disk /dev/sda: 23441913520 sectors, 10.9 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): A28B730F-3064-494E-BD7E-DDE8CAD5A12D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2930122766
Partitions will be aligned on 2048-sector boundaries
Total free space is 6042 sectors (3.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         8388641   4.0 GiB     0700  
   2         8390656        16777249   4.0 GiB     0700  
   3        16779264      2930122766   1.4 TiB     8E00  
Run Code Online (Sandbox Code Playgroud)

所以我看到gdisk能够看到完整的 10.9TiB,但我似乎无法删除并重新创建比原始 1.4TiB 更大的 parititon 3。此外,它说last usable sector is 2930122766

如何让 gdisk 允许我创建从扇区 16779264-23441913520 开始的分区?

kla*_*orn 8

让 gdisk 验证磁盘是否有问题(密钥 v)。

就我而言,它确定了:

The secondary header's self-pointer indicates that it doesn't reside at the end of the disk. If you've added a disk to a RAID array, use the 'e' option on the experts' menu to adjust the secondary header's and partition table's locations.
Run Code Online (Sandbox Code Playgroud)

我用了 x e

然后m(ain 菜单)p按预期显示“最后一个可用扇区”。