Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3130372
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: 虚拟化

2011-12-02 14:59:53

说明:12块硬盘,wb:write back;io policy:direct/cached; drive cache:enable/nochange
12做RAID1安装xenserver
3,wb,D,N
4,wb,D,N
5,wb,D,N
6,wb,c,e
单独做RAID0
7,8;wb,d,n
9,10;wb,c,e
11,12;wb,c,e
每2块做RAID0

1.查看磁盘分区
  1. [root@xa-xen-03 ~]# ls -l /dev/disk/by-path/
  2. total 0
  3. lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:00:1f.5-scsi-1:0:0:0 -> ../../scd0
  4. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0 -> ../../sda
  5. lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part1 -> ../../sda1
  6. lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part2 -> ../../sda2
  7. lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part3 -> ../../sda3
  8. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:1:0 -> ../../sdb
  9. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:2:0 -> ../../sdc
  10. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:3:0 -> ../../sdd
  11. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:4:0 -> ../../sde
  12. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:5:0 -> ../../sdf
  13. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:6:0 -> ../../sdg
  14. lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:7:0 -> ../../sdh
2.挂载磁盘到系统中
  1. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:1:0 name-label="diskb"
  2. 80b60c6a-ed1d-ed41-4505-cd6810123137
  3. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:2:0 name-label="diskc"
  4. b289713c-a6c2-d93d-dbc3-936cd2c414bd
  5. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:3:0 name-label="diskd"
  6. 83b0a295-df77-1ea8-22c2-49a43e7758a8
  7. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:4:0 name-label="diske"
  8. 2bf9a617-e677-f837-ca40-7accdaf7e4f2
  9. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:5:0 name-label="diskf"
  10. c79a4deb-2054-4d16-7263-cdf77fe2369a
  11. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:6:0 name-label="diskg"
  12. 6abd3c1f-4a49-4964-a5aa-f01d9eff4258
  13. [root@xa-xen-03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:7:0 name-label="diskh"
  14. 5caa7768-fd7c-e504-73a7-99a044820e48
3.xencenter中storage标签中即可看到

方法二、右击添加storage











阅读(9930) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~