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
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
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.
PowerPath show “unlic” status
Unlic indicates that unlicensed PowerPath is running for a CLARiiON array (no license key has been installed), Unlicensed defaults to “basic Fail/Over policy, we made change yet.
bash> powermt display dev=emcpower0a|grep policy state=alive; policy=BasicFailover; priority=0; queued-IOs=0
bash> powermt display dev=emcpower0a Pseudo name=emcpower0a CLARiiON ID=CK200071500374 [SERVER] Logical device ID=60060160F0CE1A00185D33F95722DD11 [LUN 25 SERVER] state=alive; policy=BasicFailover; priority=0; queued-IOs=0 Owner: default=SP B, current=SP B Array failover mode: 1 ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 3072 pci@8,700000/SUNW,qlc@3/fp@0,0 c5t5006016239A02677d0s0 SP A2 active alive 0 0 3072 pci@8,700000/SUNW,qlc@3/fp@0,0 c5t5006016A39A02677d0s0 SP B2 active alive 0 0 3074 pci@8,700000/SUNW,qlc@3,1/fp@0,0 c6t5006016339A02677d0s0 SP A3 unlic alive 0 0 3074 pci@8,700000/SUNW,qlc@3,1/fp@0,0 c6t5006016B39A02677d0s0 SP B3 unlic alive 0 0
Workaround
1. powermt check_registration
2. powermt set policy=co dev=all (Set the Policy to co = Clariion Optimization)
3. powermt display dev=all
4. powermt save
bash> powermt display dev=emcpower0a|grep policy state=alive; policy=CLAROpt; priority=0; queued-IOs=0
bash> powermt display dev=emcpower0a Pseudo name=emcpower0a CLARiiON ID=CK200071500374 [SERVER] Logical device ID=60060160F0CE1A00185D33F95722DD11 [LUN 25 SERVER] state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP B, current=SP B Array failover mode: 1 ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 3072 pci@8,700000/SUNW,qlc@3/fp@0,0 c5t5006016239A02677d0s0 SP A2 active alive 0 0 3072 pci@8,700000/SUNW,qlc@3/fp@0,0 c5t5006016A39A02677d0s0 SP B2 active alive 0 0 3074 pci@8,700000/SUNW,qlc@3,1/fp@0,0 c6t5006016339A02677d0s0 SP A3 active alive 0 0 3074 pci@8,700000/SUNW,qlc@3,1/fp@0,0 c6t5006016B39A02677d0s0 SP B3 active alive 0 0
Rename Volume Group on HP-UX (quick & dirty)
Can you explain how to rename a volume group (VG)?, How to rename your Volume Group on HP-UX ? and many more question about how to rename the volume group. here I show you the magic of how to rename your Volume Group.
bash> bdf|grep /rdbms/oradata/a /dev/vg07/lvol1 5144576 3515198 1527542 70% /rdbms/oradata/a
We will rename VG07 to VG20, backup your data first.
Backup VG config First
bash> vgcfgbackup /dev/vg07 Volume Group configuration for /dev/vg07 has been saved in /etc/lvmconf/vg07.conf
Ok, now deactivate the first volume group
bash> vgchange -a n /dev/vg07 Volume group "/dev/vg07" has been successfully changed.
Export Vg07 dengan nama ‘vg20.map’
bash> vgexport -v -s -m /tmp/vg20.map /dev/vg07 Beginning the export process on Volume Group "/dev/vg07". /dev/dsk/c5t0d0 Volume group "/dev/vg07" has been successfully removed.
Create New Volume group (VG20)
bash> mkdir /dev/vg20 bash> mknod /dev/vg20/group c 64 0x1a0000
Import VG nya
bash> vgimport -v -s -m /tmp/vg20.map /dev/vg20 Beginning the import process on Volume Group "/dev/20". Logical volume "/dev/vg20/lvol1" has been successfully created with lv number 1. Volume group "/dev/vg20" has been successfully created.
Last but not least, Enable the VG
bash> vgchange -a y /dev/vg20 Activated volume group Volume group "/dev/vg20" has been successfully changed.
System Administrator Appreciation Day
A sysadmin unpacked the server for this website from its box, installed an operating system, patched it for security, made sure the power and air conditioning was working in the server room, monitored it for stability, set up the software, and kept backups in case anything went wrong. All to serve this webpage
A sysadmin installed the routers, laid the cables, configured the networks, set up the firewalls, and watched and guided the traffic for each hop of the network that runs over copper, fiber optic glass, and even the air itself to bring the Internet to your computer. All to make sure the webpage found its way from the server to your computer.
A sysadmin makes sure your network connection is safe, secure, open, and working. A sysadmin makes sure your computer is working in a healthy way on a healthy network. A sysadmin takes backups to guard against disaster both human and otherwise, holds the gates against security threats and crackers, and keeps the printers going no matter how many copies of the tax code someone from Accounting prints out.
A sysadmin worries about spam, viruses, spyware, but also power outages, fires and floods.
When the email server goes down at 2 AM on a Sunday, your sysadmin is paged, wakes up, and goes to work.
A sysadmin is a professional, who plans, worries, hacks, fixes, pushes, advocates, protects and creates good computer networks, to get you your data, to help you do work — to bring the potential of computing ever closer to reality.
Happy Sysadmin Day..all of you.
http://www.sysadminday.com/