Backup IBM AIX Server

Hello,

The following steps helped me to backup AIX 5.3 and AIX 6.1 servers.

1st of all, we need to remove the system limits to allow us to create a large file, our backup.

Click here for more information here on IBM website

 

Edit the limits file:

vi /etc/security/limits

Allow root user to create unlimited file size by adding “fsize = -1” in its own section:

root:
    fsize = -1

We can now run our backup using smitty:

smitty mksysb

Fill in the path in the first field and change next options if needed. Press Enter to start the backup.

Advertisements

HP-UX – File System full, stuck at boot

Hi,

I faced an issue where one of my HP-UX server’s partition became full and won’t let it fully boot. I’ll describe the steps I did the resolve the issue.

  • Reboot the server and cancel the HP-UX boot when you get the 10 seconds cool down by pressing any key. On Itanium server, you’ll face the “HPUX >” prompt.
  • Boot into single user mode by typing :
HPUX > boot vmunix -is
  • The system will boot without any problem this time. Try to mount all File System by typing :
mount -a

Note : If you get an error saying the File System is corrupted, run “fsck /dev/vg00/lvolX” on the listed partitions. One done, you can mount them again without any problem.

  • Once mounted, you gain access to all System commands like “bdf”, “sam”, “ls”, … In my case, using “bdf” showed my /var folder was 100% full.
  • I used “sam”, went to “Routine Tasks” menu to clean up/trim old Logs. (mail.log was logging to much errors and consumed too many space, in my case).
  • Finally, just issue the “reboot” command and let the server boot normally.

 

Hope this help.

HP-UX – Disk management

Scan system for disk:

ioscan -fnkCdisk

Get disk info:

diskinfo /dev/rdsk/c3t2d0

Show VG and linked PV:

vgdisplay -v

Show PV info:

pvdisplay -v /dev/dsk/c3t2d0

Check for disk IO error or successful read:

dd if=/dev/rdsk/c3t2d0 of=/dev/null bs=1024k

Enable VG if needed:

vgchange -a y /dev/vg00

Show mount point:

df

or

bdf

 

You are also able to manage disk using “sam”.