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 »

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 »

Logical volumes not being recognized and mounted even varyonvg not work

After two lun removed from host by mistake, we were experiencing problems and so I rebooted the system and now I’m having big problems with two LVs on my user-defined volume group. The user-defined volume group consists of three disks. When I try to vary them on I get “PVREMOVED” for three of the disks. …

Logical volumes not being recognized and mounted even varyonvg not work 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