May 22, 2012

MultiStore vFiler Tip

Here’s a small tip on configuring additional IP addresses in a NetApp vFiler (configured using MultiStore license).

  1. Add the IP address to the vfiler
    simtap3> vfiler add  myapp -i  172.16.56.143 
    
    simtap3> vfiler status -a myapp
    myapp                            running
       ipspace: default-ipspace
       IP address: 172.16.56.142 [e0a]
       IP address: 172.16.56.143 [unconfigured]
       Path: /vol/myapp_data1 [/etc]
       UUID: 18c11808-3121-11df-8019-000c299de18f
       Protocols allowed: 7
       Allowed: proto=rsh
       Allowed: proto=ssh
       Allowed: proto=nfs
       Allowed: proto=cifs
       Allowed: proto=iscsi
       Allowed: proto=ftp
       Allowed: proto=http
       Protocols disallowed: 0
    simtap3>
            
  2. The IP address stays unconfigured at this point. To actually configure it, run vfiler setup again and now you can bind the IP address to the interface
    simtap3> vfiler run  myapp setup            
    
    ===== myapp
    The setup command will rewrite the /etc/exports,
    /etc/hosts, /etc/hosts.equiv, /etc/nsswitch.conf,
    and /etc/resolv.conf files, saving the original contents of
    these files in .bak files (e.g. /etc/exports.bak).
    Are you sure you want to continue? [yes]
    Change binding for vfiler IP address 172.16.56.142? [n]:
    Configure vfiler IP address 172.16.56.143? [y]:
    Interface to assign this address to {e0a, e0b, e0c, e0d}: e0a
    Netmask to use: [255.255.255.0]:
            The administration host is given root access to the filer's
            /etc files for system administration.  To allow /etc root access
            to all NFS clients enter RETURN below.
    Please enter the name or IP address of the administration host:
    Do you want to run DNS resolver? [n]:
    Do you want to run NIS client? [n]:
    e0a: flags=0xe48867 mtu 1500
            inet 172.16.56.141 netmask 0xffffff00 broadcast 172.16.56.255
            inet 172.16.56.142 netmask 0xffffff00 broadcast 172.16.56.255
            ether 00:0c:29:9d:e1:8f (auto-1000t-fd-up) flowcontrol full
    e0a: flags=0xe48867 mtu 1500
            inet 172.16.56.141 netmask 0xffffff00 broadcast 172.16.56.255
            inet 172.16.56.142 netmask 0xffffff00 broadcast 172.16.56.255
            ether 00:0c:29:9d:e1:8f (auto-1000t-fd-up) flowcontrol full
    simtap3> vfiler status -a myapp
    myapp                            running
       ipspace: default-ipspace
       IP address: 172.16.56.142 [e0a]
       IP address: 172.16.56.143 [e0a]
       Path: /vol/myapp_data1 [/etc]
       UUID: 18c11808-3121-11df-8019-000c299de18f
       Protocols allowed: 7
       Allowed: proto=rsh
       Allowed: proto=ssh
       Allowed: proto=nfs
       Allowed: proto=cifs
       Allowed: proto=iscsi
       Allowed: proto=ftp
       Allowed: proto=http
       Protocols disallowed: 0
    simtap3>
            

Comments

  1. DB says:

    The ‘non wizard’ method for step 2 is:

    myfiler> ifconfig e0a alias 172.16.56.143 netmask 255.255.255.0

    and then edit the filers /etc/rc to include the above ifconfig. We did note that you need to add the address to the “guest” vFiler before setting up the alias on the physical (vfiler0).

Speak Your Mind

*