SiNgAuTaRa - Live with EMC # NetApp # Solaris # Linux # UNIX

July 22, 2006

Starting IPv4 routing daemon (while booting)

Filed under: solaris, unix

I’m having problem with my new server. After sys-unconfig, server seems ‘hang’, i thinks it was IPv4 issues (network interface speed).
Here the failure output :

Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.18.5, 1024 MB memory installed, Serial #xxxxxxxx.
Ethernet address xxxxxxx, Host ID: xxxxxx.

Rebooting with command: boot
Boot device: disk0:a File and args:
SunOS Release 5.8 Version Generic_117350-04 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved
obpsym: symbolic debugging is available.
Hardware watchdog enabled
configuring IPv4 interfaces: bge0.
Hostname: xxxxx
metainit: xxxx: there are no existing databases

The system is coming up. Please wait.
checking ufs filesystems

The system is coming up. Please wait.
checking ufs filesystems
/dev/rdsk/c1t0d0s5: is clean.
/dev/rdsk/c1t2d0s6: is clean.
/dev/rdsk/c1t0d0s4: is clean.
/etc/rc2.d/S68net-tune
Starting IPv4 routing daemon.

————hang————–

I need to set up 1000 full duplex (1 giga) for network interface, here the files need to be edit.

# vi /etc/rc2.d/S68net-tune
# echo “Force bge0 to 1000fdx autoneg on… ”
#
# Force bge0 to 1000fdx autoneg on
#———————————
ndd -set /dev/bge0 adv_1000fdx_cap 1
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 0
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_10hdx_cap 0
ndd -set /dev/bge0 adv_autoneg_cap 1
:wq!

Then do normal reboot and check your NIC behind CPU should be blinking.

July 13, 2006

how to do copy from filer to another filer

Filed under: unix, NetApp, storage

Actually there are few ways to copy data from filer to another filer.

1) using snapmirror
this method is easily using filerview but need license , so might be expensive. Easily to maintain and the data can be sync automatically.

2) using rsync, so you might need to run with script. What you need to do is mount the location of the filer and destination of the filer inside any server. Then create rsync script and run it as cronjobs.

3) using ndmcopy - this is very simple and easily to used for single data movement. I’ll show you how to do.
Telnet filerA (destination) :

filerA> ndmpcopy -sa root:password filerB:/vol/volname/qtree filerA:/vol/volname/qtree

Telnet filerB (source) :

filerB> ndmpcopy -da root:password filerB:/vol/volname/qtree filerA:/vol/volname/qtree

p/s: some user call filer or netapp hostsname.

July 12, 2006

how to used remote console

Filed under: general

Let say your office have Console Management Solution like Lantronic.

The command looks like different like unix command, no “#” but “>” been used.
Here some guide to used it :
Telnet to the console.

1) help = list all command

console> help

2) listdev = list all connection

console> listdev
01 - xklxxxx–F3020C 02 - xklxxxx–F3020C
03 - serverA-twapps 04 - serverB-twdb
05 - serverC-stdby 06 - serverD–Netbackup
07 - serverE-nis1 08 - serverF-nis2
09 - serverG-dlpdb 10 - serverH-dlpapps
11 - serverI-wishapps 12 - DEVICE_12
13 - DEVICE_13 14 - DEVICE_14
15 - DEVICE_15 16 - DEVICE_16
17 - DEVICE_17 18 - DEVICE_18
19 - DEVICE_19 20 - DEVICE_20
21 - DEVICE_21 22 - DEVICE_22
23 - DEVICE_23 24 - DEVICE_24
25 - DEVICE_25 26 - DEVICE_26
27 - DEVICE_27 28 - DEVICE_28
29 - DEVICE_29 30 - DEVICE_30
31 - DEVICE_31 32 - DEVICE_32

3) direct 03 = it will connect to the 03 connection which is server A

console> direct 03

4) ESC + shift B = go to ok promt (be careful using this command, your server A will down and go to ‘ok’ promt)

serverA # ESC+shift+B

5) ESC + shift + A = quit current connection to console

console> ESC+shift+A

Try it out, it is good we have remote console so we can access to every server anytime. No need monitor and still can be access at single boot promt.

July 10, 2006

user account maintanance

Filed under: solaris, linux, unix

1) How to add user

# useradd singa

2) How to change passwd

# passwd singa

3) If you need to changes user account

# vi /etc/passwd

4) Let’s say you have NIS server, then you need to change NIS account/passwd

# vi /var/yp/nis/passwd
# vi /var/yp/nis/shadow
# passwd -r nis singa

setup new linux box using Red Hat

Filed under: linux, unix

I’m using Red Hat as production clients, if there are changes with the hostname/ip, i just do below command.

# vi /etc/sysconfig/network
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Then reboot.

setup new sun box using solaris

Filed under: solaris, unix

There are several ways to set up new solaris box

1) install fresh using CD or jumpstart

2) already set-up just need to fresh configure (15 minutes downtime)

# sys-unconfig

3) already set-up but need to changes IP/hostname/netmask (5 minutes downtime)

# vi /etc/netmasks
# vi /etc/hosts
# vi /etc/hostsname
# vi /etc/nodename
# vi /etc/net/ticlts/hosts
# vi /etc/net/ticots/hosts
# vi /etc/net/ticotsord/hosts

July 9, 2006

my son pictures…

Filed under: my family

my lovely son
smilling…
my son at night
at night

like soldier…

July 7, 2006

i’m backkkkk

Filed under: my family

Hi there,
Starting from today, i will try my besh to update my blog.

# echo NgaumMMMmmMMMMmm
NgaumMMMmmMMMMmm

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers