Jasonntp.WordPress.Com

Mostly Infomation Technolgy related stuffs

Archive for the ‘HP-UX’ Category

Recall command history on HP-UX

leave a comment »

To recall the commands that you have issued in HP-UX, change the shell to korn shell.

#ksh -o vi

Press ESC and K on the keyboard.

Advertisements

Written by jasonntp

February 5, 2009 at 10:55 pm

Posted in General Settings

Checking the World Wide Name (WWN) on HP-UX

with 2 comments

Assuming that you have a HBA (Fiber Channel) Card installed on your server.

  1. Issue the command ioscan -nfC FC
  2. Get the device path for the desire FC.
    e.g. /dev/fcd0
  3. Issue the command
    #fcmsutil /dev/fcd0
  4. You will see 2 lines displaying…
    N_Port Node WWN:
    N_Port Port WWN:

Those are the WWN. Good luck!

Written by jasonntp

February 5, 2009 at 1:12 am

Posted in Network

How to increase the logical volume (lvol) size?

leave a comment »

Before increasing the size of the logical volume, always ensure that you do a make_tape_recovery and fbackup on the data stored on that particular logical volume that you wish to increase.

Always check your current and free lvol size before increasing so you can keep track and notice the differents.

We take a scenario where I would want to increase my /dev/vg00/lvol10 to 1GB

  1. umount /dev/vg00/lvol10
  2. lvextend -L 1024 /dev/vg00/lvol10
  3. extendfs -F vxfs /dev/vg00/lvol10
  4. mount /dev/vg00/lvol10 /myfolder
  5. bdf

bdf command to check your increased lvol size

Written by jasonntp

February 4, 2009 at 3:08 pm

Posted in LVM

2 ways to increase the swap space.

leave a comment »

  1. By using SAMSAM > Disk and File Systems > Swap > Actions

    You can add the Device Swap or File System Swap.

  1. By Command LineCreate the logical volume for your secondary swap:
    # lvcreate -L 128 /dev/vg14

    NOTE: “-L 128” is the size of desired swap

    Verify the logical volume:

    # lvdisplay /dev/vg14/lvol15

    Use SAM to declare your new secondary swap or use the command line:

    # swapon /dev/vg14/lvol15

    Verify it has been added in “/etc/fstab” when using SAM, or add it manuallywhen using the command line.

    Example:
    /dev/vg14/lvol15 . swap defaults 0 0

Written by jasonntp

February 4, 2009 at 3:06 pm

Posted in LVM

Adding TERM in your profile.

leave a comment »

To add your favorite TERM for your terminal,

#vi .profile

scroll down to the bottom end and type in the command below.

export TERM=vt100 under export PS1

Save the file and you are done!

Written by jasonntp

February 4, 2009 at 2:38 pm

Posted in General Settings

Changing hostname & IP address

leave a comment »

To change, edit the following file below
#vi /etc/rc.config/netconf

After that you will need to restart the services.

#cd /sbin/init.d

#./net stop
#./net start
#./hostname start Read the rest of this entry »

Written by jasonntp

February 4, 2009 at 2:14 pm

Posted in Network