cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant s <opsrunb...@gmail.com>
Subject Re: enable local storage
Date Fri, 29 May 2015 13:56:12 GMT
if you have already created your RAID5 Volume , then YES you can
reintroduce the volume to xenserver
ref: http://support.citrix.com/article/CTX121896

Complete the following procedure:

   1.

   Do a pvscan to get the Universally Unique Identifier (UUID) of an
   existing SR on a local disk. This example uses UUID
   39baf126-a535-549f-58d6-feeda55f7801:

   *# pvscan*

   PV /dev/sda3 VG VG_XenStorage-39baf126-a535-549f-58d6-feeda55f7801
lvm2 [66.87 GB / 57.87 GB free]
   Total: 1 [66.87 GB] / in use: 1 [66.87 GB] / in no VG: 0 [0 ]

   2.

   Note the output above, the VG name of the local drive /dev/sda3 is
   VG_XenStorage-39baf126-a535-549f-58d6-feeda55f7801 . The VG name contains
   the SR UUID that resides on this storage media. In this case, the UUID is
   39baf126-a535-549f-58d6-feeda55f7801.
   3.

   Introduce the SR with the following command:

   *# xe sr-introduce uuid=39baf126-a535-549f-58d6-feeda55f7801 type=lvm
   name-label=”Local storage” content-type=user*
   This command sets up database records for the SR named “Local storage”.
   4.

   Locate the SCSI ID of the device or partition where the SR data is
   stored:
   *# ls -l /dev/disk/by-id/*

   total 0
   lrwxrwxrwx 1 root root 9 Jan 15 09:44
scsi-SATA_ST3500320AS_9QM13WP2 -> ../../sdb
   lrwxrwxrwx 1 root root 10 Jan 15 09:44
scsi-SATA_ST3500320AS_9QM13WP2-part1 -> ../../sdb1
   lrwxrwxrwx 1 root root 9 Jan 15 09:44 scsi-SATA_ST380815AS_6QZ5Z1AM
-> ../../sda
   lrwxrwxrwx 1 root root 10 Jan 15 09:44
scsi-SATA_ST380815AS_6QZ5Z1AM-part1 -> ../../sda1
   lrwxrwxrwx 1 root root 10 Jan 15 09:44
scsi-SATA_ST380815AS_6QZ5Z1AM-part2 -> ../../sda2
   lrwxrwxrwx 1 root root 10 Jan 15 09:44
scsi-SATA_ST380815AS_6QZ5Z1AM-part3 -> ../../sda3

   In this case, the SCSI ID of the device /dev/sda3 is
   scsi-SATA_ST380815AS_6QZ5Z1AM-part3. This is the device name to use in the
   next command, where a PBD (physical block device – a connector between the
   XenServer host and the SR) is created.
   5.

   Run the xe host-list command to find out the host UUID for the local
   host:
   *# xe host-list*

   uuid ( RO) : 83f2c775-57fc-457b-9f98-2b9b0a7dbcb5
   name-label ( RW): xenserver1
   name-description ( RO): Default install of XenServer

   6.

   Create the PBD using the device SCSI ID, host UUID and SR UUID detected
   above:


*# xe pbd-create sr-uuid=39baf126-a535-549f-58d6-feeda55f7801
   device-config:device=/dev/disk/by-id/scsi-SATA_ST380815AS_6QZ5Z1AM-part3
   host-uuid=83f2c775-57fc-457b-9f98-2b9b0a7dbcb5
   aec2c6fc-e1fb-0a27-2437-9862cffe213e*
   7.

   Attach the PBD created with* xe pbd-plug *command:
   *# xe pbd-plug uuid=aec2c6fc-e1fb-0a27-2437-9862cffe213e*
   The SR should be connected to the XenServer host and be visible in
   XenCenter


Thanks
prashant s


On Fri, May 29, 2015 at 9:52 AM, Prashant s <opsrunbook@gmail.com> wrote:

> questions :
>
> is the SSD disks local to the xenserver , then yes you can create local sr
> & add to CS.
>
> Complete the following procedure to create a Storage Repository (SR) on a
> new local hard drive (HDD):
> *Note*: The stored data in the server will be lost.
>
>    1.
>
>    Run the following command to find the disk ID of the new device:
>    *# cat /proc/partitions*
>    A list of HDDs and partitions are displayed. Find out which device is
>    your new local disk. Locate it by size. (This is probably “sdb” or
>    “/cciss/c0d1p0”)
>    *# ll /dev/disk/by-id*
>    2.
>
>    Find the disk ID of the “sdb” or “cciss/c0d1”disk. The
>    “scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” or
>    “cciss-xxxxxxxxxxxxxxxxxxxxxxxxxx”format is required.
>    3.
>
>    Run the following command to create an SR:
>    *# xe sr-create content-type=user
>    device-config:device=/dev/disk/by-id/<scsi-xxxxxxxxxxxxxxxxxxxxxxxxx>
>    host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm*
>    Or
>    *# xe sr-create content-type=user
>    device-config:device=/dev/disk/by-id/<cciss-xxxxxxxxxxxxxxxxxxxxxxxxx>
>    host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm*
>
> *for example *
>
>  xe sr-create content-type=user
> device-config:device=/dev/disk/by-id/scsi-SATA_WDC_WD1003FBYX-_WD-WCAW32786419,/dev/disk/by-id/scsi-SATA_WDC_WD1003FBYX-_WD-WMAW30367881-part3
> host-uuid=96f06415-461b-43c9-b86a-4969b81b3d80 name-label=local-sata
> shared=false type=lvm
> d8e67caf-32a7-6234-f8c2-3bbd3a3010be
> [root@dc4xen-c0u16n2 ~]#
>
> now go back to you CS web ui and look  for the new storage in the primary
> storage secion
>
> On Fri, May 29, 2015 at 2:42 AM, Rajani Karuturi <rajani@apache.org>
> wrote:
>
>> As far as I know, that is not possible.
>>
>> ~Rajani
>>
>> On Thu, May 28, 2015 at 8:41 PM, S. Brüseke - proIO GmbH <
>> s.brueseke@proio.com> wrote:
>>
>> > Is it possible to attach only specific local storage to CS? We using
>> raid1
>> > for XenServer installation and during installation xs created local
>> storage
>> > of the rest of this raid1. We installed a new raid5 with ssd and named
>> it
>> > "localSSD". This is the local storage with I want CS installing
>> instances
>> > on.
>> >
>> > Mit freundlichen Grüßen / With kind regards,
>> >
>> > Swen Brüseke
>> >
>> > -----Ursprüngliche Nachricht-----
>> > Von: Koushik Das [mailto:koushik.das@citrix.com]
>> > Gesendet: Donnerstag, 28. Mai 2015 15:57
>> > An: <users@cloudstack.apache.org>
>> > Betreff: Re: enable local storage
>> >
>> > After enabling local storage for zone, MS restart is required for local
>> > storage to be discovered for already added hosts. For new hosts it gets
>> > added at the time of adding host.
>> >
>> > On 28-May-2015, at 7:03 PM, S. Brüseke - proIO GmbH <
>> s.brueseke@proio.com>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I installed new disks in some of our XenServer hosts and added the
>> raid
>> > to the XenServer-host. Now I need to add this new storage to CS.
>> > > I enabled local storage for the zone, but I am still unable to see the
>> > new local storage as primary storage. Is there some kind of cron which
>> > needs to run before I see this storage on infrastructure tab in CS UI?
>> Does
>> > the local storage needs to use a specific name or can I use a random
>> name
>> > as name-label inside XenServer?
>> > >
>> > > Mit freundlichen Grüßen / With kind regards,
>> > >
>> > > Swen Brüseke
>> > >
>> > >
>> > >
>> > >
>> > > - proIO GmbH -
>> > > Geschäftsführer: Swen Brüseke
>> > > Sitz der Gesellschaft: Frankfurt am Main
>> > >
>> > > USt-IdNr. DE 267 075 918
>> > > Registergericht: Frankfurt am Main - HRB 86239
>> > >
>> > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> > Informationen.
>> > > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
>> > > erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten
>> > Sie diese Mail.
>> > > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
>> sind
>> > nicht gestattet.
>> > >
>> > > This e-mail may contain confidential and/or privileged information.
>> > > If you are not the intended recipient (or have received this e-mail in
>> > > error) please notify the sender immediately and destroy this e-mail.
>> > > Any unauthorized copying, disclosure or distribution of the material
>> in
>> > this e-mail is strictly forbidden.
>> > >
>> > >
>> >
>> >
>> >
>> >
>> > - proIO GmbH -
>> > Geschäftsführer: Swen Brüseke
>> > Sitz der Gesellschaft: Frankfurt am Main
>> >
>> > USt-IdNr. DE 267 075 918
>> > Registergericht: Frankfurt am Main - HRB 86239
>> >
>> > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> > Informationen.
>> > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
>> > erhalten haben,
>> > informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
>> > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind
>> > nicht gestattet.
>> >
>> > This e-mail may contain confidential and/or privileged information.
>> > If you are not the intended recipient (or have received this e-mail in
>> > error) please notify
>> > the sender immediately and destroy this e-mail.
>> > Any unauthorized copying, disclosure or distribution of the material in
>> > this e-mail is strictly forbidden.
>> >
>> >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message