今天给服务器增加了一块新硬盘,但是有可能是因为服务器没有重启的缘故.所以在添加New Storage的时候无法添加这块硬盘.于是乎.我们只有在命令下面添加这块硬盘了:
首先我们进入到xenserver的Console界面.然后按下enter进入命令模式,
接下来.咱们先看看硬盘有没有存在
输入
fdisk -l
出现如下提示: Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 523 4194304 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 523 1045 4194304 83 Linux /dev/sda3 1045 60801 479995393 8e Linux LVM
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn’t contain a valid partition table
证明我们的硬盘已经完整的添加了.并且还是1T的大小.然后创建物理卷