# Estimated mksysb size
# df -tk `lsvgfs rootvg` | awk '{total+=$3} END {printf "Estimated mksysb size: %d bytes, %.2f GB\n",total*1024,total/1024/1024}'
# List mksysb Information
# lsmksysb -l -f <mksysb_file_or_device>
VOLUME GROUP: rootvg
BACKUP DATE/TIME: Sat Dec 23 00:56:43 ART 2017
UNAME INFO: AIX SERVER_NAME 1 7 00C94F274C00
BACKUP OSLEVEL: 7.1.4.1
MAINTENANCE LEVEL: 7100-04
SERVICEPACK LEVEL: 7100-04-02-1614
BACKUP SIZE (MB): 25856
SHRINK SIZE (MB): 14510
VG DATA ONLY: no
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 96 96 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 17 17 1 open/syncd /
hd2 jfs2 81 81 1 open/syncd /usr
hd9var jfs2 32 32 1 open/syncd /var
hd3 jfs2 32 32 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 32 32 1 open/syncd /opt
hd11admin jfs2 2 2 1 open/syncd /admin
lg_dumplv sysdump 16 16 1 open/syncd N/A
livedump jfs2 4 4 1 open/syncd /var/adm/ras/livedump
fslv00 jfs2 1 1 1 open/syncd /nrpe
fslv01 jfs2 24 24 1 open/syncd /opt/IBM/ITM
fslv02 jfs2 32 32 1 open/syncd /opt/ctmagt
fslv04 jfs2 16 16 1 open/syncd /opt/BESClient
fslv05 jfs2 16 16 1 open/syncd /var/opt/BESClient
martes, 26 de diciembre de 2017
lunes, 24 de abril de 2017
How to get ITM Client configuration
root@SERVERNAME:/home/root> /opt/IBM/ITM/bin/cinfo -c ux
*********** Mon Apr 24 16:21:15 ART 2017 ******************
User: root Groups: system bin sys security cron audit lp
Host name : <CLIENT_HOSTNAME> Installer Lvl:06.22.02.00
CandleHome: /opt/IBM/ITM
***********************************************************
Configuration Setting
ux default "Network Protocol 3 " = none
ux default "Secondary TEMS IP.PIPE Port Number" = 1918
ux default "Secondary TEMS IP.SPIPE Port Number" = 3660
ux default "Secondary TEMS Log Mode" = LOGMODE
ux default "Secondary TEMS LU Name" = LUNAME
ux default "Secondary TEMS Net Name" = CANDLE
ux default "Secondary TEMS IP Port Number" = 1918
ux default "IP.PIPE Port Number" = 1918
ux default "IP.SPIPE Port Number" = 3660
ux default "Log Mode" = LOGMODE
ux default "LU Name" = LUNAME
ux default "Net Name" = CANDLE
ux default "IP Port Number" = 1918
ux aix526 "Network Protocol 3 " = none
ux aix526 "Will this agent connect to a TEMS? [1=YES, 2=NO]" = 1
ux aix526 "TEMS Host Name" = <ITM_SERVER_FQDN>
ux aix526 "Secondary TEMS IP.PIPE Port Number" = 1918
ux aix526 "Secondary TEMS IP.SPIPE Port Number" = 3660
ux aix526 "Secondary TEMS Log Mode" = LOGMODE
ux aix526 "Secondary TEMS LU Name" = LUNAME
ux aix526 "Secondary TEMS Net Name" = CANDLE
ux aix526 "Secondary TEMS IP Port Number" = 1918
ux aix526 "IP.PIPE Port Number" = 1918
ux aix526 "IP.SPIPE Port Number" = 3660
ux aix526 "Log Mode" = LOGMODE
ux aix526 "LU Name" = LUNAME
ux aix526 "Net Name" = CANDLE
ux aix526 "IP Port Number" = 1918
*********** Mon Apr 24 16:21:15 ART 2017 ******************
User: root Groups: system bin sys security cron audit lp
Host name : <CLIENT_HOSTNAME> Installer Lvl:06.22.02.00
CandleHome: /opt/IBM/ITM
***********************************************************
Configuration Setting
ux default "Network Protocol 3 " = none
ux default "Secondary TEMS IP.PIPE Port Number" = 1918
ux default "Secondary TEMS IP.SPIPE Port Number" = 3660
ux default "Secondary TEMS Log Mode" = LOGMODE
ux default "Secondary TEMS LU Name" = LUNAME
ux default "Secondary TEMS Net Name" = CANDLE
ux default "Secondary TEMS IP Port Number" = 1918
ux default "IP.PIPE Port Number" = 1918
ux default "IP.SPIPE Port Number" = 3660
ux default "Log Mode" = LOGMODE
ux default "LU Name" = LUNAME
ux default "Net Name" = CANDLE
ux default "IP Port Number" = 1918
ux aix526 "Network Protocol 3 " = none
ux aix526 "Will this agent connect to a TEMS? [1=YES, 2=NO]" = 1
ux aix526 "TEMS Host Name" = <ITM_SERVER_FQDN>
ux aix526 "Secondary TEMS IP.PIPE Port Number" = 1918
ux aix526 "Secondary TEMS IP.SPIPE Port Number" = 3660
ux aix526 "Secondary TEMS Log Mode" = LOGMODE
ux aix526 "Secondary TEMS LU Name" = LUNAME
ux aix526 "Secondary TEMS Net Name" = CANDLE
ux aix526 "Secondary TEMS IP Port Number" = 1918
ux aix526 "IP.PIPE Port Number" = 1918
ux aix526 "IP.SPIPE Port Number" = 3660
ux aix526 "Log Mode" = LOGMODE
ux aix526 "LU Name" = LUNAME
ux aix526 "Net Name" = CANDLE
ux aix526 "IP Port Number" = 1918
lunes, 30 de enero de 2017
NIM - "...the resource is currently allocated for client use" - er, NO it's not!
When adding software to a lpp_source:
0042-001 nim: processing error encountered on "master":
0042-061 m_rmpdir: the "lpp_aix710TL04SP02" resource is currently
allocated for client use
Even lsnim is telling me that the resource is still allocated, somewhere, because alloc_count is set to 1.
# lsnim -Fl lpp_aix710TL04SP02
lpp_aix710TL04SP02:
id = 1465831650
class = resources
type = lpp_source
arch = power
Rstate = ready for use
prev_state = unavailable for use
location = /export/lpp_source/aix71/aix710TL04SP02
simages = yes
alloc_count = 2
server = master
lpp_aix710TL04SP02:
id = 1465831650
class = resources
type = lpp_source
arch = power
Rstate = ready for use
prev_state = unavailable for use
location = /export/lpp_source/aix71/aix710TL04SP02
simages = yes
alloc_count = 2
server = master
# /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a alloc_count=0 lpp_aix710TL04SP02
#
lsnim -Fl lpp_aix710TL04SP02
lpp_aix710TL04SP02:
id = 1465831650
class = resources
type = lpp_source
arch = power
Rstate = ready for use
prev_state = unavailable for use
location = /export/lpp_source/aix71/aix710TL04SP02
simages = yes
alloc_count = 0
server = master
lsnim -Fl lpp_aix710TL04SP02
lpp_aix710TL04SP02:
id = 1465831650
class = resources
type = lpp_source
arch = power
Rstate = ready for use
prev_state = unavailable for use
location = /export/lpp_source/aix71/aix710TL04SP02
simages = yes
alloc_count = 0
server = master
viernes, 6 de enero de 2017
jueves, 5 de enero de 2017
How to mount LVM partitions from rescue mode (Fedora/CentOS/RedHat)
Boot your rescue media.
Scan for volume groups:
# lvm vgscan -v
Activate all volume groups:
# lvm vgchange -a y
List logical volumes:
# lvm lvs –all
With this information, and the volumes activated, you should be able to mount the volumes:
# mount /dev/volumegroup/logicalvolume /mountpoint
martes, 3 de enero de 2017
Resize ext4 lv/filesystem
lvextend -L +SIZE /dev/mapper/lv_name
resize2fs /dev/mapper/lv_name
Where SIZE is:
XXXM, for Megabytes
XXXG, for Gigabytes
etc..
and lv_name is the name of the logical volume, obtained with the "lvs" command.
resize2fs /dev/mapper/lv_name
Where SIZE is:
XXXM, for Megabytes
XXXG, for Gigabytes
etc..
and lv_name is the name of the logical volume, obtained with the "lvs" command.
Suscribirse a:
Entradas (Atom)