Problems running glance on HP-UX

Do you know what's glance?
Glance is a system performance monitoring and diagnostic capabilities software from HP. Glance is more powerful when your running on HP-UX environment, cause they collect all information that require for monitoring the system in a real time. But, there's no 100% perfect software, yesterday I have a little problem when running with glance, but as usually, we solve the problem like a pieces of cake.

here's the summary about the problem

== Fatal Nums Error == C.03.72.00 09/29/03 ==
User: aragon(/dev/pts/tf) Date: Fri May 22 15:58:14
File: nums.C Line: 479 Product id: Glance
System: superdome B.11.11 9000/800
Errno: 0 (Error 0)
Connection to midaemon lost -- check midaemon process and status.mi
== End of Error Msg =============================

Litte magic comes bellow

sh> su -
sh> mwa stop
sh> ps -ef | grep midaemon
       root  5005     1 11 09:19:20 ?         0:18 /opt/perf/bin/midaemon
       root  5680  2490  2 09:25:41 pts/5     0:00 grep midaemon
sh> kill -9 5005
sh> mwa start

and then try glance again.


FTP Refused connection on HP-UX

When we try connected to HPUX server with FTP client with another user except root, sometimes we got a small problem with that.
But don't be afraid, we got some workaround here.

Ok now let's start the trial
1. First we try to connect to HPUX server with FTP from any client, with user "oracle".

bash> ftp rohan
Connected to rohan.
220 rohan FTP server (Revision 3.0 Version wuftpd-2.6.1 Wed Dec 19 08:27:34 GMT2007) ready.
User (rohan:(none)): oracle
331 Password required for oracle.
Password: *****
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.

2. Logging all connection
Back to HPUX, now we try to log all connection, including ftp.

sh> inetd -l

Check if the log was run properly

sh> tail -f /var/adm/syslog/syslog.log
Sep  2 08:35:51 rohan ftpd[22988]: FTP server (Revision 3.0 Version wuftpd-2.6.1 Wed Dec 19 08:27:34 GMT 2007) ready.
Sep  2 08:35:54 rohan ftpd[22988]: FTP LOGIN REFUSED (shell not in /etc/shells) FROM 10.14.14.12 [10.14.14.12], oracle

Read the rest of this entry »


Boot archive error or corrupt

A few weeks ago, I got a little problem with my solaris box, namely solaris won't boot because the boot archive was corrupt, *sigh*. Anyway the boot archive in solaris 10 was contain kernel module and configuration file was needed for solaris to startup the system.

Error:

module /platform/i86pc/boot_archive error 3 bad or corrupt data while decompressing file

Workaround:

Boot up your solaris in "solaris failsafe mode", next solaris image will mount with writeable mode on "/a" mount point

sh> rm -f /a/platform/i86pc/boot_archive
sh> bootadm update-archive -R /a
sh> reboot

IP multipathing on Solaris 10 with Hanic (NIC Redundancy with one IP)

Hanic ?
Do you know what's that.
Yes, Hanic is NIC Redundancy with one IP, hanic was made by "Partha Subramanian", and based on perl, hanic more simply and powerfull than IPMP, the default solaris IP multipathing. Why hanic was simply, in hanic we unnecessary to defined all requirement for respective NIC , just install, run and ready to failover.

Bellow, this is the step by step for hanic used.

1. First of all, we must got the hanic source as usually

bash> wget http://www.sun.com/bigadmin/scripts/submittedScripts/hanic.tar.gz

2. Show your NIC for me

bash> ifconfig e1000g0 plumb
bash> ifconifg e1000g1 plumb
bash> vi /etc/hosts
192.168.85.3    training.bascomp.org    training

3. Install hanic on your system

bash> gunzip hanic.tar.gz|tar xvf -
bash> cd hanic
bash> chmod +x *
bash> ./hanic.install

As usually software installation you must follow the guide, something like this.
Define your primary and secondary NIC, type your IP Address, your netmask and then reboot your system, for completed the installation.

bash> init 6

Read the rest of this entry »


Mirroring/Unmirroring on Solaris 10

Post kali ini dengan bahasa indonesia tentunya, akan membahas mengenai membuat mirror dan melepaskan mirror di solaris 10 x86.
sekedar informasi, RAID-1 yang dikenal dengan mirror ini sangat populer untuk tingkat data redudansi juga faster writeable performance,
RAID-1 biasanya digunakan untuk system operasi ditempatkan, dan juga untuk aplikasi dengan tingkat penulisan yang tinggi, contoh Redolog.
Memang sangat di yakinin bahwa untuk pembahasan mengenai RAID-1 ini sangat-sangat banyak bertebaran di internet, tapi apalah daya untuk kepentingan dokumentasi kita bahas disini.
Postingan RAID-1 ini menggunakan solaris volume manager (SVM), dan 2 disk dengan size yang sama.

Magic code here.
Dibawah ini adalah kondisi awal sebelum 2 disk baru diinstallasi di system.

sh> cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0/0::dsk/c1t0d0            disk         connected    configured   ok

Kita lanjut untuk rekonfigur boot proses dan updating /dev dan /devices.

sh> devfsadm -C
sh> cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0/0::dsk/c1t0d0            disk         connected    configured   ok
sata0/1::dsk/c1t1d0            disk         connected    configured   ok
sata0/2::dsk/c1t2d0            disk         connected    configured   ok

Oke setelah semua persiapan selesai, kita lanjut dengan membuat RAID-1nya.

Read the rest of this entry »