Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
lsdev -Cc adapter -spci | grep fcs For each of the FCS instances
Micorcode
Firmware
Driver
Software
lslpp -L devices.pci.df1000f7.com
lslpp -L devices.pci.df1000f*
Disk type/info
Software
Devices
lsdev -C -t power
WWN
80P4544
00P2996
00P4495
09P0102
09P5080
80P4381 ???
80P4384
00P4295
00P4297
00P1882
03N4167
09P1162
09P1173
09P4038
24L0023
NOTE: You may need to modify lines for the APPROPRIATE version
Drivers
lslpp -L devices.pci.df1000f*
If not, then
cd /mnt/aix/aix52_apar_IY56722
installp -a -Q -d . devices.pci.df1000fa.rte
smit install_software
devices.pci.df1000fa
devices.pci.df1000f7
lsvpcfg
lspv
AIX SDD
cd /mnt/EMC/Drivers/AIX
cd /mnt/EMC/ECC/Control_Center_5.2
./install_master.sh ‘pwd‘
/opt/ecc
ECC-servername
default
default
/opt/ecc/exec/start_master.csh
EMC PowerPath
cd /mnt/EMC/PowerPath/PowerPath4.4/aix
/usr/sbin/emcpreg -install
/usr/sbin/powermt check_registration
View SDD
lsvpcfg
iostat -m
diag
System Verification
loopback plug? no
F10
Configure disks
EMC Symmetrix software
cfgmgr -v
/usr/lpp/EMC/Symmetrix/bin/emc_cfgmgr
/usr/sbin/powermt config
/usr/sbin/powermt save
SDD
/usr/sbin/allpaths
cfgmgr -l dpo
**or**
/usr/lib/methods/cfallvpath -2
lspv
do
echo $DISK
Increase capacity of an array first (storage manager –> select array –> add free space –> OK). And
then increase capacity of actual LUN. Go to AIX host and run chvg -g against volume group to make it
Notes -
0516-1216 chvg: Physical partitions are being migrated for volume group descriptor area expansion.
Please wait.
0516-1164 chvg: Volume group <>vg changed. With given characteristics <>vg can include upto
-g
Will examine all the disks in the volume group to see if they have
grown in size. If any disks have grown in size attempt to add
varyonvg on the volume group for LVM to see the size change
on the disks.
AIX paging
March 3, 2009 — unixskylab
Avoid shared disks likely to be moved to another system (might require a reboot)
Don’t have dedicated paging disks – when you have a peak in paging you want ALL disks to help
out.
set size
Warning:
use lsps -a -c
We recommend using more paging spaces rather than growing just the one but there is a limit to the
If the spaces are different sizes this can be used to make them all the same size.
Paging spaces are used evenly therefore lots of paging spaces and lots of disks
If a paging space disk fails, the system will halt, on reboot the paging space will be disabled.
If your paging space is not protected by RAID5 or a disk subsystem then you should consider
mirroring.
Impossible – well it was on older AIX versions on newer version sit is possible you will have to check
then deactivate it
then remove it
If you can’t remove it set to be offline at next reboot … wait till you can reboot.
Its possible to install AIX onto another disk on the same system. This is not partitioning, its just a
You need to have “bos.alt_disk_install.rte” fileset installed. This fileset ships the “alt_disk_install”
command,
which allows cloning of the rootvg and installing an AIX mksysb to an alternate disk.
“bos.alt_disk_install.boot_images” fileset installed. This fileset shipts the boot images, which is
Once you have installed these filesets, the alternate disk installation functions are available to you.
You can use the “smitty alt_install” or “smitty alt_clone” or “smitty alt_mksysb” fastpath:
# smitty alt_install
———————————————–
———————————————–
So, the Alternate Disk Installation can be used in one of two ways:
# smitty alt_mksysb
———————————————–
image.data file []
Customization script []
Verbose output? no
Debug output? no
resolv.conv file []
———————————————–
You can also use the “alt_disk_install” command to clone the rootvg to another disk.
The command creates an “altinst_rootvg” volumegroup on the destination disk and prepares
the same logical volumes as in the rootvg, except the names are prepended with “alt_”,
After this first fase, a second fase begins where an optional configuration action
can be performed, either a custom script or update of software, when cloning rootvg.
The third fase unmounts the /alt_inst/filesystems and renames the filesystems and logical volumes
by removing the alt names. Then the bootlist is altered to boot from the new disk.
Example:
# lspv
performs cloning hdisk0 to hdisk1 where hdisk1 will be the new rootvg.
———————————————————–
You can use the alt_disk_install command to clone a system image to another disk, and you may use
the -O option to remove references in the object data manager (ODM) and device (/dev) entries
to the existing system. The -O flag tells the alt_disk_install command to call the devreset command,
which resets the device database. The cloned disk can now be booted as if it were a new system.
Boot the managed system as a Full System Partition so you have access to all the disks in the
managed system.
Run the alt_disk_install command to begin cloning the rootvg on hdisk0 to hdisk1, as follows:
# /usr/sbin/alt_disk_install -O -B -C hdisk1
Rename the cloned disk (hdisk1) to alt1, so you can repeat the operation with another disk.
Run the alt_disk_install command again to clone to another disk and rename the cloned disk, as
follows:
# /usr/sbin/alt_disk_install -O -B -C hdisk2
Repeat steps 3 through 5 for all of the disks that you want to clone.
Use the HMC to partition the managed system with the newly cloned disks.
Each partition you create will now have a rootvg with a boot image.
Boot the partition into SMS mode. Use the SMS MultiBoot menu to configure the
first boot device to be the newly installed disk. Exit the SMS menus and boot the system.
1. Define the new client (smitty nim à Nim admin tasks à manage machines à Define a machine
3. F3 to go back on menu.
4. Select Manage Network Install Resource Allocation à Allocate resources à select the new client à
5. After completion, F3 twice to the Manage Machine menu. Select perform operations on machines
1. Boot the client partition into SMS mode from WebSM/ HMC,
3. Select 2) Remote IPL Settings –>Select the Ethernet adapter–>Select IP Parameters–> Verify
Adapter Settings
4. Under adapter in the virtual world, there is not much we can do. With a real adapter, set the
9. >>>Select the virtual Ethernet adapter –> normal boot–>seletc 1 for sure
12. Always check the setting, select #2 –>change/show installation settings and install–> Check the
14. Done!!
VIOS build
February 3, 2009 — unixskylab
3) Select boot options –> Install –>IDE (built in dvd) –>Select the device –> Normal boot
Change password
6) The first time in, accept the license with “license –accept”
–> Select both physical network cards –> Enter on the SMIT Screen
As padmin
This creates shared device ent3. Configure TCP/IP on the shared interface
netmask 255.255.255.128
15) Reboot
At this point you sre ready to create LVs for the rootvgs for the LPARs.
Powerpath and AIX
January 29, 2009 — unixskylab
INSTALLATION:
Prereq Files:
EMCpower.base 3.0.0.0
EMCpower.multi_path_clariio 3.0.0.0
EMCpower.multi_path 3.0.0.0
EMCpower.consistency_grp 3.0.0.0
Register PowerPath on the host: emcpreg -install (Enter the 12-character license key)
Commands:
# emc_cfgmgr
# powermt config
# powermt display
# powermt restore
# powermt check
How to uninstall -
Varyoff volumegroups that contains hdiskpower device (or) remove hdiskpower devices from the
volumegroups
Uninstall powerpath filesets using or use SMIT
# installp –u EMCpower
To remove powerpath from the system entirely, remove the file “/etc/emcp_registration”
#!/usr/bin/expect -f
set timeout -1
match_max 100000
expect “*?assword:*”
send — “<password>\r”
send — “\r”
expect eof
This script can be a cron schedule. For security reasons, I would still prefer to exchange public
private keys to schedule rsync but for some reasons (as in my case remote host was behind DMZ and
could see only gateway IPs as an IP of my local machine). We can always revoke permissions to this
script as 600 to not to show pwd to others. I’ll post “how to” generate (key-gen) and exchange public/
ftp ftp.software.ibm.com
cd /aix/freeSoftware/aixtoolbox/RPMS/ppc/tcltk
bin
prompt
Allowing the root user to login directly is a major security issue, we'll show you how to disable it so you can still login as root
but just not directly, reducing the security issue.
This will force a hacker to have to guess 2 seperate passwords to gain root access.
(you do have 2 seperate passwords for admin and root right?)
What happens is you'll first need to login as your admin user in SSH, then switch to the super user with the su command to
get root.
We also will be forcing the use of SSH protocol 2, which is a newer, more secure SSH protocol
Just a couple more ways to help your server stay safe from the bad guys. If you're using cPanel make sure you add your
admin user to the 'wheel' group so that you will be able to 'su -' to root, otherwise you may lock yourself out of root.
2. Copy and paste this line to edit the file for SSH logins
pico -w /etc/ssh/sshd_config
Now, no one will be able to login to root with out first loggin in as admin and 'su -' to root, and you will be forcing the use of a
more secure protocol. Just make sure you remember both passwords!