XenServer 5.6 添加新硬盘
xenserver 5.6 新机器,原来只有一个硬盘,现在新加一个500G硬盘。
如果硬盘有分区,最好全部删除。
首先我们进入到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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
查看第二个硬盘是500G空间。
#:pvcreate /dev/sdb
接着会出现:
Physical volume "/dev/sdb" successfully created
说明添加完成.创建完卷以后,我们要将新的硬盘挂载到Xenserver的面板中去
我们要先看看硬盘的scsi
[root@xenserver-sxrzgwmg ~]# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Sep 9 11:38 edd-int13_dev80 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 9 11:38 edd-int13_dev80-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 9 11:38 edd-int13_dev80-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 9 11:38 edd-int13_dev80-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Sep 9 11:38 edd-int13_dev81 -> ../../sdb
lrwxrwxrwx 1 root root 9 Sep 9 11:38 scsi-SATA_ST3500418AS_5VMB8NYH -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 9 11:38 scsi-SATA_ST3500418AS_5VMB8NYH-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 9 11:38 scsi-SATA_ST3500418AS_5VMB8NYH-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 9 11:38 scsi-SATA_ST3500418AS_5VMB8NYH-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Sep 9 11:38 scsi-SATA_ST3500418AS_5VMBQFYT -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 9 11:38 usb-PIONEER_DVD-RW_DVR-K17RS -> ../../scd0
查看相关设备标签:
第二个硬盘/dev/sdb 设备ID:
scsi-SATA_ST3500418AS_5VMBQFYT
记下硬盘的全称.接下来开始挂载
#:xe sr-create type=lvm content-type=user
device-config:device=/dev/disk/by-id/scsi-SATA_ST3500418AS_5VMBQFYT name-label="Local storage II"
输出以下内容:
b41f96be-f186-e9ae-15f1-a5baef933141
device=/dev/disk/by-id/后面跟的是刚才记下的SCSIname-label="Local storage II"是你需要创建的名字.可以任意更改
添加完后,就可以到面板中测试了。
目录 返回
首页