越简单越好!

XenServer添加新硬盘

bevin 发表于 2015-07-10 16:44 | 59次阅读 0次推荐   XenServer

1.查看磁盘分区

[root@xenserver ~]# ls -l /dev/disk/by-path/
总计 0
lrwxrwxrwx 1 root root  9 07-10 16:21 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 07-10 16:21 pci-0000:03:00.0-scsi-0:2:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:1:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:2:0 -> ../../sdc
lrwxrwxrwx 1 root root  9 07-10 16:21 pci-0000:03:00.0-scsi-0:2:3:0 -> ../../sdd
2.挂载磁盘到系统中

[root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:1:0 name-label="diskb"
ftffa09f-eb93-3d87-5f55-6ed2bf5ca0ad
[root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:2:0 name-label="diskc"
816ea80b-ea93-2c89-2d57-8ed2bf7aa0ed
[root@xenserver by-path]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:3:0 name-label="diskd"
07063763-ae3a-71ba-3574-bb7b95c47a03
3. 就可以进入XenCenter里查看了。

+0
发表评论
×您的大名会显示在评论处

评论内容不能少于5个字哦~~~

评论列表
当前暂无评论
发送数据中... 请求错误. 请输入评论内容和验证码后再发布 您已经参与过了,谢谢
返回顶部 ^