How 2 Know
If you can't Google it, You Can Knowing it.

Archive for the ‘Operating Systems’ Category

AIX can’t mount NFS mount: 1831-008

Tuesday, November 17th, 2015

Sometimes when you try to mount file system (NFS) you will get the following Error:

#mount -o rw server1:/dir /bk
mount: 1831-008 giving up on:
server1:/dir
vmount: Operation not permitted.

Continue Reading…

How to Configure DNS on AIX

Thursday, November 5th, 2015

Configure DNS on AIX

  • To configure DNS on an AIX server:
  • Add the DNS server(s) to the /etc/resolv.conf configuration file:

    vi /etc/resolv.conf
    

    Continue Reading…

    How to check AIX Edition

    Thursday, November 5th, 2015

    IBM AIX has a 3 Edition (Standard, Express, Enterprise) and you can check the installed edition on you server by the following command:

    /usr/sbin/chedition -l
    

    and you can check the difference between each edition from the following Link:
    http://www-03.ibm.com/systems/power/software/aix/v61/editions.html

    How to disable LDAP Authentication in Linux

    Wednesday, October 28th, 2015

    After a customer had performed some bad edits on various LDAP configuration files, users were locked out and unable to access the system. Root could still login however.

    I logged in as root, and rather than mess with various config files, eg under /etc/pam.d, ran this command to disable LDAP authentication and enable “normal” authentication using /etc/shadow:

    Continue Reading…

    Useful Commands for Redhat LVM and increasing Filesystem

    Sunday, September 20th, 2015

    – Scan New Hardware:
    scsi-rescan
    rescan-scsi-bus.sh –forcerescan

    – For Physical Volumes:
    pvdisplay
    pvscan
    pvcreate /dev/sdb

    – For Volume Groups:
    vgdisplay
    vgscan
    vgextend VGNAME PVNAME
    lvextend -L+50G LVNAME
    resize2fs LVNAME

    Reset Resources for InActive Lpars

    Tuesday, September 15th, 2015

    Some times, when you shutdown LPAR, it’s appear inactive but there is some Cores Allocated to this LPAR and overall the HMC doesn’t see the Free cores.

    so, here is the solution for this issue :

    – First, login to HMC Console (Command Line)
    – write the following Command to get the System name which contain the LPAR: Continue Reading…

    remotely eject tap from server

    Thursday, February 26th, 2015

    use the following command to remotely eject the tap from a tap device to minimize your time & safe your data:

    #mt offline
    

    it will eject the tap from the default device tap unit “rmt0”.

    Continue Reading…

    list mksysb from tap

    Thursday, February 26th, 2015

    try this command to list files from a mksysb tap:

    #lsmksysb
    

    the previous command will list from the default tap device “rmt0”.

    if you have another tap, try the following:

    #lsmksysb -f /dev/rmt5
    

    rename a device

    Thursday, February 19th, 2015

    Use the following command to rename a device:

    # rendev -l hdisk4 -n hdisk53

    where the ‘hdisk4’ is your device and ‘hdisk53’ is the new name.

    HINT: The device must be free

    Error Report Demon

    Thursday, February 19th, 2015

    Here are the commands related to error demon in AIX

    To stop logging run the below command

    #/usr/lib/errstop
    

    To get rid of that log.

    # rm /var/adm/ras/errlog
    

    To restart the daemon, thus creating a new error log
    Continue Reading…