Aix

File System shows 100% occupied but du tells different and still has Unused Spaces.

We have faced an issue as below mentioned – found /oracle mount-point showing 100% as Used. But getting different size values for folders under /oracle mount-point, when we executed du -gs . bash-4.4# df -gFilesystem GB blocks Free %Used Iused %Iused Mounted on/dev/hd4 4.00 1.39 66% 20686 6% //dev/hd2 4.00 1.02 75% 45679 16% /usr/dev/hd9var […]

File System shows 100% occupied but du tells different and still has Unused Spaces. Read More »

How to Find Server Public IP Address in Linux Terminal

root@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO- http://ipecho.net/plain | xargs echowww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# curl icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx#

How to Find Server Public IP Address in Linux Terminal Read More »

sed to play with data or parsing your text

To select all the lines starting from STARTING_PATTERN up to  blank line ^$ and then delete those lines. # sed ‘/STARTING_PATTERN/,/^$/d’ filename To edit files in place, use -i option. # sed -i ‘/STARTING_PATTER/,/^$/d’ filename Insert multiple lines into a file after specified pattern. # sed ‘/cdef/r add.txt’ input.txt # sed ‘/cdef/r add.txt’ input.txt input.txt:abcdaccdcdeflineweb

sed to play with data or parsing your text Read More »

AIX: rootvg/disk mirroring

bash-4.2# bootinfo -s hdisk0 140013 bash-4.2# bootinfo -s hdisk1 140013 bash-4.2# bootinfo -s hdisk2 140013 bash-4.2# lspv hdisk0 002b012f397c20ce None hdisk1 002afe4f2b4c3fdb rootvg active hdisk2 002b016f09313544 ppmvg active bash-4.2# bash-4.2# lsvg -p rootvg rootvg: PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION hdisk1 active 546 187 10..00..00..85..92 bash-4.2# extendvg rootvg hdisk0 0516-1398 extendvg: The

AIX: rootvg/disk mirroring Read More »

IBM AIX LPAR & VIO Commands

Sorry for unstructured post…. mkvdev -vdev hdisk1 -vadapter vhost0 -dev rootvgos   mkvdev -vdev Client3_OSLV -vadapter vhost0 -dev Client3_rootvg   mkvdev -vdev Client4_OSLV -vadapter vhost1 -dev Client4_rootvg   mkvdev -vdev Client3_dataLV -vadapter vhost0 -dev Client3_datavg   mkvdev -vdev Client4_dataLV -vadapter vhost1 -dev Client4_datavg     lsmap -vadapter vhost0     rmvdev  -vtd rootvgos   loadopt

IBM AIX LPAR & VIO Commands Read More »

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ?

HP-UX 1. Rescan the devices: ioscan -fnC <disk|tape> 2. Generate device files:  insf -e 3. Verify the new devices:  ioscan -funC <disk|tape> AIX 1. Rescan the devices ):  cfgmgr -vl fcsx Where x is FC adapter number 2. Verify the new devices:  lsdev -Cc <disk|tape> Linux The rescan in Linux is HBA-specific. For QLogic: echo

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ? Read More »

Scroll to Top