Monday, 10 March 2014

Virtual DVD - Complete Steps



1) Convert the mksysb image to a bootable dvd using mkdvd command
2) Create a virtual media repository in VIO server
3) Copy/SCP/FTP the dvd file to vio server and add the dvd image into the repository
4) Create a Virtual DVD and load the images
5) Assign that optical device to the new LPAR
6) Make the optical device as first boot
7) Start OS install 


From any LPAR,... (having mksysb)... make sure / FS (root FS) has atleast 1.5 times the size of mksysb

Server1:/root # cd /prod
Server1:/prod # ls -l
total 10886912
drwxr-xr-x    2 root     system          256 Dec 20 06:52 lost+found
-rw-r--r--    1 root     system   5574092800 Jan 17 03:42 Server1.mksysb




 # mkdvd -S -m Server1.mksysb
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...


# tail -f /var/adm/ras/mkcd.log
##################################################
Tue Jan 17 03:43:53 MST 2012
cmd: mkdvd -S -m Server1.mksysb
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...
Populating the CD or DVD file system...



Server1:/prod # df -g|grep mkcd
/dev/lv00          4.19      3.87    8%     3422     1% /mkcd/cd_fs



Server1:/prod # cd /mkcd/cd_images/
Server1:/mkcd/cd_images # ls -l
total 8304392
-rw-r--r--    1 root     sys      4251783168 Jan 17 03:53 cd_image_9764974.vol1
drwxrwx---    2 root     system          512 Jan 17 03:52 lost+found


Server1:/mkcd/cd_images # tail -f /var/adm/ras/mkcd.log
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Populating the CD or DVD file system...
Building chrp boot image...
Copying backup to the CD or DVD file system...
Creating temporary file system: /mkcd/cd_images...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_9764974.vol1
Making the CD or DVD image bootable...
Copying the remainder of the backup to the CD or DVD file system...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_9764974.vol2




Server1:/mkcd/cd_images # ls -l
total 11045640
-rw-r--r--    1 root     sys      4274950144 Jan 17 03:54 cd_image_9764974.vol1
-rw-r--r--    1 root     sys      1380251648 Jan 17 03:54 cd_image_9764974.vol2
drwxrwx---    2 root     system          512 Jan 17 03:52 lost+found



Note : Images Splitted into 2 DVD's



VIO part:
=========

$ lsrep
The DVD repository has not been created yet.


$ lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00c1cbb400004c000000011ffbadf9de
VG STATE:           active                   PP SIZE:        256 megabyte
VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:            256                      FREE PPs:       866 (221696 megabytes)

we will use rootvg to create the repository, as it has lot of space


$ /usr/sbin/mklv -y'aixdvd' -t'jfs2' rootvg 24 

first we need to create LV in whichever vg


$ lsvg -lv rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     2       4       2    open/syncd    N/A
paging00            paging     4       8       2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       2       4       2    open/syncd    /
hd2                 jfs2       27      54      2    open/syncd    /usr
hd9var              jfs2       3       6       2    open/syncd    /var
hd3                 jfs2       16      32      2    open/syncd    /tmp
hd1                 jfs2       40      80      2    open/syncd    /home
hd10opt             jfs2       11      22      2    open/syncd    /opt
hd11admin           jfs2       1       2       2    open/syncd    /admin
livedump            jfs2       1       2       2    open/syncd    /var/adm/ras/livedump
lg_dumplv           sysdump    4       4       1    open/syncd    N/A
aixdumpsec          sysdump    4       4       1    open/syncd    N/A
aixdvd              jfs2       24      24      1    closed/syncd  N/A




$ mkrep -sp rootvg -size 6G  (creating repository @ 6GB)
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume


$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
    6118     6118 rootvg                   279552           209408



a new FS is created   /var/vio/VMLibrary

$ df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           0.50      0.25   50%     6829    10% /
/dev/hd2           6.75      2.10   69%   114592    19% /usr
/dev/hd9var        0.75      0.36   52%    11434    12% /var
/dev/hd3           4.00      3.83    5%      406     1% /tmp
/dev/hd1          10.00      7.14   29%     1489     1% /home
/dev/hd11admin      0.25      0.25    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       2.75      1.66   40%    10320     3% /opt
/dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump
/dev/VMLibrary      6.00      5.98    1%        4     1% /var/vio/VMLibrary



Now, ftp the 2 dvd files from Server1 server to VIO server under this FS /var/vio/VMLibrary

or, do oem_setup_env and pull the dvd files from here..

# pwd
/var/vio/VMLibrary
# scp -p Server1:/mkcd/cd_images/cd_image*.* .


# pwd
/var/vio/VMLibrary
# ls -l
total 11045328
-rw-r--r--    1 root     staff    4274950144 Jan 17 02:54 cd_image_9764974.vol1
-rw-r--r--    1 root     staff    1380251648 Jan 17 02:54 cd_image_9764974.vol2
drwxr-xr-x    2 root     system          256 Jan 17 03:14 lost+found



$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
   16317    10923 rootvg                   279552           199168

Name                                    File Size Optical         Access
cd_image_9764974.vol1                        4077 None            rw
cd_image_9764974.vol2                        1317 None            rw



$ mkvdev -fbo -vadapter vhost1
vtopt0 Available



SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1          U9119.FHA.021CBB4-V2-C65                     0x00000000 

VTD                   vtopt0
Status                Available
LUN                   0x8100000000000000
Backing device
Physloc
Mirrored              N/A





Loading the image to vtopt0

$ loadopt -disk cd_image_9764974.vol1 -vtd vtopt0   (Only one image we have to load.. we cannot load 2 images in DVD, 2nd image will be loaded during the time of installation)





SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1          U9119.FHA.021CBB4-V2-C65                     0x00000000

VTD                   vtopt0
Status                Available
LUN                   0x8100000000000000
Backing device        /var/vio/VMLibrary/cd_image_9764974.vol1
Physloc
Mirrored              N/A



change to oem_setup_env, to create LV and assign to the new client LPAR

smitty mklv... lvname and give LP count..

# lsvg -l rootvg_clients | grep vq
Client1_lv         jfs        270     270     1    closed/syncd  N/A


$ mkvdev -vdev Client1_lv -vadapter vhost1 -dev Client1_root
Client1_root Available





nimserver1:/root # ssh hscroot@hmc1
Last login: Tue Jan 17 05:06:00 2012 from cosnim1.cos.agilent.com
hscroot@hmc1:~>
hscroot@hmc1:~>
hscroot@hmc1:~> chsysstate -r lpar -m  P59XXD1_SNXXXXB4  -n Client1  -o on -f Client1_normal -b sms  (take one more session, run vtmenu and login to new lpar to see the SMS menu screen)



 

IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM

          1 = SMS Menu                          5 = Default Boot List
          8 = Open Firmware Prompt              6 = Stored Boot List


     Memory      Keyboard     Network     SCSI     Speaker

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Main Menu
 1.   Select Language
 2.   Setup Remote IPL (Initial Program Load)
 3.   Change SCSI Settings
 4.   Select Console
 5.   Select Boot Options





 -------------------------------------------------------------------------------
 Navigation Keys:

                                             X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:5

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Multiboot
 1.   Select Install/Boot Device
 2.   Configure Boot Device Order
 3.   Multiboot Startup <OFF>











 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1









                              .------------------.
                              |  PLEASE WAIT.... |
                              `------------------'




 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Select Device Type
 1.   Diskette
 2.   Tape
 3.   CD/DVD
 4.   IDE
 5.   Hard Drive
 6.   Network
 7.   List all Devices







 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:3

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Select Media Type
 1.   SCSI
 2.   SSA
 3.   SAN
 4.   SAS
 5.   SATA
 6.   USB
 7.   IDE
 8.   ISA
 9.   List All Devices





 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Select Media Adapter
 1.          U9119.FHA.021CBB4-V12-C6-T1   /vdevice/v-scsi@30000006
 2.   List all devices





 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1



                              .------------------.
                              |  PLEASE WAIT.... |
                              `------------------'







 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Select Device
 Device  Current  Device
 Number  Position  Name
 1.        1      SCSI CD-ROM
        ( loc=U9119.FHA.021CBB4-V12-C6-T1-L8100000000000000 )





 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Select Task

SCSI CD-ROM
    ( loc=U9119.FHA.021CBB4-V12-C6-T1-L8100000000000000 )

 1.   Information
 2.   Normal Mode Boot
 3.   Service Mode Boot





 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:2

 PowerPC Firmware
 Version EH350_108
 SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
 Are you sure you want to exit System Management Services?
 1.   Yes
 2.   No






 -------------------------------------------------------------------------------
 Navigation Keys:

                                             X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM                             IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM     STARTING SOFTWARE       IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM        PLEASE WAIT...       IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM                             IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
|
Elapsed time since release of system processors: 42909 mins 55 secs
|
Elapsed time since release of system processors: 42910 mins 4 secs







-------------------------------------------------------------------------------
                                Welcome to AIX.
                   boot image timestamp: 10:50:46 01/17/2012
                 The current time and date: 11:58:16 01/17/2012
       processor count: 2;  memory size: 16384MB;  kernel size: 28148491
boot device: /vdevice/v-scsi@30000006/disk@8100000000000000:\ppc\chrp\bootfile.exe
-------------------------------------------------------------------------------


 ******* Please define the System Console. *******

Type a 1 and press Enter to use this terminal as the
  system console.
Pour definir ce terminal comme console systeme, appuyez
  sur 1 puis sur Entree.
Taste 1 und anschliessend die Eingabetaste druecken, um
  diese Datenstation als Systemkonsole zu verwenden.
Premere il tasto 1 ed Invio per usare questo terminal
  come console.
Escriba 1 y pulse Intro para utilizar esta terminal como
  consola del sistema.
Escriviu 1 1 i premeu Intro per utilitzar aquest
  terminal com a consola del sistema.
Digite um 1 e pressione Enter para utilizar este terminal
  como console do sistema.





 HARDWARE SYSTEM MICROCODE
 Licensed Internal Code - Property of IBM
 (C) Copyright IBM Corp. 1990, 1994.
 All rights reserved.

 US Government Users Restricted Rights -
 Use, duplication or disclosure restricted
 by GSA ADP Schedule Contract with IBM Corp.


>>>  1 Type 1 and press Enter to have English during install.




    88  Help ?


>>> Choice [1]:


Installation will Start...., After 46% of installation it will ask for 2nd DVD.... Since we have 2 images..

 Like >    Please remove volume 1, insert volume 2, and press the ENTER key.




Go to VIO server:
============


$ unloadopt -vtd vtopt0

$ loadopt -disk cd_image_9764974.vol2 -vtd vtopt0

After loading, Check the same in lsmap output.. 


Go back to Installation screen and hit Enter..


After installtion gets completed, server will be rebooted automatically by setting hdisk as first boot device...

you can login as your id... or if you know the root passwd for the mksysb.

If  root passwd is not available, unload the second DVD and put the first DVD.... then go to maintancence mode and reset the passwd.



$ unloadopt -vtd vtopt0

$ loadopt -disk cd_image_9764974.vol1 -vtd vtopt0


Go to HMC session... as hscroot

$ chsysstate -r lpar -m P59XXD1_SNXXXXB4  -n Client1  -o on -f Client1_normal -b sms

Change the boot order.... set the CD as 1st boot device and continue with installation.. choose 3 for "system maintanence and recovery"

There you can reset the root passwd.









 

Use low level command "dd" to Create File of any Size



Use the DD command to create a 10 MB (10*1024*1024=10485760 bytes) size file named testfile_10MB


dd if=/dev/zero of=testfile_10MB bs=10485760 count=1

To receive "app" available physical processors column in lparstat output:





To receive the 'app' (available physical processors) column in 
lparstat output, on the HMC: 

  - Right click on the partition 

    - Select 'Properties' 

      - Go to the 'Hardware' tab 

        - Go to the 'Processors and Memory' tab 

Enable "Allow performance information collection"

To list the filesets inside .bff


IBM filesets are typically in the .bff format, which can be downloaded from IBM Fix Central.
To check which filesets are included in a specific .bff package, use the following command:

 # bffcreate -ld U829647.bff
   Package Name                   Level                     I/U Content
------------------------------------------------------------------------------
   perl.libext                    2.2.6.0                    U  usr


I --> Installable Fileset (base package will be included)
U -> upgrade filesets

How To identify the Stale PP numbers


The lslv -p command displays how a Logical Volume (LV) — in this case oraclelv — is physically allocated across a given Physical Volume (PV), here hdisk0.

So it shows which physical partitions (PPs) on the disk are used or free for that LV.

lslv -p <PhysicalVolume> <LogicalVolume>
PhysicalVolume (hdisk0) → the actual disk device.
LogicalVolume (oraclelv) → the logical volume you want to inspect.

FieldMeaning
USEDPartition currently used by the logical volume (contains data).
FREEPartition available for use (not yet allocated).
Numbers (0001, 0002, etc.)These show Logical Partitions (LPs) within the logical volume — the mapping between physical and logical partitions.
Range (e.g., 1–10, 219–228)Shows the PP numbers on the disk (each disk is divided into a number of PPs).
lslv -p hdisk0 oraclelv
hdisk0:oraclelv:/oraclelv
USED   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE       1-10
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      11-20
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      21-30
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      31-40
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      41-50
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      51-60
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      61-70
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      71-80
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      81-90
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE      91-100
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     101-110
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     111-120
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     121-130
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     131-140
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     141-150
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     151-160
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     161-170
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     171-180
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     181-190
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     191-200
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     201-210
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE                   211-218

USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     219-228
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     229-238
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     239-248
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     249-258
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     259-268
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     269-278
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     279-288
USED   0001   0002   0003   0004   0005   FREE   FREE   FREE   FREE     289-298
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     299-308
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     309-318
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     319-328
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     329-338
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     339-348
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     349-358
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE     359-368
FREE   FREE   FREE   FREE   FREE   FREE   FREE   FREE   USED   USED     369-378
STAL   STAL   STAL   USED   USED   USED   USED   USED   USED   USED     379-388
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     389-398
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     399-408
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     409-418
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     419-428
USED   USED   USED   USED   USED   USED   USED                          429-435

USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     436-445
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     446-455
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     456-465
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     466-475
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     476-485
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     486-495
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     496-505
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     506-515
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     516-525
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     526-535
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     536-545
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     546-555
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     556-565
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     566-575
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     576-585
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     586-595
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     596-605
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     606-615
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     616-625
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     626-635
USED   USED   USED   USED   USED   USED   USED   USED   USED   USED     636-645
USED   USED   USED   USED   USED   USED   USED                          646-652


To find the total file size of all mksysb file alone in a particular Directory


server2:/nim/mksysb # du -sg * |grep mksysb
4.31    servermksysb1
3.66    servermksysb2
4.25    servermksysb3
3.07    servermksysb4
3.46    servermksysb5
4.51    servermksysb6
3.03    servermksysb7
2.88    servermksysb8
3.14    servermksysb9
2.76    servermksysb10
3.45    servermksysb11
2.63    servermksysb12
3.83    servermksysb13
7.47    servermksysb14
4.83    servermksysb15
4.78    servermksysb16
7.33    servermksysb17
4.26    servermksysb18
3.15    servermksysb19
8.35    servermksysb20
7.44    servermksysb21
1.27    servermksysb22


server2:/nim/mksysb # du -sg * |grep mksysb | awk '{print $1}'
4.31
3.66
4.25
3.07
3.46
4.51
3.03
2.88
3.14
2.76
3.45
2.63
3.83
7.47
4.83
4.78
7.33
4.26
3.15
8.35
7.44
1.27




server2:/nim/mksysb # du -sg * |grep mksysb | awk '{print $1}'| awk '{total=total+$1}END{print total}'
93.86



93.86 is the total file size of all mksysb files...

To find the server reboot time, from HMC event log....




hscroot@hmc2:~> date
Mon Mar 26 04:09:01 PDT 2012


hscroot@hmc2:~> lssvcevents -t console|grep -i imme

time=03/26/2012 04:05:56,text=HSCE2121 User name hscroot: Immediate shut down executed successfully on partition SERVER1 with ID 14 on the managed system 8233-XXXX*XXXBA8P.


time=03/26/2012 03:39:49,text=HSCE2123 User name hscroot: chsysstate -r lpar -m Server-8233-XXX-SNXXXBA8P -n SERVER1 -o shutdown --immed command was executed successfully.


Note:
1)    03/26/2012 03:39:49  rebooted via HMC command
2)    03/26/2012 04:05:56  rebooted via HMC GUI

To check the last login time, using perl

 # lsuser sankar
sankar id=40753 pgrp=itc groups=itc,staff home=/home/sankarar shell=/usr/bin/ksh gecos=SANKAR , login=true su=true rlogin=true daemon=true admin=false sugroups=ALL admgroups= tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 registry=files SYSTEM=compat logintimes= loginretries=0 pwdwarntime=0 account_locked=false minage=0 maxage=26 maxexpired=2 minalpha=2 minother=1 mindiff=4 maxrepeats=2 minlen=8 histexpire=0 histsize=0 pwdchecks= dictionlist=/etc/security/aixpert/dictionary/English default_roles= fsize=-1 cpu=-1 data=262144 stack=65536 core=2097151 rss=65536 nofiles=2000 time_last_login=1332327025 time_last_unsuccessful_login=1329801313 tty_last_login=/dev/pts/0 tty_last_unsuccessful_login=ssh host_last_login=198.200.189.87 host_last_unsuccessful_login=18.213.208.27 unsuccessful_login_count=0 roles=



 time_last_login=1332327025


server1:/root #  perl -le 'print scalar localtime 1332327025'
Wed Mar 21 03:50:25 2012


Note:
You can verify the same timestamp using the last | grep sankar command.
However, if the user hasn’t logged into the server for several years, the last command might not display any information — because the login history is retained only for a few months and is rotated periodically.

NFS port ranges



Normally, NFS ports in AIX are assigned dynamically.
If you want to define a specific range of ports, you can use the NFS_PORT_RANGE environment variable to restrict the source ports used by the NFS client when connecting to the server.

Add the variable to the /etc/environment file in the following format:


NFS_PORT_RANGE=udp[4000-5000]:tcp[7000-8000]


OR

Server2:/ # nfso -a | grep port
                   portcheck = 0
      nfs_use_reserved_ports = 0


Explanation:

  • When nfs_use_reserved_ports=0 → The AIX server uses non-reserved ports (above 1024) for NFS client communication.

  • When nfs_use_reserved_ports=1 → The AIX server uses reserved ports (below 1024) for NFS client communication.

Oracle memory - Actual usage


Oracle memory actual usage

find oracle instances --> ps -ef | grep ora_smon
svmon -P $( ps -elf | grep ora_smon_ORDID | grep -v grep | awk '{print $4}' |) | grep shmart
check for 6th and 7th field. s means 4KB blocks m=64KB L=16MB blocks
more details @
http://intermediatesql.com/aix/how-oracle-uses-memory-on-aix-part-2-sga/
To find expected usage
to get sysresv output
su - oracle
export ORACLE_SID=<ID got from ps -ef | grep ora_smon>
sysresv
ipcs -ma | grep (oracle shared memory instance ID got from sysresv command in sql prompt)

Wednesday, 26 February 2014

Data transfer speed is slow from server1 to server2

The data transfer between server1 and server2 involves file copying over the network using TCP/IP via Ethernet.
There are no SAN or external storage devices involved in this process, so the storage team’s assistance is limited.

To improve transfer speed, consider using the backup LAN, provided both systems are on the same VLAN — this can significantly enhance throughput.
Use the hostnames server1b and server2b for data transfer, where “b” refers to the backup LAN interface.

Alternatively, you can mount the file system of server1 as read-only on server2 over the backup LAN (depending on accessibility) and then start copying the data directly.

Script - xargs for changing Filesystem to auto mount



[server12@AIX]>lsvg | grep oraclet
oracletarchvg
oracletvg
oraclet_data1



[server12@AIX]>lsvg | grep oraclet | lsvg -li
oracletarchvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
oracle1archlv01     jfs2       158     158     1    closed/syncd  /var/opt/oracle/archv01/oracle
oracletvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
oraclelv01      jfs2       12      12      6    closed/syncd  /var/opt/oracle/01/oracle
oraclelv02      jfs2       12      12      6    closed/syncd  /var/opt/oracle/02/oracle
oraclelv03      jfs2       12      12      6    closed/syncd  /var/opt/oracle/03/oracle
oraclelv04      jfs2       12      12      6    closed/syncd  /var/opt/oracle/04/oracle
oraclelv05      jfs2       12      12      6    closed/syncd  /var/opt/oracle/05/oracle
oraclelv06      jfs2       12      12      6    closed/syncd  /var/opt/oracle/06/oracle
oraclet_data1:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
ora1datalv01      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data001/oracle
ora1datalv02      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data002/oracle
ora1datalv03      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data003/oracle
ora1datalv04      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data004/oracle





[server12@AIX]>lsvg | grep oraclet | lsvg -li | grep oracle
oracle1archlv01     jfs2       158     158     1    closed/syncd  /var/opt/oracle/archv01/oracle
oraclelv01      jfs2       12      12      6    closed/syncd  /var/opt/oracle/01/oracle
oraclelv02      jfs2       12      12      6    closed/syncd  /var/opt/oracle/02/oracle
oraclelv03      jfs2       12      12      6    closed/syncd  /var/opt/oracle/03/oracle
oraclelv04      jfs2       12      12      6    closed/syncd  /var/opt/oracle/04/oracle
oraclelv05      jfs2       12      12      6    closed/syncd  /var/opt/oracle/05/oracle
oraclelv06      jfs2       12      12      6    closed/syncd  /var/opt/oracle/06/oracle
ora1datalv01      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data001/oracle
ora1datalv02      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data002/oracle
ora1datalv03      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data003/oracle
ora1datalv04      jfs2       314     314     1    closed/syncd  /var/opt/oracle/data004/oracle






[server12@AIX]>lsvg | grep oraclet | lsvg -li | grep oracle | awk '{print $7}'
/var/opt/oracle/archv01/oracle
/var/opt/oracle/01/oracle
/var/opt/oracle/02/oracle
/var/opt/oracle/03/oracle
/var/opt/oracle/04/oracle
/var/opt/oracle/05/oracle
/var/opt/oracle/06/oracle
/var/opt/oracle/data001/oracle
/var/opt/oracle/data002/oracle
/var/opt/oracle/data003/oracle
/var/opt/oracle/data004/oracle




[server12@AIX]>lsvg | grep oraclet | lsvg -li | grep oracle | awk '{print $7}'| xargs -n1 chfs -A yes


[server12@AIX]>lsvg | grep oraclet | lsvg -li | grep oracle | awk '{print $7}'| xargs -n1 mount


[server12@AIX]>lsvg | grep oraclet | lsvg -li | grep oracle | awk '{print $7}'| xargs -n1 lsfs | grep -v Name
/dev/oracle1archlv01 --         /var/opt/oracle/archv01/oracle jfs2  41418752 rw         yes  no
/dev/oraclelv01 --         /var/opt/oracle/01/oracle jfs2  3145728 rw         yes  no
/dev/oraclelv02 --         /var/opt/oracle/02/oracle jfs2  3145728 rw         yes  no
/dev/oraclelv03 --         /var/opt/oracle/03/oracle jfs2  3145728 rw         yes  no
/dev/oraclelv04 --         /var/opt/oracle/04/oracle jfs2  3145728 rw         yes  no
/dev/oraclelv05 --         /var/opt/oracle/05/oracle jfs2  3145728 rw         yes  no
/dev/oraclelv06 --         /var/opt/oracle/06/oracle jfs2  3145728 rw         yes  no
/dev/ora1datalv01 --         /var/opt/oracle/data001/oracle jfs2  82313216 rw         yes  no
/dev/ora1datalv02 --         /var/opt/oracle/data002/oracle jfs2  82313216 rw         yes  no
/dev/ora1datalv03 --         /var/opt/oracle/data003/oracle jfs2  82313216 rw         yes  no
/dev/ora1datalv04 --         /var/opt/oracle/data004/oracle jfs2  82313216 rw         yes  no
 

Script to see the LV distribution in mirrored VG




for i in `lsvg -l sapvg|tail +3|awk '{print $1}'`
> do
> echo $i
> echo "_______________"
> lslv -l $i
> echo "_______________"
> done

script to get the VG size of all vgs in a server




#!/bin/ksh

for vgname in $(lsvg -o)
do

        echo "$vgname \c"
        lsvg $vgname|grep 'TOTAL PPs'| awk '{print $7}'|cut -c2-
done

Script - for loop to find the disk size

Mention the hdisk names in a file -> disks


 for i in `cat disks`
> do
> echo $i "     "       $(bootinfo -s $i)
> done
hdisk0   70784
hdisk1   34560
hdisk2   34560
hdisk3   70784
hdisk4   70784
hdisk5   34560
hdisk6   34560
hdisk7   70784
hdisk8   34560

script - for loop to take all disk attributes



 for i in `lspv | awk '{print $1}'` 
> do 
> echo $i ; lsattr -El $i ;echo ===========================>> /tmp/dista 
> done

script - for loop script to set the PVID for all hdisks

Mention all the hdisk names in a file ---> disks


for i in `cat disks`
do
chdev -l $i -a pv=yes
done

Script - for loop to grep WWPN number





# for i in `lsdev -C |grep -i fcs| awk '{print $1}'`
> do
> echo $i ; lscfg -vpl $i |grep -i network
> echo =======================================================
> done



fcs0
        Network Address.............10000000C9C0F3C8
======================================
fcs1
        Network Address.............10000000C9C0F3C9
======================================
fcs2
        Network Address.............10000000C993690E
======================================
fcs3
        Network Address.............10000000C993690F
======================================
fcs4
        Network Address.............10000000C995E090
======================================
fcs5
        Network Address.............10000000C995E091
======================================
fcs6
        Network Address.............10000000C995DC9A
======================================
fcs7
        Network Address.............10000000C995DC9B
======================================

Script - for loop to change MPIO settings



Note all the disk names are in a file

# cat disks
hdisk90 
hdisk91 
hdisk92 
hdisk93 
hdisk94 
hdisk95 
hdisk96 
hdisk97 
hdisk89 


for i in `cat disks`
> do
> chdev -l $i -a algorithm=round_robin -a reserve_policy=no_reserve -a queue_depth=32 -a rw_timeout=180
> done
hdisk90 changed
hdisk91 changed
hdisk92 changed
hdisk93 changed
hdisk94 changed
hdisk95 changed
hdisk96 changed
hdisk97 changed
hdisk89 changed

rsync

Just an example: from server1 to server2


rsync -avz -e ssh root@server2:/opt/softwaredepot/* /opt/softwaredepot_new/

need to run this from server1. We are pulling from server2

Before that, we need to set ssh keyless access from server1 to server2


===========================


If you have ssh in place for root..from server3 to server4

So from server3 (push method)

rsync -avz /xxxxxxxx/yyyyyyy/* root@server4:/xxxxxxxx/yyyyyyy/

Procedure to clean up the HMC filesystems



As a hscroot check the filesystem use

monhmc -r disk -n 0
  
 - Free up space in /var
  
 chhmcfs -o f -d 0
  
  
 - As hscpe, login to HMC and use pesh to exit restricted shell then su  to root
  
 - As root run following commands
  
 cd /opt/ccfw/data/vr
 
 chsvcevent -o closeall
  
 rm -rf [123456789]*
  
 reboot

Prework before Physical processor book - Memory DIMM addition

  1. Add the physical CPU processor book to the frame.

  2. Add the memory DIMMs to the frame.

  3. Add the I/O cards as required.

Before performing these hardware additions, make sure to capture screenshots of the frame properties, specifically the Memory, Processor, and I/O tabs.
These screenshots will help record the Installed / Available / Configured / Deconfigured values.

Once the new CPU and memory modules are added, the frame will display only the updated values, and the previous configuration details will no longer be visible — hence, it’s important to capture this information in advance.

Alternatively, you can run the following command on any LPAR to capture the hardware details of the entire frame:

# lscfg -vp

As a standard practice, also run the prework.sh script on all LPARs before shutting down the frame.

Portmir

portmir (short for Port Mirror) is an AIX utility that allows you to monitor, share, or take over another user’s terminal session on the same system.

The tty command shows which terminal (pseudo-terminal or TTY device) you are currently connected to.
Here, your terminal is /dev/pts/8.

# tty
/dev/pts/8

You can use the who command to see all users currently logged into the server along with their terminal numbers.
For instance, if the oracle user is connected through pts/9, you can monitor their terminal session remotely using:

# portmir -t /dev/pts/9


To disconnect the session
# portmir -o /dev/pts/9

Save your file with passwd protected.

server1:/tmp # touch testenc


server1:/tmp # echo "hi I am a line" > testenc


server1:/tmp # cat testenc
hi I am a line


server1:/tmp # openssl bf -salt -in ./testenc > ./testenc1
enter bf-cbc encryption password:
Verifying - enter bf-cbc encryption password:


server1:/tmp # cat testenc1
Salted__°îøÐýÉÉQÝly¶ïÑ^±oþjõserver1:/tmp #



server1:/tmp # openssl bf -d -in ./testenc1 >./testenc
enter bf-cbc decryption password:


server1:/tmp # cat testenc
hi I am a line

Paging utilization - Tricks

If the paging space utilization remains consistently high (for example, above normal levels) for more than 3 days, you can use the following method to reduce it.

Check Current Paging Utilization
server1:/root # lsps -s
Total Paging Space   Percent Used
      21312MB               28%

Reduce Paging Utilization
Run the following command to decrease the paging space by 1 physical partition (PP):
server1:/root # chps -d 1 paging00

This command will:

  • Create a temporary paging space (paging01)

  • Move data or reduce usage from the existing paging space

  • Recreate the original paging space (paging00) with a smaller size

⚠️ Important:
This process temporarily doubles the required paging space (≈28% × 2).
If there isn’t enough free disk space to accommodate this, do not run the command.

🔹 Explanation

By reducing 1 PP:

  • A temporary paging space is created

  • Data is moved or swapped

  • Utilization drops to around 1–2%

After utilization decreases, you can add the partition back:
server1:/root # chps -s 1 paging00

Then verify again:

server1:/root # lsps -s Total Paging Space Percent Used 21376MB 1%

⚠️ Note

Never attempt this method if your paging space usage exceeds 50%, as it may cause system instability or paging failures.

Paging and Sysdump - Redundancy checks

server1:/root # for i in `lsdev -Cs vscsi | awk '{print $1}'`
> do
> lscfg -vl $i
> done
  hdisk0           U9119.FHA.021CBF4-V11-C4-T1-L8100000000000000  Virtual SCSI Disk Drive
  hdisk1           U9119.FHA.021CBF4-V11-C4-T1-L8200000000000000  Virtual SCSI Disk Drive
  hdisk2           U9119.FHA.021CBF4-V11-C5-T1-L8100000000000000  Virtual SCSI Disk Drive
  hdisk3           U9119.FHA.021CBF4-V11-C5-T1-L8200000000000000  Virtual SCSI Disk Drive
  hdisk35          U9119.FHA.021CBF4-V11-C5-T1-L8300000000000000  Virtual SCSI Disk Drive


hdisk0, hdisk1 is coming from one VIO > V11-C4
hdisk2, hdisk3, hdisk35 is coming from another VIO > V11-C5



server1:/root # lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            527         71          00..00..00..00..71
hdisk1            active            63          0           00..00..00..00..00
hdisk2            active            527         71          09..03..00..00..59
hdisk3            active            63          0           00..00..00..00..00


server1:/root # lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active Auto  Type Chksum
paging00        hdisk1            rootvg        4032MB     1   yes   yes    lv     0
hd6             hdisk0            rootvg        4032MB     1   yes   yes    lv     0


Need to make sure, paging00 disk is mirrored and the mirrored disk should come from another VIO.

server1:/root # lslv -m paging00
paging00:N/A
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0001 hdisk1            0001 hdisk3
0002  0002 hdisk1            0002 hdisk3
0003  0003 hdisk1            0003 hdisk3
0004  0004 hdisk1            0004 hdisk3
0005  0005 hdisk1            0005 hdisk3
0006  0006 hdisk1            0006 hdisk3
0007  0007 hdisk1            0007 hdisk3
0008  0008 hdisk1            0008 hdisk3
0009  0009 hdisk1            0009 hdisk3
0010  0010 hdisk1            0010 hdisk3
0011  0011 hdisk1            0011 hdisk3
0012  0012 hdisk1            0012 hdisk3
0013  0013 hdisk1            0013 hdisk3

So, paging has redundancy.


Next is sysdump...
==========

server1:/root # sysdumpdev -e
Estimated dump size in bytes: 983564288  > that is 0.9GB



server1:/root # sysdumpdev -l
primary              /dev/aixdump
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional


server1:/root # lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     63      126     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       8       16      2    open/syncd    /
hd2                 jfs2       48      96      2    open/syncd    /usr
hd9var              jfs2       32      64      2    open/syncd    /var
hd3                 jfs2       48      96      2    open/syncd    /tmp
hd1                 jfs2       16      32      2    open/syncd    /home
hd10opt             jfs2       48      96      2    open/syncd    /opt
hd11admin           jfs2       2       4       2    open/syncd    /admin
aixdump             sysdump    32      64      2    open/syncd    N/A
livedump            jfs2       4       8       2    open/syncd    /var/adm/ras/livedump
paging00            paging     63      126     2    open/syncd    N/A
fslv00              jfs2       1       2       2    open/syncd    /usr/local
fslv01              jfs2       16      32      2    open/syncd    /usr/sys/inst.images
perflv              jfs2       32      64      2    open/syncd    /var/opt/perf
sarlv               jfs2       48      96      2    open/syncd    /var/adm/sa
openvlv             jfs2       24      48      2    open/syncd    /usr/openv
topaslv             jfs2       16      32      2    open/syncd    /etc/perf





server1:/root # lslv -m aixdump
aixdump:N/A
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0108 hdisk0            0027 hdisk2
0002  0109 hdisk0            0028 hdisk2
0003  0110 hdisk0            0029 hdisk2
0004  0111 hdisk0            0030 hdisk2
0005  0112 hdisk0            0031 hdisk2
0006  0113 hdisk0            0032 hdisk2
0007  0114 hdisk0            0033 hdisk2
0008  0115 hdisk0            0034 hdisk2
0009  0116 hdisk0            0035 hdisk2
0010  0117 hdisk0            0036 hdisk2

aixdump LV is mirrored here....... sysdump shouldnt be mirrored. So, remove the copies and create another LV in hdisk2 and make that LV as secondary dump device.


aixdump2/root # rmlvcopy aixdump 1 hdisk2



server1:/root # lslv -m aixdump
aixdump:N/A
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0108 hdisk0
0002  0109 hdisk0
0003  0110 hdisk0
0004  0111 hdisk0
0005  0112 hdisk0


server1:/root # smitty lv  > to create another LV (aixdump2)

server1:/root # lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     63      126     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       8       16      2    open/syncd    /
hd2                 jfs2       48      96      2    open/syncd    /usr
hd9var              jfs2       32      64      2    open/syncd    /var
hd3                 jfs2       48      96      2    open/syncd    /tmp
hd1                 jfs2       16      32      2    open/syncd    /home
hd10opt             jfs2       48      96      2    open/syncd    /opt
hd11admin           jfs2       2       4       2    open/syncd    /admin
aixdump             sysdump    32      32      1    open/syncd    N/A
livedump            jfs2       4       8       2    open/syncd    /var/adm/ras/livedump
paging00            paging     63      126     2    open/syncd    N/A
fslv00              jfs2       1       2       2    open/syncd    /usr/local
fslv01              jfs2       16      32      2    open/syncd    /usr/sys/inst.images
perflv              jfs2       32      64      2    open/syncd    /var/opt/perf
sarlv               jfs2       48      96      2    open/syncd    /var/adm/sa
openvlv             jfs2       24      48      2    open/syncd    /usr/openv
topaslv             jfs2       16      32      2    open/syncd    /etc/perf
aixdump2            sysdump    32      32      1    closed/syncd  N/A



server1:/root # sysdumpdev -P -s /dev/aixdump2
primary              /dev/aixdump
secondary            /dev/aixdump2
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional