Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Netapp: toasters

vif create on the fly

 

 

Netapp toasters RSS feed   Index | Next | Previous | View Threaded


scl at sasha

Nov 23, 2009, 4:19 AM

Post #1 of 3 (3313 views)
Permalink
vif create on the fly

I am going to create a vif using two interfaces (e0a and e0c).
The IP address of e0a is going to be the IP for the vif, e0c
is not in use.

I was hoping to do this without shutting down, and disrupt
connections on that IP for just a few seconds.

Do I need to "ifconfig down" e0a before running "vif create" ?

For speed and accuracy, I will put the commands in a file beforehand
and run it with "source".

The switch is configured, but I have to move the cables to the
configured ports. Should I do this before running "vif create" ?

This is a clustered pair, so I will be doing this on both filers.
Any clustering issues to worry about? Should I "cf disable"
before and "cf enable" after to avoid any unwanted fail overs?

I would appreciate any suggestions on how best to do this.

Thanks,

Steve Losen scl [at] virginia phone: 434-924-0640

University of Virginia ITC Unix Support


bacardicoke at gmail

Nov 23, 2009, 4:31 AM

Post #2 of 3 (3220 views)
Permalink
Re: vif create on the fly [In reply to]

Hey Steven

On Mon, Nov 23, 2009 at 13:19, Steve Losen <scl [at] sasha> wrote:
>
> I am going to create a vif using two interfaces (e0a and e0c).
> The IP address of e0a is going to be the IP for the vif,  e0c
> is not in use.

What type of VIF are you creating?

>
> I was hoping to do this without shutting down, and disrupt
> connections on that IP for just a few seconds.
>
> Do I need to "ifconfig down" e0a before running "vif create" ?

Yes. Also, the mac-address associated with the IP may change.

>
> For speed and accuracy, I will put the commands in a file beforehand
> and run it with "source".
>
> The switch is configured, but I have to move the cables to the
> configured ports.  Should I do this before running "vif create" ?

Depends on the type of vif.
In case of a single or lacp, you should do this before creating the
vif, however, with a multi you should not, as you risk losing up to
50% of your packets.

>
> This is a clustered pair, so I will be doing this on both filers.
> Any clustering issues to worry about?  Should I "cf disable"
> before and "cf enable" after to avoid any unwanted fail overs?

Again, depends if you have cluster failover on network failure on.
Best is to switch this off during these kinds of actions to avoind
unwanted takeovers (which will return the filers to their original
network config.

>
> I would appreciate any suggestions on how best to do this.

Whatever you do, do not forget to change the /etc/rc to reflect the
changes. If you do forget, your filer will be lost after a reboot.

--
Simple guidelines to happiness:
Work like you don't need the money,
Love like your heart has never been broken and
Dance like no one can see you.


tmacmd at gmail

Nov 23, 2009, 4:43 AM

Post #3 of 3 (3219 views)
Permalink
Re: vif create on the fly [In reply to]

I have done this before, but you may run into arp issues. I am not sure
which MAC the VIF will take on.
You may have to delete rarp caches in switches...or wait twenty minutes for
it to clear on its' own.

You can modify the /etc/rc file and make sure it is perfect. I use LACP vifs
when I need them.
That can always be changed to multi if you do not want to or can not use
LACP on your switch.

***SNIP***
vif create lacp vif0 -b mac e0a e0a
ifconfig vif0 `hostname`-vif0 mediatype auto flowcontrol full netmask
x.x.x.x partner vif0
route add default router 1
***SNIP***

Of course, make sure `hostname`-vif0 and router exists in the /etc/hosts
file.
Also, make sure that router exists in the /etc/dgateways file.

Then you could do something crazy like:

route -f ; ifconfig e0a 0.0.0.0 down ; <repeat for each and every interface
that is up using a semicolon between each> ; source /etc/rc

I usually get my prompt back in a few seconds, however, much safer to run
this command from the rlm or console...just in case.

--tmac
Tim McCarthy
Principal Consultant


RedHat Certified Engineer
804006984323821 (RHEL4)
805007643429572 (RHEL5)


On Mon, Nov 23, 2009 at 7:19 AM, Steve Losen <scl [at] sasha>wrote:

>
> I am going to create a vif using two interfaces (e0a and e0c).
> The IP address of e0a is going to be the IP for the vif, e0c
> is not in use.
>
> I was hoping to do this without shutting down, and disrupt
> connections on that IP for just a few seconds.
>
> Do I need to "ifconfig down" e0a before running "vif create" ?
>
> For speed and accuracy, I will put the commands in a file beforehand
> and run it with "source".
>
> The switch is configured, but I have to move the cables to the
> configured ports. Should I do this before running "vif create" ?
>
> This is a clustered pair, so I will be doing this on both filers.
> Any clustering issues to worry about? Should I "cf disable"
> before and "cf enable" after to avoid any unwanted fail overs?
>
> I would appreciate any suggestions on how best to do this.
>
> Thanks,
>
> Steve Losen scl [at] virginia phone: 434-924-0640
>
> University of Virginia ITC Unix Support
>
>
>

Netapp toasters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.