给大家一个小细节。我正在使用 OracleVM 管理器。我一直在使用在 Linux 中记为 /dev/xvdc 的 700GB 驱动器。xvdc 确实有几个分区,我将在下面列出。我将驱动器扩展到 1TB 并重新启动服务器,fdisk 现在注意到驱动器更大了。(是的,我知道这应该是 LVM,但我还没有说服该组织采取行动。)
这是在做任何事情之前的 xvdc。
ls -la /dev/xvdc*
brw-rw---- 1 root disk 202, 32 Aug 2 08:24 /dev/xvdc
brw-rw---- 1 root disk 202, 33 Aug 1 18:45 /dev/xvdc1
brw-rw---- 1 root disk 202, 42 Aug 1 18:45 /dev/xvdc10
brw-rw---- 1 root disk 202, 43 Aug 1 18:45 /dev/xvdc11
brw-rw---- 1 root disk 202, 44 Aug 1 18:45 /dev/xvdc12
brw-rw---- 1 root disk 202, 45 Aug 1 18:45 /dev/xvdc13
brw-rw---- 1 root disk 202, 46 Aug 1 18:45 /dev/xvdc14
brw-rw---- 1 root disk 202, 47 Aug 1 18:45 /dev/xvdc15
brw-rw---- 1 root disk 202, 34 Aug 1 18:45 /dev/xvdc2
brw-rw---- 1 root disk 202, 37 Aug 1 18:45 /dev/xvdc5
brw-rw---- 1 root disk 202, 38 Aug 1 18:45 /dev/xvdc6
brw-rw---- 1 root disk 202, 39 Aug 1 18:45 /dev/xvdc7
brw-rw---- 1 root disk 202, 40 Aug 1 18:45 /dev/xvdc8
brw-rw---- 1 root disk 202, 41 Aug 1 18:45 /dev/xvdc9
使用 fdisk 制作 xvdc16-21
Disk /dev/xvdc: 1012.5 GB, 1012538540032 bytes
255 heads, 63 sectors/track, 123100 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000eace1
Device Boot Start End Blocks Id System
/dev/xvdc1 1 6528 52436128+ 83 Linux
/dev/xvdc2 6529 122868 934499136 5 Extended
/dev/xvdc5 6529 13056 52436128+ 83 Linux
/dev/xvdc6 13057 19584 52436128+ 83 Linux
/dev/xvdc7 19585 26112 52436128+ 83 Linux
/dev/xvdc8 26113 32640 52436128+ 83 Linux
/dev/xvdc9 32641 39168 52436128+ 83 Linux
/dev/xvdc10 39169 45696 52436128+ 83 Linux
/dev/xvdc11 45697 52224 52436128+ 83 Linux
/dev/xvdc12 52225 58752 52436128+ 83 Linux
/dev/xvdc13 58753 65280 52436128+ 83 Linux
/dev/xvdc14 65281 71808 52436128+ 83 Linux
/dev/xvdc15 71809 78336 52436128+ 83 Linux
/dev/xvdc16 78337 84864 52436128+ 83 Linux
/dev/xvdc17 84865 91392 52436128+ 83 Linux
/dev/xvdc18 91393 97920 52436128+ 83 Linux
/dev/xvdc19 97921 104448 52436128+ 83 Linux
/dev/xvdc20 104449 110976 52436128+ 83 Linux
/dev/xvdc21 110977 117504 52436128+ 83 Linux
使用 partprobe 读取新分区
partprobe -s /dev/xvdc
/dev/xvdc: msdos partitions 1 2 <5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21>
检查日志以确保发生更改。然而,它没有。
cat /var/log/messages | grep -i xvdc
Aug 1 10:42:51 hgpsfsdevdb kernel: xvdc: xvdc1 xvdc2 < xvdc5 xvdc6 xvdc7 xvdc8 xvdc9 xvdc10 xvdc11 xvdc12 xvdc13 xvdc14 xvdc15 >
此时我运行 kpart 以确保可以读取分区。
kpartx /dev/xvdc
xvdc1 : 0 104872257 /dev/xvdc 63
xvdc2 : 0 2 /dev/xvdc 104872320
xvdc5 : 0 104872257 /dev/xvdc 104872383
xvdc6 : 0 104872257 /dev/xvdc 209744703
xvdc7 : 0 104872257 /dev/xvdc 314617023
xvdc8 : 0 104872257 /dev/xvdc 419489343
xvdc9 : 0 104872257 /dev/xvdc 524361663
xvdc10 : 0 104872257 /dev/xvdc 629233983
xvdc11 : 0 104872257 /dev/xvdc 734106303
xvdc12 : 0 104872257 /dev/xvdc 838978623
xvdc13 : 0 104872257 /dev/xvdc 943850943
xvdc14 : 0 104872257 /dev/xvdc 1048723263
xvdc15 : 0 104872257 /dev/xvdc 1153595583
xvdc16 : 0 104872257 /dev/xvdc 1258467903
xvdc17 : 0 104872257 /dev/xvdc 1363340223
xvdc18 : 0 104872257 /dev/xvdc 1468212543
xvdc19 : 0 104872257 /dev/xvdc 1573084863
xvdc20 : 0 104872257 /dev/xvdc 1677957183
xvdc21 : 0 104872257 /dev/xvdc 1782829503
尝试了最后一次重新启动并重复上述步骤,没有任何变化。
我错过了什么?任何帮助都会很棒。
谢谢