K
K
Komonec2011-09-21 06:25:39
XenServer
Komonec, 2011-09-21 06:25:39

How to make one local storage from three partitions on different drives in Citrix Xen Server?

There is a Citrix Xen Server and 3 partitions on different disks (/dev/sda2, /dev/sdb2 and /dev/sdc2), local storadge is done like this:
#xe sr-create host-uuid=[TAB] content-type=user type=lvm device-config:device=/dev/XXX shared=false name-label="Local storage 1"
And how to combine these 3 partitions and make one local storage out of them?
Alternatively, you can assemble LVM from these three sections in the console, but then how can you make it available to the xen server?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
subvillion, 2011-09-21
@Komonec

Create partition table on new disk: Create new LVM volume: Attach volume to volume group: we need volume group ID: VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65
# fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 182401 1465136001 8e Linux LVM


# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created


# vgdisplay
--- Volume group ---
VG Name VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1223
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 27
Open LV 26
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.36 TB
PE Size 4.00 MB
Total PE 355739
Alloc PE / Size 355727 / 1.36 TB
Free PE / Size 12 / 48.00 MB
VG UUID JrIxtn-2smY-Hvav-FzXk-Un7o-G07e-fzjAqU


# vgextend VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65 /dev/sdb1
Volume group "VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65" successfully extended

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question