netzspezialist

weitere Festplatte zu XenServer

August 20, 2015

neue Platte(n) ist/sind bereits eingebaut und angeschlossen …

[root@xen03 ~]# fdisk -l
Disk /dev/sda: 999.9 GB, 999989182464 bytes
255 heads, 63 sectors/track, 121575 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      121575   968162548   8e  Linux LVM
Disk /dev/sdb: 999.9 GB, 999989182464 bytes
255 heads, 63 sectors/track, 121575 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 499.9 GB, 499989348352 bytes
255 heads, 63 sectors/track, 60786 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table

Wir sehen: sdb und sdc sind verfügbar.

[root@xen03 ~]# pvcreate /dev/sdb
...
[root@xen03 ~]# pvcreate /dev/sdc --config global{metadata_read_only=0}

Ab XenServer Version 7 muss der Parameter: –config global{metadata_read_only=0} angefügt werdenS

Physical volume "/dev/sdb" successfully created
[root@xen03 ~]# ll /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep  6 20:29 scsi-3600050e083404f00c3bd0000c9210000 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  6 20:29 scsi-3600050e083404f00c3bd0000c9210000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  6 20:29 scsi-3600050e083404f00c3bd0000c9210000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  6 20:29 scsi-3600050e083404f00c3bd0000c9210000-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Sep  6 20:29 scsi-3600050e08354a80095f1000078390000 -> ../../sdb
lrwxrwxrwx 1 root root  9 Sep  6 20:29 scsi-3600050e08354c600441b0000c9210000 -> ../../sdc

Dann für jedes neue Laufwerk:

[root@xen03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-3600050e08354a80095f1000078390000 name-label="Local storage 2"
[root@xen03 ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-3600050e08354c600441b0000c9210000  name-label="Backup"

Die Laufwerksnamen und GUIDs müssen natürlich angepasst werden.