Friday, August 27, 2010

Root password recovery for AIX

Term For AIX 6.2
Freelance Jobs
 Insert Media and boot the system.

 When screen appear / when you hear beep press F1 key till you get SMS menu.
 Select multiboot.
IBM Database 2.1 Server for AIX
 Select install from.
 Select CD (If you are installing from CD ) select Install.
 Select AIX version icon.
 System console by pressing the F1 key and then press Enter.
Freelance Jobs
 Start Maintenance Mode for System Recovery by typing 3 and press Enter.
 Select Access a Root Volume Group ignores the message.
 Type 0 and press Enter.
Freelance Jobs
 Select Access this Volume Group and start a shell.
 # passwd
Changing password for "root"
root's New password:
Enter the new password again:
# sync;sync;reboot

Friday, August 20, 2010

DISK REPLACEMENT



• Reduce the mirror copies for the LVs from the faulty disk.
• #unmirrorvg vg_name hdiskX
• remove the faulty disk from the "database" volume group
• #reducevg vg_name hdiskX
• remove the hdisk devices for the faulty disk
• #rmdev –l hdiskX –d
• Set service mode on disk if possible
• #diag command  Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)..
• Physically remove the disk from the system
• Insert the replacement disk
• Turn off service mode
• Run cfgmgr to make the replacement disk available
• Certify the replacement disk and assuming the disk certifies with no errors...
• #diag command  Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)..
• Add the replacement disk to the "database" volume group
• Make the LV copies for the LVs
• resync the volume group

"Accept changes " I recommand bellow book
Who Moved My Cheese?: An Amazing Way to Deal with Change in Your Work and in Your Life 

Tuesday, August 17, 2010

AIX interview question

AIX 5L Administration
Bellow are some AIX interview question.
-------------------------------------------------------------------------------------- Crack AIX interview Best luck!


• What is the command to view the active vg?

• How do u configure the Disk?

• Tell me Steps to configure the VG?

• How do u add a new disk in VG?


• Describe about LVM Adva/Dis.Adv?

• How do u find the fix is installed?

• How to u extend the FS?

• Attributes of FS?

• List all the LV in system?

• How do u find the PP size of the VG?

• How do u create the pp size of 32 MB in VG?

• What is the Limitation of VG?

• How do u disable the paging space?

• What is LPAR?

• How will you mirror a volume and how will you find if a volume is mirrored ? lsvg –l (vol gp name)

• A system is echoing the ping but not able to login via telnet why ? Etc /services etc/inetd.conf

• what is the migration path from 4.3 to 5.1 ? (or any versions)

• A system is able to ping within the network but not outside why ?

• What are the components of a HACMP ? (did you use serial interface)

• What are the resource groups in HACMP?

• What are the apar install if so for what ?

• How will you log in or start the system in what mode if you don’t know the root password?

• How is paging space is allocated?

• How will you truncate a log file ?

• What is a sticky bit what is the effect on file and directory ?

Step for TL/ML upgrade?

Question: step for TL/ML upgrade?
Ans:
Freelance Jobs
Maintenance Level :

A Maintenance Level (ML) is the service updates that are necessary to upgrade the base operating system (BOS) or an optional software product to the current release level.

Technology Level :

MLs are replaced by Technology Levels (TLs). A Technology Level (TL) is the new term for the twice yearly AIX 5L releases.Installing a TL should be viewed as an "all or nothing" operation.

alt_disk_install

The alt_disk_install command allows users a way to update the operating system to the next release or Technology Level without taking the machine down for an extended period of time. This can be done in two ways: by installing a mksysb image on a separate disk, or by cloning the current system and then applying updates to get to the next Technology Level on a separate disk. If a problem is encountered with the new level, the bootlist command can be run after the new disk has been booted, and the bootlist can be changed to boot back to the original disk in order to get the system back to the original level.

#oslevel -r command tells you what ML or TL you are running.

determine which fileset updates are missing by using the command.

#oslevel -rl 5300-05

How do I determine if all filesets of an ML or TL are installed?

#instfix -i|grep ML and/or instfix -i|grep TL

How do I determine if a particular fix is installed on my system?

#instfix -ik IY24045

How do I verify that the filesets have the required prerequisites and are completely installed?

#lppchk -v

To install selected updates, use the command:

#smit update_by_fix

To install all updates, use the command:

#smit update_all

Patching Implementation:

 Check all LVs in rootvg are mirrored except dumplvs, if not mirror it.

 Unmirror the rootvg & remove hdisk1 from rootvg

#unmirrorvg rootvg hdisk1

Check the bootlist & set to hdisk0

#bootlist -m normal –o

#bootlist –m normal hdisk0

Check the sysdump & set primary to hd6 & secondary to sysdumpnull

#dtem:@:/root: sysdumpdev

primary /dev/dumpdev

secondary /dev/dumpmirr

copy directory /var/adm/ras

forced copy flag TRUE

always allow dump FALSE

dump compression ON


#sysdumpdev -P -p /dev/dumpdev

#sysdumpdev -P -s /dev/sysdumpnull


Remove dumpmirr & loglv00 from hdisk1 & remove the disk from rootvg.

#rmlv dumpmirr

#rmlv loglv00

#reducevg rootvg hdisk1

 Start alt disk installation

#alt _disk _install -C hdisk1

Change the bootlist to hdisk1 & reboot the server

#bootlist –m normal hdisk1
Freelance Jobs
#bosboot –ad /dev/hdisk1

#bootlist –m normal hdisk1

#shutdown –Fr



 Start with TL upgrade

Once server up check bootlist & ensure that it is booted from hdisk1

#bootinfo -b

nfs mount file sets from NIM into any temporary directory

#mount NIM:/exports/fixes /patch

# inutoc .

Before installing or updating any fileset(s), ensure that there are no “Broken” or “Applied” packages or patches that could cause a problem, or conflict with the new software. Enter:

# installp –s

 The above filesets will need to be committed before applying the patching, by using the smitty commit option.

Failed installations can also be cleaned-up from the command-line using:

#installp 2>&1 –C

To reject fixes from the command-line use:

#installp –r
#smit update_all ………….first check the preview & then update all

#instfix –i
grep ML ……….check all TL level are installed properly, if found anything missing install that fileset

After installing patches successfully reboot the box by checking bootlist

 Monitor server for two days & then mirror rootvg again

#mirrorvg rootvg hdisk0

#bottlist –m normal hdisk0

#bosboot –ad /dev/hdisk0

Create dumpmirr LV & set sysdump

#sysdumpdev –P –p /dev/dumpdev

#sysdumpdev –P –s /dev/dumpmirr

Welcome Suggestions!
Freelance Jobs

Popular Posts

Is this site helping you ?