Transcript

Guest Domains Golden Image, Snapshots,

Solaris Training Rapid Deployment of Logical Domains Part 5

 

>> Mick:  We then added a disk device as golddisk to our initial domain. Unfortunately, the commands do get a little bit convoluted and quite complex, so although the disk is known as one name to the actual virtual service, it’s then known as another name to each virtual domain and that hpfdisk1 which we set up as the boot device and then built the operating system on that together.

 

[pause]

 

Just out of interest, within the actual Logical Domain, the disk just shows up as a normal disk name, c0d0, etc. I hope that’s clear. It is a little bit hard to get your head around it when you first see it and you have to keep good records so that you can look back and think, “What was that I did two weeks ago?” Try and work things out.

 

[pause]

 

So we’ve patched it and stored it, rebooted to make sure the patches are applied properly and then sys-unconfig which is the stage you’re at now. Let’s go and create a new Logical Domain. Let’s clone.

 

First of all, we have to snapshot. And we snapshot goldvol. This will effectively create a read-only snapshot. The way that the snapshot syntax works is to say, “zfs snapshot,” the name of the volume and then @ and some character string like useme, for example. You can have your own conventions, date and time, whatever you like.

 

[pause]

 

There’s our snapshot. Now, zfs allows me to create a clone of the snapshot which is a rewritable copy.

 

[pause]

 

Zfs clone, the name of the snapshot, and then the name that I want to give it. Again, what shall I call it? I’m going to create a domain called sb1 and so I’m going to call this volume sb1vol.

 

I’ve effectively created another operating system. All I need to do now is to create my new Logical Domain and then assign that as a disk service to it. Remember this isn’t anything to do with the Logical Domain configuration. This just is opening out disk tray and letting in other disk to our virtual disk server.

 

[pause]

 

>> Dave:  Mick, there’s a question in the queue.

 

>> Mick:  Yeah.

 

>> Dave:  What’s a good storage solution?

 

>> Mick:  To go with this?

 

>> Dave:  Yeah. A good partner for a T-series server.

 

>> Mick:  I would think probably the Unified Storage, the 7000 Series because that’s being put forward as an ideal solution especially for something like Logical Domains and virtualization generally. With the capacities ranging from 20 terabytes up to three petabytes. Brilliant performance and nice and easy to manage. A T3 server and something like that would go very well together in this sort of technology.

 

>> Dave: Is that under the category of ZFS Appliance?

 

>> Mick:  Yes, it would be. Yeah, that’s exactly what it is.

 

>> Dave:  Excellent. Thanks, Mick.

 

>> Mick: Okay.

 

[pause]

 

Now as you can see, that’s already been done from a thing I did earlier. There we’ve already assigned the disk to the disk service. Apologies, the commands are slightly complicated. This is adding that device as an identified disk onto the disk controller, which I can then assign to my guest domain.

 

[pause]

 

So now I can go and create my guest domain.

 

[pause]

 

That’s the mathematical unit, eight virtual CPUs, three gigs of memory, and then I can do ldm add-vdisk. I’ll call it sb1rootdisk and this name up here.

 

[pause]

 

I forgot to put the domain name.

 

I hope that’s clear. I know it’s quite complicated the sequence of steps, but you do get used to it. So I’m adding a virtual disk which is going to be known sb1rootdisk to the sb1 domain using the disk that I’ve created just now from the clone.

 

Then I can do ldm list-bindings sb1, just to make sure everything looks okay.

 

[pause]

 

Then ldm bind sb1.

 

[pause]

 

Now you can see the new resources that have been assigned this time. I could also set variables like autoboot and so forth, but let’s get the domain started.

 

Let’s see what port we need to get the console on, 5001. It’s booting, as you can see.

 

We’ve created the operating system instantaneously. What we really have to do was defining the actual domain. There we go. and it’s going to come up now – because it’s a sys-unconfig operating system, it’s going to go into interactive mode and ask us to define all the particular features of the machine. Here we go.

 

You may be familiar with the step if you’ve ever done this yourself, similar to part of the stage of building the machine in the first place. One thing that springs to mind that you might ask is, “Is it possible to put a configuration for it to define some of this stuff?” If you’ve been used to using Solaris Jumpstart, you’d be talking about sysidcfg file.

 

The answer is no, not really. Although you can actually build one into your sys-unconfig image that does a partial configuration for you but configuring things when you do a first boot, the old trick of creating an image script. But you can’t really. You have to go through the actual machines basic configuration unfortunately.

 

[pause]

 

As I’m in the U.K., I’ll choose U.K. keyboard. But you’re probably all familiar with this. So here we are booting the machine and you can see it’s working fine other than creating the identity information.

 

So there we are. We’ve provisioned our domain very, very rapidly. All we have to do is complete the identity information.

 

[pause]

 

Here, in order to preserve the golden image, I don’t need the initial hpf1 domain anymore so I’m just stopping it. I’m binding it and getting rid of it. So I’m left just with the golden image that I can clone and there’s no danger of losing the domain and corrupting it in any way.

 

We have a couple of minutes left and I’ll carry on just configuring the machine just so you can see it’s all there working correctly. But this has been a real demonstration. I have done things for real. Nothing has been concocted, so you had a chance to see everything as it actually happens.

 

Copyright SkillBuilders.com 2017

×
Podcast
×
Free Online Registration Required

The tutorial session you want to view requires your registering with us.

It’s fast and easy, and totally FREE.

And best of all, once you are registered, you’ll also have access to all the other 100’s of FREE Video Tutorials we offer!

 

×