Transcript

Guest Domains (continued)

Solaris Training Rapid Deployment of Logical Domains Part 4

 

>> Mick:  As far the initial operating system goes, I could carry on using it or I could convert it to use another disk and just leave the golden image there to use to create clones in the future. If I do need different versions of the operating system or radically different configurations then I would have to build Solaris on each Logical Domain separately.

 

[pause]

 

Here we are, going back a little bit creating the ldomvols zfs file system and then creating the gold volume. This actually creates within the operating system a couple devices that looked like this [00:51 inaudible] rather complex names unfortunately. Having found out what they are – but basically they emulate the path of the actual domains as I created the volumes as I’ve created them.

 

Here you can see the dev/zvol/dsk and then pod which is pool name where -rpool, ldomvols/goldvol. I can add that disk to my virtual disk service.

 

[pause]

 

So it’s as though I’m opening the disk tray, plugging another disk in which I named – I’ll do ldm add-vdsdev – add virtual disk device, the full path to the actual device name, which could be any disk path, by the way, and then name it golddisk@primary-vds0. Then we can start creating the guest domain which I did here that was seal.

 

Add domain, add a mathematical unit, virtual CPUs, memory – bear in mind, all these can be changed – a virtual network interface on my virtual switch called vnet0 and the disk. Add-vdisk with hpfdisk1 – just happens to be named after my domain name – and use that disk that I’ve just assigned to the virtual disk service and then assign that to the Logical Domain hpf file.

 

Say a couple of [2:43 inaudible] the boot device which will be hpfdisk1 and autoboot, which means the system would all automatically boot if the T-series server is rebooted. Not necessarily if the control domain reboots, but if the machine is powered off and then brought back again, not only will the control domain boots but so will this particular Logical Domain.

 

[pause]

 

>> Dave:  Mick, can I jump in with a question that’s in the queue?

 

>> Mick:  Certainly.

 

>> Dave:  Is a sparse volume the same as thin provisioning?

 

>> Mick:  Yes, it is, Dave. Yeah. Because of the fact that it doesn’t use any space, so as you know, in other circles, if you like, it would be known as thin provisioning. Every computer system has its own acronyms and terms. But yes, it’s the same.

 

>> Dave:  That’s great, Mick. I’d like to remind everybody keep your chat windows open. Thank you.

 

[pause]

 

>> Mick:  Having defined all the details for the domain like this, once we’re happy that all the resources have been assigned we could bind the domain and we can do a list-bindings just to check everything up. Then we can Telnet to the port and start the domain. You could do this in separate windows if you want to see exactly what’s going on or you could just do ldm start domain and when that comes back to the prompt do a telnet localhost in the port. Remember you can do an ldm list to find out what the port is, 5000.

 

Build the operating system. Here is could do a boot net because when I do a boot net I can find out what the MAC address is of my new Logical Domain and then I can set my Solaris build server to respond to that MAC address. Or if I don’t have that capability, I can actually create an ISO image, copy an ISO image of the operating system into my control domain. In this case, /iso/sol-10-u9, etc. That’s the downloadable image that I would get from Oracle. And add it as virtual disk service and then assign that again to the Logical Domain.

 

[pause]

 

When I do show-disks, it’s disk@1 that you can see when you do an ldm list like this to show your disk service. And I can boot and then I can say, “boot” and then that disk and then that would boot from the DVD and I could do my build server as normal.

 

[pause]

 

Here we go. And off we go, just a normal installation.

 

[pause]

 

A little bit of advice about you know making sure you choose the right MAC address. If you’re unsure about what listing is showing which MAC address, just do a boot net in your Logical Domain and then you can see what MAC address is requesting and then you can set up your build server 6:24 inaudible]. Or you can do it like I’ve just shown you and assign the ISO image.

 

[pause]

 

There we go, there’s a boot net. That particular Logical Domain is built in the normal Solaris fashion.

 

[pause]

 

What we’re going to do is we’ve built the Logical Domain, booted it, patched it, and then we did a sys-unconfig so we’re now back at the OK prompt. What we’re going to do, I’m going to stop the domain to a zfs list. There’s my goldvol which is the disk image that contains the sys-unconfig operating system.

 

[pause]

 

>> Dave:  Mick, I’d like to jump in with another question if I could.

 

>> Mick:  Certainly, Dave.

 

>> Dave:  The question is can I add resources to a guest domain later on?

 

>> Mick:  By all means, Dave, yeah. You can do it while the domain is switched off or you can do it while it’s actually running. Different versions of the software have provided different facilities.

 

For example, at one time, you couldn’t dynamically assign more memory. But now with the latest version you can even assign more memory. In fact, there’s a way of getting the system to adjust the resources itself. So the ldm system can work out but domain is not very busy and then another one is very busy and actually dynamically change resources for you. So the answer is yes.

 

>> Dave:  Fantastic. You know, Mick, I just like to say to our attendees here – there are a couple of attendees who responded to a question I put out, that they are indeed running Oracle database on Solaris. Oracle Standard Edition should be noted that is licensed by processor, no matter how many Logical Domains you’re running. Yet Oracle Enterprise Edition is licensed per Logical Domain. So it’s much more expensive typically. SE is very, very economical, standard edition, very, very economical way to go. If you’d like to know more about our experiences with the T-Series and Logical Domains with SE, just give us a shout.

 

Thanks, Mick, back to you.

 

>> Mick:  Thanks, Dave. So we have our goldvol that we’ve created with our Logical Domain which has now start and sys-unconfig’d. Remember that’s associated with an actual disk device effectively.

 

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!

 

×