Reinstall grub on HP Smart Array

Hi guys, long time no see. :d,
I want to share a triki or stupid trick on MBR problem.

Yesterday, I was fix a boot problem of HP Blade 460C with CentOS 5.4 i386 installed in my customer, some people in the Net fix that problem with reinstalling grub with grub-install command, I assume they have /dev/sda or /dev/hda on boot device, but since HP comes with RAID Controller (SMART ARRAY) hardware, the sda or hda seem not be use in here, because boot or any disk device come with /dev/cciss/c0d0.

So a workaround for solving this problem is just change boot device and device map on grub configuration.

See my old configuration bellow.

-/etc/grub.conf-------
# grub.conf generated by anaconda
#
#
#boot=/dev/sda
# default=0 # commented out by Proliant HBA install script
default=2
fallback=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
[...]
-/boot/grub/device.map----
# this device map was generated by anaconda
(hd4)     /dev/cciss/c0d0
(hd0)     /dev/sda

Now change "#boot=/dev/sda" with "boot=/dev/cciss/c0d0" in /etc/grub.conf
and "(hd0) /dev/sda" with "(hd0) /dev/cciss/c0d0" in /boot/grub/device.map

after that just running simple grub command bellow

bash> grub --batch --device-map=/boot/grub/device.map --config-file=/boot/grub/grub.conf
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Restart and hope this help


Save the earth by 60 minutes

Earth Hour - Logo Sysinfo.bascomp.org will turn off its service, on this day at 20.30-21.30 western Indonesia time, To celebrate the earth hour.
Let us turn off the notebook, computer, gadget, or even your data center, for the sake of the survival of our earth

may the force be with you


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 »


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



  • Search