digiturf.net

Creating new LV for “systemdump & making it “primary” when there is no “sysdump” available already on server.


*** /dev/hd6 is the default Paging device in AIX. (Differs based on sys config – http://lparbox.com/how-to/aix/20)
*** Now we will see how to create a new LV and make it “default / primary dumpdevice” in server where there is no “dumpdevice” already existing.

 
# sysdumpdev -l        – shows the existing config of “dumpdevice”.
primary              /dev/hd6
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON

# lsvg -l rootvg           – Here “/dev/hd6” is taken as “paging space” & “sysdump” is not available.
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     1     1    closed/syncd  N/A
hd6                 paging     5     5     1    open/syncd    N/A
hd8                 jfslog     1     1     1    open/syncd    N/A
hd4                 jfs        16    16    1    open/syncd    /
hd2                 jfs        21    21    1    open/syncd    /usr
hd9var              jfs        1     1     1    open/syncd    /var
hd3                 jfs        1     1     1    open/syncd    /tmp
hd1                 jfs        1     1     1    open/syncd    /home
hd10opt             jfs        33    33    1    open/syncd    /opt
paging00            paging     3     3     1    open/syncd    N/A
lv00                jfs        8     8     1    open/syncd    /usr/local

# lsvg rootvg            – As we’ve free PP’s we can create a new LV.
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00584c4e00004c00000001149388259d
VG STATE:           active                  PP SIZE:        64 megabyte(s)
VG PERMISSION:      read/write    TOTAL PPs:      1084 (69376 megabytes)
MAX LVs:            256                      FREE PPs:       993 (63552 megabytes)
LVs:                11                              USED PPs:       91 (5824 megabytes)
OPEN LVs:           10                       QUORUM:         2
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                       AUTO ON:        yes
MAX PPs per VG:     32512                                    
MAX PPs per PV:     1016               MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                     BB POLICY:      relocatable

# sysdumpdev -e
Estimated dump size in bytes: 39007027

# bc                   –  calculating the estimated dump size shown above in MB’s.
39007027/1024/1024
37

# mklv -t sysdump rootvg 3     – as we’ve not specified LV name, SYS created it as “lv01”.
lv01

# lsvg -l rootvg        – We see “lv01” as “sysdump” here.
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT

hd6                 paging     5     5     1    open/syncd    N/A
hd8                 jfslog     1     1     1    open/syncd    N/A
hd4                 jfs        16    16    1    open/syncd    /
……………………………………………………………………………..
paging00        paging     3     3     1    open/syncd    N/A
lv00                jfs        8     8     1       open/syncd    /usr/local
lv01                sysdump    3     3     1    closed/syncd  N/A

# sysdumpdev -Pp /dev/lv01     – Making “lv01” primary dump device.
primary              /dev/lv01
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON

* Thanks lparbox.com for such nice articles and we give credits to them.

Leave a Reply