Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Saturday, 19 October 2019

How to reset the unknown root password in aix?


How to reset the unknown root password in aix?


1. Ground work:

Get the hmc details
Get the hscroot password of the HMC
Make sure CD available on the server.
Login to hmc and reboot the server from sms mode


2. Implementation

(Boot the server in sms mode and follow the below steps)

5. Select boot options
1. Select install/Boot device
4. IDE
1. IDE-CDROM
3. Service mode boot
1 Yes (Exit sms)
1. Type 1 and press enter to have english during install
3. Start maintenance mode for system recovery
1. Access a root volume group
0 Continue
1 (Select the boot device)
1. Access this volume group and start a shell

passwd
Changing password for "root"
root's New password:
Enter the new password again:
sync;sync;sync;reboot
                     
3. Validation

login to the server with the new password and confirm you can logon successfully.

4. Downtime
Yes downtime required for this task.

How to reboot HMC server in AIX?

How to reboot HMC server in AIX?



1. Ground work:

Ip address or hostname of the HMC
hscroot password to access the HMC
Get the Frames and Lpars attached to this hmc
cat /proc/uptime                   --> To check the uptime of the hmc


2. Reboot the HMC using command line

Login to the hmc with hscroot access
hmcshutdown -t now -r              --> To reboot the HMC


3. Reboot the HMC using GUI mode

Login to the HMC GUI using hscroot user account
HMC management --> Shutdown or restart  --> select Restart HMC  --> Click OK


4. Post check

cat /proc/uptime                   --> To check the uptime of the hmc
Check you can see all the Frames and its Lpars.

How to stop and start the hacmp cluster in aix?


How to stop and start the hacmp cluster in aix?


1. Ground work:

/usr/es/sbin/clu*/utiI/clRGinfo      --> To check the RG online status
lssrc -ls clstrmgrES                          --> To check the cluster manager is stable on both nodes
cat /var/hacmp/clverify/clverify.log  --> To check and confirm the log file has no errors.


Take a snapshot of the cluster

smitty hacmp
            extended configuration
                        snapshot configuration
                                    Create snapshot of the cluster configuration
                                                cluster snapshot name / Cluster snapshot description

The above will create .odm and .info file.
Take all the basic outputs

2. Stop the cluster services

smitty hacmp
            system management (C-Spoc)
                        Stop cluster services
                                    (Provide necessary details) stop now / provide node names/  Bring RG offline.

3. Validation

./clRGinfo                                 --> To check the RG online status
lssrc -ls clstrmgrES                   --> To check the cluster manager is stable on both nodes


4. Start cluster services

smitty hacmp
            system management (C-Spoc)
                        Start cluster services
                                    (Provide necessary details) start now / provide node names/  Choose Automatic for manage RG


5. Validation

/clRGinfo      --> To check the RG online status
lssrc -ls clstrmgrES                   --> To check the cluster manager is stable on both nodes
cat /tmp/hacmp.out                --> To check the HA services and RG status.

How to change memory using dlpar in aix?

How to increase memory using dlpar in aix?




1. Ground work:

uname -L                                 --> To find the Lpar name and Lpar id.
lparstat -i                                --> To check current assigned memory (Desired memory)
prtconf -m                               --> To check the size of the memory
lsrsrc ibm.managementserver     --> To find the hmc details where the lpar belongs to.
Get the hscroot password to access the HMC for the DLPAR operation.

2. Implementation steps 

Login to the HMC using hscroot access

system management
            servers
                        select the frame
                                    Select the lpar
                                                Dynamic Logical Partitioning
                                                            Processor
                                                                        Add or remove
                                                                                    change the assigned memory
(change the size of the memory - increase upto Maximum memory limits or decrease upto Minimum memory level)
                                                                                                Click OK

We need to change the same in the partition profile so that when the LPAR is reactivated, it should start with the new value.

Select the Lpar
            Configuration
                        Manage profile
                                    Select the default profile last activated
                                                Action
                                                            Edit
                                                                        Now change the desired memory value 
                                                                                    Click OK
                                   
4. Validation
lparstat -i                                        --> To check the output of the memory. (Check online memory)
prtconf -m                                       --> To check the size of the memory.

HMC

HMC

Hardware Management console for managing I AIX and VIO server.

Basically HMC is use for managing AIX LPAR on P series system.
here P series system are POWER5,POWER6,POWER7and POWER8.

Task which we can do  using HMC

1.Create AIX ,Linux and VIO LPAR
2.Create Virtual adapter like SCSI and fibre channel .
3.Dynamic memory and CPU allocation to AIX LPAR.
4.Admin console for Virtual server.
5.Can do firmware update from HMC for P series server.
6.Boot virtual server server into SMS mode
7.Shutdown and reboot of Virtual Server.
8.Also in new version of HMC admin can do virtual server performance monitoring directly from HMC.

Create filesystem in AIX using INLINE and JFS2 log



How To create filesystem in AIX using INLINE and JFS2 log

Method 1: INLINE Log

Identify Volume group on which we going to create Logical volume "testlv".
Make sure that volume group having enough physical partition free to create logical volume(LV).

Here Volume group is datavg


 

mklv -y testlv -t jfs2 datavg

crfs -v jfs2 -d testlv -m /test -a logname=INLINE -A yes

mount /test


Method 2:
Using JFS2 log

mklv -y testlv1 -t jfs2 datavg

mklv -y testloglv -t jfs2log -a e -r n datavg 1

mount /test1

Difference between JFS2 log and INLINE
  • JFS2 log support many Filesystems.
  • every Filesystem have 1 INLINE log
  • if we have several busy Filesystem and we having JFS2log which support these FS,then there is chances of performance bottleneck, to avoid this INLINE log is good option where every filesystem can have 1 inline.

QUORUM in aix


what is quorom in aix ?


During my AIX learning day i always wondered about what is quorom and how it affect volume group on AIX ? But after doing google i found answer like below.

Here is the answer :

Number of disk must be present in volume group to successfully vary on volume group in AIX.

"51% is mandatory vgda."


for example, XYZ volume group having 6 disk so mandatory disk for 51% VGDA is 4.

if disk in volume group is 10 then mandatory disk for 51% VGDA is 6.

Its simple


51% VGDA=Number of disk in Volume group/2 +1


so what happen if that mandatory percentage (51%) not available ?

rootvg quorom always kept disabled.

QUORUM:         1 (Disabled)

Reason behind this is when AIX OS boot and at the time of boot if rootvg having 2 disk and 1 disk from rootvg crashed then OS will never came up,because it not satisfies 51% VGDA rule.so its always good idea to keep mirrored rootvg quorom disabled.



will update new idea and thought on AIX

Thanks !!