Ldom_TS

Embed Size (px)

Citation preview

  • 8/7/2019 Ldom_TS

    1/19

    mail archive

    MYHPREMIUM10: $10 OFF for any Premium Hosting Plan

    LDOM Removal

    ldoms-discuss.opensolaris.org

    (List home) (Recentthreads) (350 otherOpenSolaris lists)

    Show subscription info

    Low traffic list: less

    than 3 messages

    per day

    This list contains

    about 2,249

    messages,

    beginning Sep

    2007

    0 messages added

    yesterday

    Logical DomainsCommunityDiscussion List

    2010728 05:45:59

    1 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    2/19

    Hi All,

    We have T2000 Server and on the same we need to

    remove all the logical

    domains and need to re-install OS .Kindly suggest

    how to remove the

    Primary and other 6 guest domains.

    Also after LDOM removal we want to get all the

    hardware back to the

    physical server for the same if require additional

    to do something then

    please suggest.

    I done with command ldm remove-domain dev01-lgdm06

    but it is showing

    problem as "LDom dev01-lgdm06 cannot be deleted

    because it is notinactive".Also ldm list o/p ="dev01-lgdm06

    active -n--- 5005

    4 3G 0.3% 4m " , I m unable to make the

    state as inactive in

    the domain. Kindly suggest some inputs. Thanks in

    advance!

    Madhulika Kherwa

    Please do not print this email unless it is

    absolutely necessary.

    The information contained in this electronic

    message and any attachments to this message are

    intended for the exclusive use of the addressee(s)

    and may contain proprietary, confidential or

    privileged information. If you are not the

    intended recipient, you should not disseminate,

    distribute or copy this e-mail. Please notify the

    sender immediately and destroy all copies of this

    message and any attachments.

    WARNING: Computer viruses can be transmitted via

    email. The recipient should check this email and

    any attachments for the presence of viruses. The

    company accepts no liability for any damage caused

    by any virus transmitted by this email.

    www.wipro.com

    2010728 06:49:02

    2 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    3/19

    Hi

    Have you tried

    ldm stop -f dev01-lgdm06

    that should force the domain to stop.

    Failing that do

    ldm set-var auto-boot\?=false dev01-lgdm06

    ldm add-config

    (just to make sure you have kept settings)

    powercycle the box

    on rebooting the control domain dev01-lgdm06 ifstarted will be at the

    ok prompt and so a normal ldm stop will stop it.

    T

    Show quoted text

    Show footer

    [OP]2010728 06:54:19

    3 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    4/19

    Hi Smith,

    Thanks for prompt reply !

    I tried

    root@server_ldom # ldm listNAME STATE FLAGS CONS VCPU

    MEMORY UTIL UPTIME

    primary active -n-cv SP 4

    4G 0.8% 37d 21m

    dev01-lgdm01 active -n--- 5000 8

    8G 0.1% 37d 21m

    dev01-lgdm02 active -n--- 5001 4

    4G 0.2% 37d 21m

    dev01-lgdm03 active -n--- 5002 4

    4G 0.2% 37d 21m

    dev01-lgdm04 active -n--- 5003 44G 0.3% 37d 21m

    dev01-lgdm05 active -n--- 5004 4

    4G 7.3% 37d 21m

    dev01-lgdm06 active -n--- 5005 4

    3G 0.2% 37d 21m

    root@server_ldom # ldm stop dev01-lgdm05

    LDom dev01-lgdm05 stopped

    root@server_ldom # ldm unbind-domain dev01-lgdm06

    root@server_ldom # ldm list

    NAME STATE FLAGS CONS VCPU

    MEMORY UTIL UPTIME

    primary active -n-cv SP 4

    4G 0.9% 37d 3h

    35m

    dev01-lgdm01 active -n--- 5000 8

    8G 0.1% 37d 3h

    35m

    dev01-lgdm02 active -n--- 5001 4

    4G 0.2% 37d 3h

    35m

    dev01-lgdm03 active -n--- 5002 4

    4G 0.2% 37d 3h

    35m

    dev01-lgdm04 active -n--- 5003 4

    4G 0.3% 37d 3h

    35m

    dev01-lgdm05 active -n--- 5004 4

    4G 7.6% 37d 3h

    35m

    dev01-lgdm06 inactive ----- 4

    3G

    root@server_ldom # ldm remove-domain dev01-lgdm06

    root@server_ldom # ldm list

    NAME STATE FLAGS CONS VCPU

    MEMORY UTIL UPTIME

    4 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    5/19

    2010728 06:59:49

    Show quoted text

    Hi

    Do a ldm set-vcpu primary

    ldm set-vmem primary

    reboot

    this will put all resources in domain primary

    do a package remove of the SUNWldm package ( and

    SUNWldmp2v )

    and reboot again

    All domain information will have gone

    T

    Show quoted text

    Show footer

    [OP]2010728 07:03:25

    5 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    6/19

    Hi Smith,

    Thanks will do the same and update you..If any

    issue then will again

    question will be for U.Thanks

    Cheers!!Madhulika Kherwa

    -----Original Message-----

    From:

    [mailto:]

    Sent: Wednesday, July 28, 2010 4:25 PM

    To: Madhulika Kherwa (WI01 - Enterprise Services)

    Cc:

    Subject: Re: [ldoms-discuss] LDOM Removal

    Show quoted text

    the

    Show quoted text

    Hi

    Do a ldm set-vcpu primary

    ldm set-vmem primary

    reboot

    this will put all resources in domain primary

    do a package remove of the SUNWldm package ( andSUNWldmp2v )

    and reboot again

    All domain information will have gone

    T

    Show quoted text

    logical

    Show quoted text

    0.3%

    Show quoted text

    addressee(s)

    Show quoted text

    Show footer

    Steve Goldthorpe 2010728

    08:19:03

    6 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    7/19

    Personally i'd reset back to factory defaults IIRC:

    stop and unbind each ldom

    # ldm set-config factory-default

    and reboot

    or from ALOM:

    sc> bootmode config="factory-default"

    sc> powercycle -y

    -Steve

    Show quoted text

    Tony MacDoodle 2010728

    08:51:34

    7 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    8/19

    Here's a script.....

    #!/usr/bin/sh

    # Disable Logical Domains and restore machine to

    factory default

    # configuration.

    #

    LDMCMD=/opt/SUNWldm/bin/ldm

    PLATFORM=`/usr/bin/uname -i | /usr/bin/awk -

    F, '{print $2}'`

    if [ "${PLATFORM}" = "Sun-Fire-T200" ]

    then

    NICDRIVER=e1000g

    elif [ "${PLATFORM}" = "T5140" ]then

    NICDRIVER=nxge

    elif [ "${PLATFORM}" = "SPARC-Enterprise-T5220" ]

    then

    NICDRIVER=e1000g

    elif [ "${PLATFORM}" = "Sun-Blade-T6320" ]

    then

    NICDRIVER=e1000g

    elif [ "${PLATFORM}" = "T5240" ]

    then

    NICDRIVER=nxge

    else

    echo "Error"

    echo "Error"

    echo "Error"

    echo " "

    echo "Please add the platform $PLATFORM and NIC

    adapter type to this

    script!"

    echo " "

    echo "add $PLATFORM"

    echo "add $PLATFORM"

    echo "add $PLATFORM"

    echo " "

    echo "good-bye"

    echo " "

    exit

    fi

    #--------------------------------------------------

    --------------------

    # Prom t to confirm disablin LDoms.

    8 / 19LDOM Removal - Logical Domains Community Discussion List...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    9/19

  • 8/7/2019 Ldom_TS

    10/19

    To wipe LDOMs froma amachine and install a fresh

    OS...

    You can set up all that is neccessary from the

    service processor, run the

    following commands...

    (using the ILOM CLI)

    stop /SYS

    set /HOST/bootmode config='factory-default'

    start /SYS

    (or Using ALOM CLI)

    poweroff -y -f

    bootmode config="factory-default"

    poweron

    This forces the system to reboot as a whole

    machine single domain on the next

    reboot (the setting is only active for a few

    minutes, so reboot soon after

    setting this)

    Then a conventional re-install can be done... by

    DVD or network.

    You can further streamline this by adding

    script="boot net - install"

    on the end of the 'set' or 'bootmode' command

    lines, this will force a network

    install on reboot presuming you have a jumpstart

    environment setup.

    Peter

    Show quoted text

    Thanks for prompt reply !

    I tried

    root@server_ldom # ldm list

    NAME STATE FLAGS CONS VCPUMEMORY UTIL UPTIME

    10 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    11/19

    Tom Gendron 2010729 09:07:24

    Peter,

    Is there a way to do this w/out having to do a OS

    reinstall? It has been

    a while since I have worked with this software buthoping an option

    would be to do the ILOM step you give below in

    conjunction with removal

    of LDOM packages to get back to "whole" system.

    Thoughts?

    -tomg

    Show quoted text

    2010729 09:22:37

    Tom

    Yes - you do not need to do an OS install, just

    that the original poster

    wanted to do this.

    T

    Show quoted text

    Show footer

    Peter Wilson 2010730 01:06:50

    oracle_sig_logo.gif (658 B) green-for-email-sig_0.gif (356B)

    11 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    12/19

    Sure, just do the config=factory-default option,

    Reboot and then at the OS do the following

    procedures...

    ldm list

    ldm destroy

    ldm list-spconfig

    ldm rm-spconfig

    svcadm disable vntsd

    svcadm disable ldmd

    pkgrm

    Remember to destroy any disk images you may have

    set up for your guests...

    eg.

    zpool list

    zpool destroy

    If you associated any vsw devices with your

    network ports in the primary

    domain rememeber to rename the default network

    device..

    mv /etc/hostname.vxw /etc/hostname.

    I think thats about it...

    Peter

    Show quoted text

    Is there a way to do this w/out having to do a OS

    reinstall? It has been a

    while since I have worked with this software but

    hoping an option would be to

    do the ILOM step you give below in conjunction

    with removal of LDOM packages

    to get back to "whole" system.

    Thoughts?

    -tomg

    Show quoted text

    12 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    13/19

    [OP]2010729 11:26:54

    13 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    14/19

    Hi Peter,Alex ,Tony and Steve,

    Thanks a lot for the inputs it all helped and I

    have resolve the issue

    with the proper inputs as suggest by Team.

    Thanks again!

    Cheers!!

    Madhulika Kherwa

    From: Peter Wilson [mailto:]

    Sent: Thursday, July 29, 2010 3:24 AM

    To:

    Cc: Madhulika Kherwa (WI01 - Enterprise Services);

    Subject: Re: [ldoms-discuss] LDOM Removal

    To wipe LDOMs froma amachine and install a fresh

    OS...

    You can set up all that is neccessary from the

    service processor, run

    the following commands...

    (using the ILOM CLI)

    stop /SYS

    set /HOST/bootmode config='factory-default'

    start /SYS

    (or Using ALOM CLI)

    poweroff -y -f

    bootmode config="factory-default"

    poweron

    This forces the system to reboot as a whole

    machine single domain on the

    next reboot (the setting is only active for a few

    minutes, so reboot

    soon after setting this)

    Then a conventional re-install can be done... by

    DVD or network.

    You can further streamline this by adding

    script="boot net - install"

    on the end of the 'set' or 'bootmode' command

    lines, this will force a

    network install on reboot presuming you have a

    jumpstart environment

    setup.

    14 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    15/19

    Home | About | Privacy

    15 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    16/19

    16 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    17/19

    17 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    18/19

    18 / 19LDOM Removal - Logical Domains Community Discussion L...

    2011/3/23http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW...

  • 8/7/2019 Ldom_TS

    19/19

    19 / 19LDOM Removal - Logical Domains Community Discussion L...