说明: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.查看磁盘分区
- [root@xa-xen-03 ~]# ls -l /dev/disk/by-path/
-
total 0
-
lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:00:1f.5-scsi-1:0:0:0 -> ../../scd0
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0 -> ../../sda
-
lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part1 -> ../../sda1
-
lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part2 -> ../../sda2
-
lrwxrwxrwx 1 root root 10 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:0:0-part3 -> ../../sda3
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:1:0 -> ../../sdb
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:2:0 -> ../../sdc
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:3:0 -> ../../sdd
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:4:0 -> ../../sde
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:5:0 -> ../../sdf
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:6:0 -> ../../sdg
-
lrwxrwxrwx 1 root root 9 Dec 2 14:03 pci-0000:02:00.0-scsi-0:2:7:0 -> ../../sdh
2.挂载磁盘到系统中
- [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"
-
80b60c6a-ed1d-ed41-4505-cd6810123137
-
[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"
-
b289713c-a6c2-d93d-dbc3-936cd2c414bd
-
[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"
-
83b0a295-df77-1ea8-22c2-49a43e7758a8
-
[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"
-
2bf9a617-e677-f837-ca40-7accdaf7e4f2
-
[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"
-
c79a4deb-2054-4d16-7263-cdf77fe2369a
-
[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"
-
6abd3c1f-4a49-4964-a5aa-f01d9eff4258
-
[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"
-
5caa7768-fd7c-e504-73a7-99a044820e48
3.xencenter中storage标签中即可看到
方法二、右击添加storage
阅读(9989) | 评论(0) | 转发(0) |