Monday, July 30, 2012

Brocade ISL connectivity issue (zone conflict)

Hi,

After providing connectivity between two san switch  i am getting (zoneconflict error)

and it is not establishing ISL Connectivity.

Solution:

Please disable Cfg for both of the switches and enable the config for only one switches and it should work.

Make sure you will be having output like below mention


brcd300-1:admin> switchshow
switchName:     brcd300-1
switchType:     71.2
switchState:    Online
switchMode:     Native
switchRole:     Subordinate
switchDomain:   1
switchId:       fffc01
switchWwn:      10:00:00:05:1e:c3:fc:1f
zoning:         ON (NB)
switchBeacon:   OFF

Area Port Media Speed State     Proto
=====================================
  0   0   id    N4   Online           F-Port  51:0a:09:80:00:02:f3:4e
  1   1   id    N4   Online           F-Port  50:0a:09:80:00:05:72:a0
  2   2   id    N4   Online           F-Port  50:0a:09:80:00:05:69:80
  3   3   id    N4   Online           F-Port  50:0a:09:81:00:03:5b:b2
  4   4   id    N4   Online           F-Port  50:0a:09:80:00:03:5b:b1
  5   5   id    N4   Online           F-Port  50:0a:09:84:00:26:99:bd
  6   6   id    N8   Online           F-Port  21:00:00:24:ff:2f:d7:10
  7   7   id    N8   Online           F-Port  21:00:00:24:ff:2f:d7:11
  8   8   id    N8   No_Light
  9   9   id    N8   No_Light
 10  10   id    N8   No_Light
 11  11   id    N8   No_Light
 12  12   id    N8   No_Light
 13  13   id    N8   No_Light
 14  14   id    N8   No_Light
 15  15   id    N8   No_Light
 16  16   id    N8   No_Light
 17  17   id    N8   No_Light
 18  18   id    N8   Online           E-Port  10:00:00:05:1e:d9:d9:0a "cpe-brcd300-2"
 19  19   id    N8   Online           E-Port  10:00:00:05:1e:d9:d9:0a "cpe-brcd300-2" (upstream)



Wednesday, July 25, 2012

How to Configure Vfiler on Netapp 7 Mode


How to configure vfiler on Netapp:

Check the License:
License

Add the License :
License add license name

Create Vfiler:
vfiler create vfiler2 -n -s default-ipspace -i 10.238.134.180  /vol/vol2

Configure IP for Vfiler:
vfiler run vfiler2 setup

Check the Vfiler status

Vfiler status

Logging to vfiler.

Vfiler context vfiler1

Tuesday, June 26, 2012

VIO Server SEA and VSCSI Configuration



VIO Ethernet SEA Configuration:

mkvdev -sea ent2 -vadapter ent0 -default ent0 -defaultid 1

ent2 -> physical adapter
ent0 -> virtual adapter


VIO Server Side:

create -> ethernet adapter and enter vlan id 1 -> select access outside netwotrk
mkvdev -sea ent2 -vadapter ent0 -default ent0 -defaultid 1

it will create new adapter called ent3 and you need to configure ip for this interface.



Client Side

create -> ethernet adapter and enter sam vlan id of 1

Note:
vlan id should be same server and client side
dont select accessing outside network

VIO Server Vscsi Configuration:

mapping Virtual Disk to Lpar:

mkvdev -vdev hdisk2 -vadapter vhost4

MApping Cd drive

mkvdev -vdev cd0 -adapter vhost4

Deleting VIO

rmdev -dev vhost1 -recursive


Removing Network Config in AIX

ifconfig en0 down detach

rmdev -dl en0


adapter id 14

client partition 4

Friday, June 15, 2012

How to configure multiple gateway on aix


Adding two gateway in AIX:

smitty route


Move cursor to desired item and press Enter.

  List All Routes
  Add a Static Route
  Remove a Static Route
  Flush Routing Table




                                  Add Static Route

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Destination TYPE                                    net                           +
* DESTINATION Address                                [0.0.0.0]
  (dotted decimal or symbolic name)
* Default GATEWAY Address                            [10.72.220.1]
  (dotted decimal or symbolic name)
  COST                                               [0]                             #
  Network MASK (hexadecimal or dotted decimal)       [0.0.0.0]
  Network Interface                                  [any     Use any available in> +
  (interface to associate route with)
  Enable Active Dead Gateway Detection?               no                            +
  Is this a Local (Interface) Route?                  no                            +
  Policy (for Multipath Routing Only)                 Default (Global)              +
  Weight (for Weighted Multipath Routing Policy)     [1]                             #
  Apply change to DATABASE only                       no                            +

F1=Help              F2=Refresh            F3=Cancel             F4=List
F5=Reset             F6=Command            F7=Edit               F8=Image
F9=Shell             F10=Exit              Enter=Do

How to remove ether-channel group in aix


Removing an EtherChannel or Link Aggregation

Use this procedure to remove an EtherChannel or Link Aggregation.
  1. Type smitty chinet and select the interface belonging to your EtherChannel. Change the Current STATE attribute to detach, and press Enter.
  2. On the command line type smitty etherchannel.
  3. Select Remove an EtherChannel and press Enter.

Wednesday, June 13, 2012

How to configure IPV6 address on Solaris


How to configure ipv6 address manually on solaris 10


Configuring IPV6 IP:

ifconfig e1000g0 inet6 addif fd20:8b1e:b255:4213::a48:d541/64 up

Configuring IPV6 Gateway:

route -p add -inet6 default fd20:8b1e:b255:4213::1


Thursday, June 7, 2012

HPUX commands quick Refrence


HP-UX Cheat Sheet
This is a document that can be used for revision purposes for HP-UX.
Kernel
Kernel parms and Hardware./usr/sbin/sysdef or ioscan –fn
Major numbers (devices)lsdev
Unix device messagesdmesg
Configuration files/etc/rc.config.d
Unix Kernel/stand/vmunix
All crash files./var/adm/crash

display loaded moduleskmadmin
kmadmin -s
load moduleskmadmin -L
unload moduleskmadmin -U
set kernel parameterskctune (11i)
rebuild kernel
display kernel parameterskctune (11i)
sysdef
kmtune
kmsystem
usr/sam/lbin/getkinfo -f /stand/vmunix -o /tmp/kernel.data
re/build kernelcd /stand/build
/usr/lbin/sysadm/system_prep -s system
edit system file
/usr/sbin/mk_kernel -s ./system
mv /stand/system /stand/system.old
mv /stand/vmunix /stand/vmunix.old
mv /stand/build/system /stand
mv /stand/build/vmunix_test /stand/vmunix
shutdown -r 0

System Information
amount of memorydmesg |grep -I physical
/usr/sam/lbin/getmem
/opt/ignite/bin/print_manifest
cpu (type, number, etc)
/opt/ignite/bin/print_manifest
sam > performance monitors > system properties (detailed)
model
uname -m
disk drives
pvdisplay -v 
disk info serial numbers
diskinfo -v /dev/rdsk/c0t4d0 (detailed but no serial number)
/opt/ignite/bin/print_manifest
ioscan -fn -C disk
Kernel 32 or 64
getconf KERNEL_BITS (11.0)
(HPUX < 11.00 all 32 bit)

Note: determine if system supports 32/64 bits
getconf HW_CPU_SUPP_BITS
Display firmware
< 10.20:
1. At the system prompt, enter "sysdiag"
2. At the DUI prompt, enter "sysmap"
3. At the ENTER MAP prompt, enter "cpumap"
4. Note the PDC Firmware value
5. At the ENTER MAP prompt, enter "exit"
6. At the DUI prompt, enter "exit"

10.20 >: use mstm (tools manger) 
trace system calls
 

Daemons
NFS daemonsserver: rpc.mountd, nfsd
client:rpc.statd, lockd

/etc/exports
Time daemonsnetdaemons

/etc/rc.config.d/netdaemons
/etc/ntp.conf

Software
adding packages/patchswinstall -s /var/spool/sw
removing packages/patchswremove
Listing installed packages/patchesswlist -l product PH* (HPUX 10.x)
swlist -l patch (HPUX 11)
verify package/patchesswlist -l -a state
swverify
Adding packages to depotswlist -d @ /dev/rmt/0m
Removing packages to depotswremove -d * @ /var/spool/sw
listing packages from depotswlist -d @ /dev/rmt/0
swlist -d @ /var/spool/sw
copy software from one depot to anotherswcopy -s /dev/rmt/0 @ /var/spool/sw
register softwareswreg
List all files in packageswlist -l
configure softwareswconfig

Log Files
messagesn/a
syslog/var/adm/syslog/syslog.log
mail/var/adm/syslog/mail.log
cron/var/adm/cron/log
boot/var/adm/syslog/syslog.log
sam log/var/sam/log/samlog

Accounts
displaying userscat /etc/passwd
logins
adding a useruseradd
sam
removing a useruserdel
sam
modifying a userusermod
sam
password files/etc/passwd
/tcb/files/auth/r/root (trusted system)

Network
displaying NIC speedsndd -get
setting NIC speedsndd -set 
lanadmin
display routing tablenetstat -rn
displaying network interfaceslanscan (all)
ifconfig lan0 (individual)
Lan device config (interface name, state, mjr number, Hardware path, mac address)lanscan
Lan Diag tool (like a netstat –I and –s and more)Landiag or lanadmin
setup dns/etc/resolv.conf
name service switch file/etc/nsswitch.conf

NFS Configuration
display nfs sharesshowmount -e localhost
cat /etc/xtab
create nfs share/etc/rc.config.d/nfsconf (edit)
/etc/exports (edit file & add share)
exportfs -a
uncreate nfs share/etc/rc.config.d/nfsconf (edit)
exportfs -au (unshare all)
exportfs -u /home/vallep
/etc/exports (edit file & remove file)
nfs start/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start
nfs stop/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop
nfs statusps -ef|grep
nfs reloadexportfs -a
nfs performancenfsstat

Sam
Sam Log file location/usr/local/log/samlog

Console
Root only on console/etc/securetty

Boot (ISL)
Boot a particular kernel (standalone)Hpux –is /stand/vmunix
Boot in stanaloneHpux –is boot
Boot multi-userHpux –lm boot

Build a new kernel
 cd /stand/build
/usr/lbin/sysadm/system_prem -s system
edit system file
/usr/sbin/mk_kernel -s ./system
mv /stand/system /stand/system.old
mv /stand/vmunix /stand/vmunix.old
mv /stand/build/system /stand
mv /stand/build/vmunix_test /stand/vmunix
reboot

Disk
setting the boot devicesetboot -p 
setboot -a
format floppy driven/a
mount/unmount floppyn/a
mount/unmount CDROMmount -rF cdfs /dev/mnt
create boot disk or
recovery tape
recovery tape (preview):
make_tape_recovery -v -I -x inc_entire=vg00
boot cdrom/diskette
(single user)
>boot pri
Interact with IPL? Y
ISL>hpux -is
boot into maintenace
mode
>boot pri
Interact with IPL? Y
ISL>hpux -lm
Display the LIF area (Logical Interchange Format)lifls -l /dev/dsk/c0t6d0
Display characteristics of a tape drivelssf /dev/rmt/c4t1d0DESTn

Logical Volume Manager

see hpux logical volume manager for lvm commands
mountable drives/etc/fstab
lvm drives/etc/lvmtab
exported drives/etc/exports
mounted exported drives/etc/xtab

create a filesystemnewfs –F
create a exported filesystemexportfs-a
block devicesmkfs –v –C -m
raw devicesmkfs –v –r –C -m

info on disk drivesdiskinfo
df –kbdf
change interleave factormediainit
A number of disk that have to be running in order for a VG to mountquorum

Swap
Display swap informationswapinfo (display in Kb)
swapinfo -m (display in Mb)
swapinfo -tm (total and Mb)
Adding swapCreate logical volume or filesystemswapon |
swapon -p 3 |

update /etc/fstab
Note: -p = priority swap number
Removing swapedit /etc/fstab
reboot

Misc
startup 
shutdownshutdown -h -g0 -y (halt)
shutdown -r -g0 -y (reboot)
init status
0
1
2
3
4
5
6
 
determine the runlevelwho -r
obtain default run level 
start xwindows 
ntp setup 
force a fsck 
page size (memory)4Kb
initialize systemset_parms initial
Timezone/etc/TIMEZONE
update /dev directoryClass:
insf -C tape
Recreate deleted link:
insf -H 0.1.0 -e
remove devicermsf
list device driverslsdev
console login (allow/deny)/etc/securetty

Thursday, May 24, 2012

AIX Package and patches installation Tips


AIX - Software Maintenance

AIX - Software Maintenance

In this software Installation we can do following things

1. Fileset installation
2. Applying the Fileset
3. Reject the Installed Fileset
4. Commit the applied Fileset
5. Remove the Committed Fileset
6. Verify the Installed Fileset ( whether properly installed or not)
7. Clear the braked Fileset installation
8. List the Installed Fileset
9. List the Installed Fileset contents ( What are the files available in File Set)
10. To finding the file, Extracted from which Fileset.
11. To find the command file path
12. To view the fileset history
1. Fileset Installation

The Filesets has additional support files for AIX. Suppose we need additional files, we can install it from Base operating system (bos) CD, Bonus software CD, Expansion Software CD, LPP’s (Licensed program product) CD.

NOTE:

If we want to check the AIX Server performance, we need topas command, this topas command is not by default come under AIX OS installation, So that topas file we have to install from some other CD’s.

First we should mount the CDROM drive in server.

When we mount the CDROM, we required mount point like one directory.

So we should create the directory. Eg. /cdmnt (Directory name will be whatever may be)

#mkdir mount point
#mkdir cdmnt

Then u can mount the CDROM drive in cdmnt directory

#mount –v cdrfs –o ro /dev/cd0 /mount point
#mount –v cdrfs –o ro /dev/cd0 /cdmnt

Verify the Cdrom drive mount process.

#mount

The above command will show the cdrom drive mount point i.e. /cdmnt and cdrfs file system.

Then u go to /cdmnt folder

#cd cdmnt
#pwd
cdmnt
#

Now topas file will be under bos.permaget.tool file set. Now we should find the file set in software cd.

To find the file set using command #installp –Ld /dev/cd0 | grep bos.perf*

If the above bos.permaget.tool file set is available in cd, it will show otherwise it won’t show.

If file set is found then we have to install the fileset.

To install the file set using #installp –agxpd /dev/cd0 file set (for preview installation)
i.e. #installp –agxd /dev/cd0 bos.permaget.tool (for installation)

see difference
Options –agxpd for preview

-agxd for installation

When we type the above command, fileset installation will start and topas file extracted from the fileset and it will store to /usr/sbin/topas (super user or administrator commands stored in /usr/sbin)

After that we can use topas performance monitor utility.

#topas

The above command will display the system performance status, like cpu usage, memory usage, io usage (hdisk’s) network usage, paging space usage .


2. Applying Fileset (It is not permanent installation)

This applying Fileset is just file set installation, i.e. When we updating the old fileset to new fileset, by default installation has done in apply state and old fileset configuration is moved to /usr/lpp/package(fileset) path, After commit the fileset this /usr/lpp/package(fileset) will updated . Because if any problems in updated fileset, we can easily reject(remove) the updated fileset, If updated fileset is working properly we can commit the updated fileset, i.e. permanent installation, this case we cannot reject the fileset, but we can uninstall the fileset.

NOTE:

Suppose we are installing fileset for the first time, this first time installation done in commit state, and When we updating the fileset, installation has done in apply state, suppose that updated fileset giving some problem, we can easily reject the updated fileset.





For fileset installation using command installp

Suppose u want to install one fileset bos.rte

Preview (It will show the installation preview – This preview is not required our testing purpose we are using)
#installp –agxpd /dev/cd0 fileset name

#installp –agxpd /dev/cd0 bos.rte (for preview)

Flags:

a - Apply
g – Perquisites (supporting file)
x – Expand the space
p – Preview
d – Specify the device

After preview we can install the Fileset

#installp –agxd /dev/cd0 bos.rte

After Installation, old installed fileset configuration is moved to /usr//lpp/package (fileset), and updated fileset also available in /usr/lpp/package.


3. Reject the Applied Fileset.

After updating the fileset that installed fileset is moved to applied state, suppose that updated filesets are not working properly then we have to remove the updated fileset and pervious filesets are to be configuring to current working condition.

Now we will reject the updated fileset using

#installp –rgp fileset name (For preview)

#installp –rg fileset name

#installp –rg bos.rte.command

The above command is used to remove the updated fileset and automatically previous fileset is moved to working condition.



4. Commit the Applied fileset (It is permanent installation)

After updating the fileset that installed fileset is moved to applied state, suppose applied filesets are working properly, then we have to commit the updated fileset for permanent installation. Otherwise we will remove the updated fileset using reject option.

Now we will commit the updated fileset using

#installp –cgx fileset name

#installp –cgx bos.rte.command

The above command is used to commit the updated fileset.



5. Remove the Committed fileset (It is complete fileset removal not reject)

After commit the fileset, that fileset is moved to permanent installation, we cannot reject, we have to uninstall the fileset only.

Now we will uninstall the committed fileset using:

#installp –ugp Fileset name

#installp –ugp bos.rte.command (For preview)

#installp –ug bos.rte.command (For un installation)

The above command is used to uninstall the committed fileset.



6. Verify the installed fileset (Whether properly installed or not)

After installation we want to verify whether filesets are properly installed are not, using following command

#lppchk –v fileset name

#lppchk –v bos.rte.command

If any problems it will show the error message otherwise no error message, then we will confirm fileset is installed properly.


7. Clear the braked fileset installation:

While installing the filesets, some problem has occurred, i.e. Cd is not reading or space is not available in volume group.

This time half of the fileset only installed in server, so before next installation, we should remove the half installed fileset using

#Installp –C

To clean the brokend fileset installation


8. List the installed fileset

Suppose we want to see what are the filesets available in Server, Using

#lslpp –l

The above command list the all installed fileset

Suppose you want to find particular fileset in server, Using

#lslpp –l | grep Fileset name

The above command is list the specified fileset only, if file set is not available or not installed, it won’t show anything.


9. List the installed fileset content (What are the files available in fileset)

Suppose we want to see bos.rte.command fileset content, using

#lslpp –f fileset name

#lslpp –f bos.rte.command

The above command is display the bos.rte.command file

Basically bos.rte.command fileset has user commands So it will show the /usr/bin/ls,






10. To find the file, which is installed from which fileset.

Using # lslpp –w /usr/bin/ls

The above command shows the bos.rte.command fileset name, because ls command file is extracted from bos.rte.command fileset

#lslpp –w /usr/sbin/savevg

The above shows some other fileset name.

11. To find the command file path:

Using #which ls

The above command is display the given file path i.e. the above command output will be

/usr/bin/ls

Suppose we want to savevg path, using

#which savevg

/usr/sbin/savevg

12. To view the fileset history:

Using #lslpp –h fileset name

#lslpp –h bos.rte.command

The above command output will be full details of fileset.

Fileset version, installed time, date

NOTE:
Whenever we installing the fileset or fix, in that current path should have the .toc (table of content) file. If this file is not available we cannot install any fileset or fix from that current path

If file is not available, we can create the .toc file using command
#inutoc .

The above command is used to create the .toc file

Wednesday, May 16, 2012

how to extend Linux Partition Size in lvm


Extending a Logical Volume

Bottom line: if the underlying Volume Group doesn't have enough free space, to extend the Logical Volumeyou'll first have to extend the underlying Volume Group by adding another Physical Volume to it.
In VMWare you could either create a new virtual hard disk device to add to the volume group, or extend an existing virtual hard disk device, create a new partition with cfdisk, and add the new partition to theVolume Group:
# example #1: you've added to VMWare a new virtual hard disk called /dev/sdb
pvcreate /dev/sdb
vgextend turnkey /dev/sdb

# example #2: you've expanded the existing sda hard disk
cfdisk /dev/sda  # creating /dev/sda3 (you may need to reboot before you can see this)
pvcreate /dev/sda3
vgextend turnkey /dev/sda3
After you've extended the Volume Group, you are free to extend the underlying Logical Volume:
# lvextend -L+10G /dev/turnkey/root
Extending logical volume root to 27.0 GiB
Logical volume root successfully resized
Finally, you'll have to resize the filesystem within /dev/turnkey/root so it can see that the underlying block device just got 10G bigger:
# resize2fs /dev/turnkey/root
resize2fs 1.41.11 (14-Mar-2010)
Filesystem at /dev/turnkey/root is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
Performing an on-line resize of /dev/turnkey/root to  7077888 (4k) blocks.
The filesystem on /dev/turnkey/root is now 7077888 blocks long.

Thursday, May 10, 2012

Netapp Metro Cluster Architecture Digram