Sunday, October 6, 2013

Trying to come back

I don't know why I left this blog neglected for years. Maybe there were a lot of works to be done and It surprisingly increases my knowledge from time to time. Since I graduated from my college, I've been working with MFEC and I met a lot of people that taught me a lot of thing.

Anyway, I'll try to write down things I knew in here once again. Just to be sure, I must tell you that my English has been weakening. There might be something I cannot explain clearly as I could earlier. haha

Thursday, February 2, 2012

Create VLAN for vlan tag

$mkvdev -vlan entx tagid xx
entx is your sea adapter
and tagid xx is your vlan id that you want

Create SEA Failover in VIOS

We need 2 virtual adapters, one for sea and another for ctl_chan
after created two adapters, from the scratch we will have ent2,ent3 as our virtual adapter
now we start with create sea adapter

$ mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 1 -attr ha_mode=auto ctl_chan=ent3
**defaultid is the vlan number of your vios (depends on you)

Now we will have ent4 which will be our sea adapter.
Check it with

$lsdev -dev ent4 -attr

Now we need an ip address for sea adapter.
Start with this

$cfgassist
Then choose for our sea adapter which is ent4 for now.
Provides any information you have, then you done.
Please do the same with VIOS_2, so you can have sea failover operates correctly.

NIM Master Installation

First install the nim's fileset, for master we need nim master, nim client , and nim spot. Let's install aix fileset with this command

#smitty installp

After that we have to configure the nim master ifself with this command.

#smitty nim

choosing the Configure a Basic NIM environment (EZS) and provides any information you need. (all the required fields)

Let's check the nim with this command, which will show you the nim environments you have
#lsnim

If you need to know their object, you can use
#lsnim -l boot
#lsnim -l nim_script

for more info you can check it at /etc/niminfo

Don't forget to check the essential daemon
#lssrc -ls inetd |grep tftpd
#lssrc -ls inetd |grep bootpd
Make sure it has activated already

now check for the lpp_source we have created
#lsnim -l lpp_source1 (this name depends on you when first configure the nim master.)

make sure the simages attribute for the NIM lpp_source is set to yes.

and check the SPOT with
#nim -o lppchk -a show_progress=yes spot1 (this name depends on you when first configure the nim master)

Ok, all things are set for MASTER, we will continue with NIM Client.
I normally use smitty to configure most of the things, so I will start with this command. (we are now going to configure the nim master to know his client)
**But first of all, we need to make sure that both nim master and client are negotiable by their hostname!

If all thing are set, let's get back to smitty.
#smit nim_mkmac

You need a Hostname of nim client to type with the first page.
Then we change the cable type to tp, and that's all

Let's declare client for master
Go to client and type
#smitty nim
choose the first one and provides any information of the client you have
then check whether if the client is know itself by going to
#smitty nim_bosinst
if anything has set up, there will be a client information popup.

Let's define mksysb resource to make an image backup.
#smitty nim_mkres

Resource Type: mksysb
Server of Resource: master
Location of Resource: /export/images/mksysb (don't forget to allocate the directory for mksysb)

CREATE system backup image: yes
NIM CLIENT to backup: maz-aix (your nim client's name)

Now wait for the copying, then check whether if you got mksysb in hand.
#lsnim -l mksysb_aix6 (this is the mksysb's name)

If there was an error, talk about some limitation of file size, please reconfig the ulimit of the root account by this command.
#smitty user

change kernel parameter

#no -o tcp_ephemeral_low=9000 -o udp_ephemeral_low=9000 -o tcp_ephemeral_high=65500 -o udp_ephemeral_high=65500

To create image.data from mksysb in order to edit mirror

#restore -xvqf /export/images/Node1.mksysb ./image.data

NPIV

To show fcs adapter with vhost in vios
$lsmap -all -npiv

To map vhost with fcs
$vfcmap -vadapter vfchost14 -fcp fcs0