Friday, September 19, 2008

SAN

AIX : to get OS is 64bit
bash-3.2# getconf -a | grep 64
HARDWARE_BITMODE: 64

Stop NIS services on AIX

To use SMIT type:
# smit ypstartstop


To stop all yp daemons:

# stopsrc -g yp

To start all yp daemons:

# startsrc -g yp

To stop a yp daemon, for example ypbind, individually:

# stopsrc -s ypbind

To start a yp daemon, for example ypserv, individually:

# startsrc -s ypserv



HPUX
If swinstall gives messages like below , than what to do ;
he depot owner, system administrator, or alternate root owner may need to the "swreg" or "swacl" command to give you permission. Or, tomanage applications designed and packaged for nonprivileged mode, see the "run_as_superuser" option in the "sd" man page.

To DO

/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start

Now use swinstall to install software on hpux


Increase Swap Size

AIX
You can use smitty go to logical volume manager --->volume groups
..
then there is last option paging space click on that ..
go to change/show characteristics ..
then add number of additional logical partitions...
be cautious about the same as 1 logical partition = 64 MB
presently u said tha u have 512MB and u wannna 2 GB then
just add logical partition = 24


Solaris
  1. Use mkfile to create a file suitable for a local swap area. For example, to create a 1GB swap file:

        /usr/sbin/mkfile 1024m /swap

    where /swap is the name of the file to be used as swap space. Units for the size can be kilobytes (k), blocks (b), or megabytes (m).

  2. Tell the system to start using the file as swap:

        /usr/sbin/swap -a /swap

    Use swap -l to verify that the swap file has been activated.


Linux
[root@srv-2 /opt]# dd if=/dev/zero of=swapfile bs=1024 count=132207
[root@srv-2 /opt]# chmod 600 swapfile
[root@srv-2 /opt]# mkswap swapfile
Setting up swapspace version 1, size = 135372800 bytes
[root@srv-2 /opt]# swapon swapfile
You can edit /etc/fstab to enable your swap file automatically at boot time.
By adding an entry like this:

/opt/swapfile           swap                    swap    defaults        0 0

No comments: