Re: Root-disk support for managed storage

2014-01-26 Thread Mike Tutkowski
Yeah, an SR has metadata that knows things like its UUID, name, description, etc. Then the VDI (a template, in this case) is laid down inside of the SR. As far as I know, there is no way to have a VDI outside of an SR. It appears the UUID of an SR is immutable (unlike its name and description). Yo

Re: Root-disk support for managed storage

2014-01-26 Thread Marcus Sorensen
So if you create a volume and register it as an SR, there is metadata written to the volume, in addition to simply copying the template? What happens if you don't like that SR? Are you stuck destroying the volume, because you can never delete the SR metadata? I assumed you could create SR, copy te

Re: Root-disk support for managed storage

2014-01-26 Thread Mike Tutkowski
To be clear, the cloned SAN volume will have a unique name and IQN; however, the problem is that the data the cloned volume contains (the SR) includes metadata for an SR that is supposed to be unique (the UUID), but is immutable. On Sun, Jan 26, 2014 at 11:39 AM, Mike Tutkowski < mike.tutkow...@s

Re: Root-disk support for managed storage

2014-01-26 Thread Mike Tutkowski
So, this is my thinking on how this cloning would work (and why it would be a problem for an SR): 1) An SR is created on a SAN volume. The SR is essentially a clustered file system. The VDI on the SR represents a template we downloaded from secondary storage. The SR itself contains metadata like a

Re: Root-disk support for managed storage

2014-01-26 Thread Marcus Sorensen
In fact I'd recommend removing the SR of the template from anything XenServer knows of. It just needs to exist on the SAN so it can be cloned for new SR root volumes. On Sun, Jan 26, 2014 at 9:18 AM, Marcus Sorensen wrote: > Hm, well I guest that's dependent on how your SAN clone works. Ours > al

Re: Root-disk support for managed storage

2014-01-26 Thread Marcus Sorensen
But you'd be registering a new SR. It doesn't matter that the original volume is read-only (in fact it should be, both in name and data), because your clones will be new SRs. On Sun, Jan 26, 2014 at 9:17 AM, Mike Tutkowski wrote: > Here's a pic that shows some of the properties of an SR: > > http

Re: Root-disk support for managed storage

2014-01-26 Thread Marcus Sorensen
Hm, well I guest that's dependent on how your SAN clone works. Ours allows you to have a unique name for each clone, so we just name the clone with the new root volume UUID. On Sun, Jan 26, 2014 at 9:00 AM, Mike Tutkowski wrote: > Hey Marcus, > > One thing I thought of late last night was that an

Re: Root-disk support for managed storage

2014-01-26 Thread Mike Tutkowski
Here's a pic that shows some of the properties of an SR: http://i.imgur.com/iq6NQ1a.png According to some Citrix docs I read, it appears the UUID is a read-only field. Unless there is some workaround for this, I may have to resort to copying the template to a new SR each time. On Sun, Jan 26,

Re: Root-disk support for managed storage

2014-01-26 Thread Mike Tutkowski
Hey Marcus, One thing I thought of late last night was that an SR has a UUID associated with it. If I clone the SAN volume that houses the SR each time, I'll be giving XenServer SRs that have the same UUID. I guess I'll need to look into if there is some way to assign a new UUID to an existing S

Re: Root-disk support for managed storage

2014-01-25 Thread Marcus Sorensen
Actually, I shouldn't take the liberty to speak as though I understand the details about how you use SRs and VDIs. My point though is basically that you probably can and should treat them the same as whatever you currently do with data disks. Either create a new one with every root volume create an

Re: Root-disk support for managed storage

2014-01-25 Thread Mike Tutkowski
So, Marcus - it sounds like you already have this kind of functionality working in KVM? Perhaps it would be a good idea for me to look at it. Thanks! On Sat, Jan 25, 2014 at 10:33 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > 2) This is cloning the SAN volume that stores the SR i

Re: Root-disk support for managed storage

2014-01-25 Thread Mike Tutkowski
2) This is cloning the SAN volume that stores the SR in 1). 3) This is to use the SR on the cloned volume. On Sat, Jan 25, 2014 at 10:31 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > I see, Marcus. That is an interesting idea definitely. > > The process would be on a cluster-by-cl

Re: Root-disk support for managed storage

2014-01-25 Thread Mike Tutkowski
I see, Marcus. That is an interesting idea definitely. The process would be on a cluster-by-cluster basis: 1) Download the template to the SR. 2) Clone the SAN volume. 3) Use the new SR. Later for a new root disk: Just do 3. On Sat, Jan 25, 2014 at 10:29 PM, Marcus Sorensen wrote: > Not's

Re: Root-disk support for managed storage

2014-01-25 Thread Marcus Sorensen
And when I say 'the first time the template is used, we create an SR', I mean cloudstack does it automatically. On Sat, Jan 25, 2014 at 10:29 PM, Marcus Sorensen wrote: > Not's not really what I was describing, or that's not how we do it at > least. The first time a template is used, we create an

Re: Root-disk support for managed storage

2014-01-25 Thread Marcus Sorensen
Not's not really what I was describing, or that's not how we do it at least. The first time a template is used, we create an SR with one VDI (using your terminology as we don't do it in Xen, but it should map to essentially the same thing) and copy the template contents into it. Then we remove the

Re: Root-disk support for managed storage

2014-01-25 Thread Mike Tutkowski
On a side note, as I mentioned, to get QoS on a CloudStack-volume-by-CloudStack-volume basis, we need to use a single SAN volume per CloudStack volume (because QoS is set at the SAN volume level) and copy the template in question to each volume every time a new root disk is need. This, however, wi

Re: Root-disk support for managed storage

2014-01-25 Thread Mike Tutkowski
Thanks for your input, Marcus. Yeah, the SolidFire SAN has the ability to clone, but I can't use it in this case. Little note first: I'm going to put some words below in capital letters to stress some important details. All caps for some words can be annoying to some, so please understand that I

Re: Root-disk support for managed storage

2014-01-25 Thread Marcus Sorensen
In other words, if you can't clone, then createDiskFromTemplate should copy template from secondary storage directly onto root disk every time, and copyPhysicalDisk really does nothing. If you can clone, then copyPhysicalDisk should copy template to primary, and createDiskFromTemplate should clone.

Re: Root-disk support for managed storage

2014-01-25 Thread Marcus Sorensen
I'm not quite following. With our storage, the template gets copied to the storage pool upon first use, and then cloned upon subsequent uses. I don't remember all of the methods immediately, but there's one called to copy the template to primary storage, and once that's done as you mention it's tr

Re: Root-disk support for managed storage

2014-01-24 Thread Mike Tutkowski
Just wanted to throw this out there before I went to bed: Since each root volume that belongs to managed storage will get its own copy of some template (assuming we're dealing with templates here and not an ISO), it is possible I may be able to circumvent a new table (or any existing table like te