Anda di halaman 1dari 19

LDOM Removal - Logical Domains Community Discussion List...

頁 1 / 19

mail archive
MYHPREMIUM10: $10 OFF for any Premium Hosting Plan
Logical Domains
LDOM Removal Community
Discussion List
ldoms-
discuss.opensolaris.org
(List home) (Recent
threads) (350 other
OpenSolaris 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

<madh...@wipro.com> 2010年7月28日 下午 05:45:59

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 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 not
inactive".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

<tere...@oracle.com> 2010年7月28日 下午 06:49:02

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 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 <newconfig name>


(just to make sure you have kept settings)

powercycle the box

on rebooting the control domain dev01-lgdm06 if


started will be at the
ok prompt and so a normal ldm stop will stop it.

T
Show quoted text

Show footer

[OP] <madh...@wipro.com> 2010年7月28日 下午 06:54:19

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 4 / 19

Hi Smith,

Thanks for prompt reply !

I tried

root@server_ldom # ldm list


NAME 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 4
4G 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

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 5 / 19

<tere...@oracle.com> 2010年7月28日 下午 06:59:49

Show quoted text


Hi

Do a ldm set-vcpu <all cpus> primary


ldm set-vmem <all mem> 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] <madh...@wipro.com> 2010年7月28日 下午 07:03:25

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 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: <tere...@oracle.com>
[mailto:<tere...@oracle.com>]
Sent: Wednesday, July 28, 2010 4:25 PM
To: Madhulika Kherwa (WI01 - Enterprise Services)
Cc: <ldom...@opensolaris.org>
Subject: Re: [ldoms-discuss] LDOM Removal
Show quoted text
the
Show quoted text
Hi

Do a ldm set-vcpu <all cpus> primary


ldm set-vmem <all mem> 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
logical
Show quoted text
0.3%
Show quoted text
addressee(s)
Show quoted text

Show footer

Steve Goldthorpe <s...@waistcoat.org.uk> 2010年7月28日 下午


08:19:03

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 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 <tpsd...@gmail.com> 2010年7月28日 下午


08:51:34

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 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

#--------------------------------------------------
--------------------
# Prompt to confirm disabling LDoms.

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion List... 頁 9 / 19

Alexandre Chartre <alex...@ORACLE.COM> 2010年7月28日 下午


10:16:28
That's in the doc: "Factory Default Configuration
and Disabling Logical Domains"

http://docs.sun.com/app/docs/doc/821-0406/fac...

alex.
Show quoted text

Peter Wilson <pete...@oracle.com> 2010年7月29日 上午 05:55:34


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

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 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 VCPU


MEMORY UTIL UPTIME

i ti SP 4

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 11 / 19

Tom Gendron <tom....@oracle.com> 2010年7月29日 下午 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 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

<tere...@oracle.com> 2010年7月29日 下午 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 <pete...@oracle.com> 2010年7月30日 上午 01:06:50


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

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 12 / 19

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

Reboot and then at the OS do the following


procedures...

ldm list

ldm destroy <each domain listed above>

ldm list-spconfig

ldm rm-spconfig <each config listed above>

svcadm disable vntsd

svcadm disable ldmd

pkgrm <SUNWldm.... packages>

Remember to destroy any disk images you may have


set up for your guests...

eg.

zpool list

zpool destroy <ldoms pool names>

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<0..x> /etc/hostname.<e1000g|nx
ge0...x>

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

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 13 / 19

[OP] <madh...@wipro.com> 2010年7月29日 下午 11:26:54

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 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:<pete...@oracle.com>]


Sent: Thursday, July 29, 2010 3:24 AM
To: <tere...@oracle.com>
Cc: Madhulika Kherwa (WI01 - Enterprise Services);
<ldom...@opensolaris.org>
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.

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 15 / 19

Home | About | Privacy

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 16 / 19

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 17 / 19

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 18 / 19

http://web.archiveorange.com/archive/v/cjAMzoG5RVYXdW... 2011/3/23
LDOM Removal - Logical Domains Community Discussion L... 頁 19 / 19

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

Anda mungkin juga menyukai