Thursday, September 15, 2016

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.

Note: If you dont have CD to boot up the server in maintenance mode, then you can use the NIM server to get maintenance mode. Please see the link below.
http://howtoaix.blogspot.in/2015/04/how-to-boot-server-into-maintenance.html


Saturday, September 10, 2016

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.


Wednesday, September 7, 2016

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.



Tuesday, September 6, 2016

How to increase memory using dlpar in aix?

How to change 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.