Remove the NICDEF of the NIC you no longer require from the USER DIRECTORY
update the ifcfg-ethx files as needed

Here's what I do
>From the Servers Console

service network stop
vmcp DET NIC <VDEV>
mv /etc/sysconfig/network-scripts/ifcfg-eth0 $HOME
mv  /etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth0
/usr/bin/perl -pi -e "s/eth1/eth0/"
/etc/sysconfig/network-scripts/ifcfg-eth0
service network start  or  shutdown -r now

dont worry about /sys  a reboot will clean it as it is a dynamic filesystem
anyways

William 'Doug' Carroll
Mainframe Systems Eng Sr I
Global Technology Infrastructure
ECS Virtualization Technology
http://www.jpmchase.com






             "Bhemidhi,
             Ashwin"
             <[EMAIL PROTECTED]>                                           To
             Sent by: Linux on         [email protected]
             390 Port                                                   cc
             <[EMAIL PROTECTED]
             IST.EDU>                                              Subject
                                       Re: Remove a qeth device

             06/05/2008 06:14
             PM


             Please respond to
             Linux on 390 Port
             <[EMAIL PROTECTED]
                 IST.EDU>






We are running Redhat Linux 2.6.18-1.2747.el kernel. So if I understand
it correctly if the NICDEF statement for the 0600 qeth device in the zVM
configuration file for the guest is removed then the corresponding
interface will not come up it Linux  sys file system and 0700 will be
the only network interface that the guest recognizes and come up eth0.


I think I know the network interface definitions
(/etc/sysconfig/network-scritps/ifcfg-ethX) that need to be changed.

Thank you,
Ashwin

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Mark Post
Sent: Thursday, June 05, 2008 4:59 PM
To: [email protected]
Subject: Re: Remove a qeth device

>>> On Thu, Jun 5, 2008 at  5:53 PM, in message
<[EMAIL PROTECTED]>, "Bhemidhi,
Ashwin" <[EMAIL PROTECTED]> wrote:
-snip-
> We now have completed our
> development/testing and would like to remove qeth device 0.0.0600 from
> the Linux guest devices definitions and so that qeth device 0.0.0700
> come up as eth0 network interface instead of eth1.  Is there a way to
> delete the network device definitions and subdirs created on sysfs for
> 0.0.0600.

If you get rid of the configuration files, the next time your system is
started, they won't be in /sys.  What appears to be files and
directories in /sys really aren't, they're part of what's called a
pseudo file system.

What distribution are you running?  That will determine exact file names
and directories.  If it's SLES, you should be able to go into YaST and
delete the interface you don't want.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


-----------------------------------------
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to