[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] how to create SR on the FC/GPT/LVM

  • To: xen-api@xxxxxxxxxxxxx
  • From: Alexander Voropay <alexander.voropay@xxxxxxxxx>
  • Date: Tue, 22 May 2012 10:41:31 +0400
  • Delivery-date: Tue, 22 May 2012 06:41:48 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

2012/5/21 Alexander Voropay <alexander.voropay@xxxxxxxxx>:

> How to create a new StorageRepository on the FibreChannel device
> formatted with GPT partitions and with LVM ?

The 'xe sr-create type=ext' creates SR exactly as required:
- creates LVM on the arbitrary partition
- formats this LogicalVolume with ext3fs  (type=ext)
- creates SR and PBD for this partition

The logic resides into the

>>'description': 'SR plugin which represents disks as VHD files stored on a 
>>local EXT3 filesystem, created inside an LVM volume',

# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root  9 May 21 14:54
scsi-3600144f094cdf1c200004fb6438b0001 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 21 14:54
scsi-3600144f094cdf1c200004fb6438b0001-part1 -> ../../sdb1

# xe host-list
uuid ( RO)                : 136dd20c-cf64-4c59-b954-f171c9d4e063
          name-label ( RW): xenserver
    name-description ( RW): Default install of XenServer

# uuidgen


# xe sr-create host-uuid=136dd20c-cf64-4c59-b954-f171c9d4e063 type=ext
content-type="user" name-label="FC storage" shared=false


Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.