January 3, 2012

Solaris 10: how to determine if a system is LDOM domain

Posted in Solaris at 3:37 pm by alessiodini

Today i finally found how be sure if a system is ldom or not without know the domain controller.
I usually saw that a typical ldom has similar things:

1) path disks

c0d30166
/virtual-devices@100/channel-devices@200/disk@763a
c0d30167
/virtual-devices@100/channel-devices@200/disk@763b

2) virtual networks

vnet2717002:1: flags=201000843 mtu 1500 index 6
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
vnet2717002:2: flags=201000843 mtu 1500 index 6
zone system

With this it’s clear that we are working on ldom but i would like to know “is anything more clear where i can be 100% sure?”

Today i found on a Solaris 10 system the ldom manifest:

online Dec_01 svc:/ldoms/agents:default

This is the answer to my question πŸ™‚

upgraded: andy kailhofer wrote the best solution about this task.
He wrote to use “/usr/sbin/virtinfo -a” command
I tried it , it works on both domain controller/ldom guest

Thank you Andy !

Advertisements

11 Comments »

  1. Hi, Good Tricks

  2. Yogesh Raheja said,

    Nice info mate, we can identify the Slave LDOM by having a look on

    1.) echo | format (check the disk names which would be c#d#)
    2.) ifconfig -a (only virtual networks interfaces will be there vnet)

    For Master LDOM:

    1.) ldm list (this command will show the slave ldoms)
    2.) ps -ef | grep -i ldm (two companion deamons are there for LDOMS)

    Apart from that if you would like to check LDOM configuration just execute ldm –help and you will get set of options to execute.
    eg: ldm list services
    ldm list constraints
    ldm list bindings etc etc…

    • alessiodini said,

      yes! πŸ™‚

  3. Kiran M.S said,

    I logged in to LDM server and from there how to find the Main Physical Server ?

    • alessiodini said,

      Hi and thanks for write me.
      I think you can’t determine the main server , as for the zones!
      Regards

      • Andy K. said,

        What about /sbin/virtinfo -a

      • alessiodini said,

        Hi Andy,
        i did not know that command , it’s really useful! I’m going to upgrade my post with your suggestion
        Thanks for write me πŸ™‚

  4. Ranjith said,

    Hi Aless,

    I have a requirement to modify a script which should not run certain commands in the guest domain, where as it should run all the commands in Root complex and IO domain. Do u know how to identify root complex and IO domain from the server itself..?


    Thanks
    Ranjith

    • alessiodini said,

      Try the commande virtinfo -a πŸ™‚

  5. vipin said,

    how to check physical server name from virtual server.

    • alessiodini said,

      Hello,
      thank you for your comment.
      Try running the command “virtinfo -a”
      Best Regards
      Alessio Dini


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: